Salesforce Platform Developer I (legacy) — Question 195

A developer is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded in a Lightning page.

Without writing unnecessary code, which controller should be used for this purpose?

Answer options

Correct answer: C

Explanation

The Standard list controller is specifically designed to work with lists of records, such as contacts owned by a user, making it the ideal choice for this scenario. The Standard controller does not provide list functionality, the Custom controller would require unnecessary code, and the Lightning controller is not applicable for a Visualforce page.