Salesforce-Platform-Developer Practice Test

Salesforce Spring 25 Release
237 Questions

In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers

A. Log capturing via the Debug Logs Setup page

B. Built-in standard and custom set controllers

C. Self-contained and reusable units of an application

D. Rich component ecosystem

C.   Self-contained and reusable units of an application
D.   Rich component ecosystem

Explanation:

When comparing Lightning Web Components (LWC) to Visualforce for the View layer in the MVC (Model-View-Controller) paradigm, LWC offers these key advantages:

Self-Contained & Reusable Units (C):

LWC: Components are modular, encapsulating their own HTML, JavaScript, and CSS. They can be reused across the application (e.g., a "product card" component used in multiple pages).
Visualforce: Pages are monolithic and harder to break into reusable pieces.

Rich Component Ecosystem (D):

LWC: Leverages:

Base Lightning Components (pre-built UI elements like lightning-button, lightning-datatable).
Third-party components (via open-source libraries or AppExchange).
Visualforce: Relies on custom HTML/JS or basic Salesforce tags (e.g., ), with no native component library.

Salesforce-Platform-Developer Exam Questions - Home Previous
Page 44 out of 237 Pages