Exam CRT-450 Topic 3 Question 96 Discussion
Actual exam question for Salesforce's CRT-450 exam
Question #: 96
Topic #: 3
Question #: 96
Topic #: 3
A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations.
In this implementation scenario, which two options are.. of the Controller according to the MVC architecture?
Choose 2 answers
In this implementation scenario, which two options are.. of the Controller according to the MVC architecture?
Choose 2 answers
Suggested Answer: B,C Vote an answer
In the context of the MVC (Model-View-Controller) architecture for a Lightning Web Component (LWC), the Apex class and JavaScript file are responsible for handling the controller's role:
Apex Class (Controller):
Acts as the server-side controller.
Executes business logic, such as the complex validations mentioned in the scenario.
Exposes methods for the LWC to call using@AuraEnabled.
Reference:https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex JavaScript File (Controller):
Acts as the client-side controller.
Manages the interaction between the HTML (View) and Apex methods.
Executes functions triggered by user actions, such as clicking the "Validate" button.
Reference:https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.
js_props_methods
Why Not the Other Options?A. HTML file: Represents the "View" in MVC, focusing on UI rendering.
D: XML file: Used for metadata configuration and is not part of the controller functionality.
Apex Class (Controller):
Acts as the server-side controller.
Executes business logic, such as the complex validations mentioned in the scenario.
Exposes methods for the LWC to call using@AuraEnabled.
Reference:https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.apex JavaScript File (Controller):
Acts as the client-side controller.
Manages the interaction between the HTML (View) and Apex methods.
Executes functions triggered by user actions, such as clicking the "Validate" button.
Reference:https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.
js_props_methods
Why Not the Other Options?A. HTML file: Represents the "View" in MVC, focusing on UI rendering.
D: XML file: Used for metadata configuration and is not part of the controller functionality.
by Burgess at Nov 29, 2025, 09:42 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).