PDI practice question 22 of 30
Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts. The component should be able to validate the user input before saving the information to the database. What is the best technology to create this component?
Full set: 201 questionsLightning Web Components (LWC) is the modern, standards-based programming model for building custom user interface components on the Salesforce platform. It leverages standard web technologies (HTML, modern JavaScript, CSS), which results in better performance and a more responsive user experience. LWC has built-in support for robust client-side validation on input fields, allowing developers to check user input before data is sent to the server for saving. This directly meets the requirements of the scenario and represents the current best practice for custom UI development in Salesforce.
A. Flow: Flow is a declarative automation tool for creating guided user processes and is not a framework for building custom, code-based UI components.
C. Visualforce: Visualforce is a legacy UI framework. While it can fulfill the requirements, it is not the "best" or recommended technology for new development in Lightning Experience.
D. VUE JavaScript framework: VUE is an external, third-party JavaScript framework and not the native, standard technology for building integrated UI components on the Salesforce platform.
1. Lightning Web Components Developer Guide; Introduction; What Is Lightning Web Components?: "Lightning Web Components is a stack of modern lightweight frameworks built on the latest web standards. We suggest you develop Lightning components using the Lightning Web Components model." This establishes LWC as the modern, recommended framework.
2. Lightning Web Components Developer Guide; UI Component Features; Validate Fields: This section provides detailed examples and documentation on how to "add validation rules to a field" and "report the validity of a field," directly addressing the validation requirement.
3. Salesforce Developers - Frameworks & Languages; Visualforce: The official documentation states, "For building modern apps for Lightning Experience and the Salesforce mobile app, we recommend the Lightning Component framework." This positions Visualforce as a legacy option not preferred for new development.
4. Salesforce Help; Salesforce Flow; Flow Builder: This resource describes Flow as a tool to "Automate your company’s repetitive business processes by building flows." This confirms its purpose is process automation, not custom component development.
Keep practicing
Take the free PDI practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PDI practice questions
- Question 1What can be used to override the Account's standard Edit button for Lightning Experience?
- Question 4Universal Containers (UC) wants to lower its shipping cost while making the shipping proc…
- Question 5A developer has an integer variable called maxAttempts. The developer needs to ensure tha…
- Question 7Universal Containers wants to back up all of the data and attachments in its Salesforce o…
- Question 8Universal Containers hires a developer to build a custom search page to help users find t…
- Question 9As part of new feature development, a developer is asked to build a responsive applicatio…
