Salesforce DEV501 Exam
Apex & Visualforce Controllers (Page 8 )

Updated On: 1-Feb-2026

The system method, ___________, lets you write test methods that change user contexts to either an existing user or a new user.

  1. System.testAs()
  2. System.testAsUser
  3. System.runAsUser()
  4. System.impersonateUser()
  5. System.runAs()
  6. None of these

Answer(s): E



What interface does the Apex email handler implement to setup and inbound email service?

  1. Messaging.sendEmail
  2. Messaging.InboundEmailHandler
  3. Encapsulation principles
  4. isSuccess, sendEmailError

Answer(s): B



Can apex code be created directly in the production environment?

  1. Ids
  2. 1
  3. 10
  4. No

Answer(s): D



What are two ways to invoke a custom web service?

  1. Apex process classes
  2. A governor limit
  3. List of List Objects
  4. Ajax toolkit, client program

Answer(s): D



What components must be deployed manually to the production environment?

  1. Queues, time triggers
  2. Multi-tenant
  3. Constructor
  4. Dates, Ids, Numbers

Answer(s): A



Viewing page 8 of 49
Viewing questions 36 - 40 out of 239 questions



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

Join the DEV501 Discussion