Salesforce DEV501 Exam
Apex & Visualforce Controllers (Page 5 )

Updated On: 1-Feb-2026

If you use a standard controller on a page and the user doesn't have access to the object, the page will...

  1. Throw an ACCESS_VIOLATION exception.
  2. Write an ACCESS_VIOLATION message to the debug log.
  3. Display an insufficient privileges error message.
  4. Redirect the user to their home page.
  5. Ask the user if they would like to upgrade permissions in order to view the object.
  6. None of the above

Answer(s): C



By using the ____________ keyword in a class definition, a developer can create a custom controller or controller extension that respects OWD, role hierarchy, and sharing rules.

  1. with permissions
  2. with defaults
  3. with security
  4. with sharing
  5. with roles
  6. None of these

Answer(s): D



A/an _____________ is a class written in Apex that adds to or overrides behavior in a standard or custom controller.

  1. Custom component
  2. Controller extension
  3. Apex extension
  4. Extended Controller
  5. Component extension
  6. None of these

Answer(s): D



Developers can use Visualforce pages to: (Select all that apply)

  1. Override standard buttons
  2. Override tab overview pages
  3. Define custom tabs
  4. Embed components in detail page layouts
  5. Create dashboard components or custom help pages
  6. Create custom Console components.
  7. None of these

Answer(s): A,B,C,D,E,F



Under what circumstances is it appropriate for a developer to add functionality to their application via the SOAP API? (Select all that apply)

  1. When consumers of the desired functionality have no experience with Force.com development.
  2. When the desired functionality processes only one type of record at a time.
  3. When the organization chooses not to share its Enterprise WSDL.
  4. When the desired functionality does not require any transactional control.
  5. None of these

Answer(s): B,D



Viewing page 5 of 49
Viewing questions 21 - 25 out of 239 questions



Post your Comments and Discuss Salesforce DEV501 exam prep with other Community members:

Join the DEV501 Discussion