DEV-101 Question Preview

Safe Public Question Preview 1

Only the demo-safe public version is shown here. Correct answers, full explanations, internal IDs, and paid-only content stay protected.

Multiple ChoiceApplication Development
Question 1. To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form: … … To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable: validateRequest validateAjaxRequest Where in the code does the developer need to add this CSRF validation check?
A. In the controller function that displays the form
B. In the middleware chain of the controller post route
C. In the controller function that handles the submitted form
D. In the model function that persists the form data
Explanation is locked. Start the demo or unlock full access to review explanations inside the protected test engine.

Related Safe Previews

FAQ

Does this page show the answer?

No. Answers and explanations are protected inside the private test engine.