I came up with one question which asks me to select two options. Question is: When would a developer use a custom controller instead of a controller extension? Options are:
- When Visualforce page needs to replace the functionality of standard controller.
- When Visualforce page does not reference a single primary object.
- When Visualforce page should not enforce permissions of field-level security
- When Visualforce page needs to add new actions to a standard controller.
To me correct answer is: 2 and 3. But it is telling the correct answer is 1 and 3. Just wanted to check here if my understanding is wrong.
The reason why I don't want option 1 is that with controller extension we can always replace the default functionality of standard controller like custom save in controller extension.