Salesforce Platform Developer I (legacy) — Question 20

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

Answer options

Correct answer: D

Explanation

The correct answer is D because Salesforce requires test classes to cover the logic implemented in custom controllers before deployment. Options A, B, and C are incorrect as they do not focus on the custom controller, which is essential for the functionality of the Visualforce page.