Free DEX-450 Exam Braindumps
Programmatic Development using Apex and Visualforce in Lightning Experience Questions 136–140 (page: 29)

Updated On: 10-Feb-2026

A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?

  1. Schema isUpdateable() method.
  2. Schema isAccessible() method.
  3. Schema isReadable() method.
  4. Schema isCreateable() method.

Answer(s): B



A developer creates a method in an Apex class and needs to ensure that errors are handled properly.What would the developer use? (There are three correct answers.)

  1. ApexPages.addErrorMessage()
  2. A custom exception
  3. .addError()
  4. Database.handleException()
  5. A try/catch construct

Answer(s): B,C,E



In the Lightning Component framework, where is client-side controller logic contained?

  1. Apex
  2. Visualforce
  3. HTML
  4. JavaScript

Answer(s): D



Why would a developer use Test. startTest( ) and Test.stopTest( )?

  1. To avoid Apex code coverage requirements for the code between these lines
  2. To start and stop anonymous block execution when executing anonymous Apex code
  3. To indicate test code so that it does not Impact Apex line count governor limits.
  4. To create an additional set of governor limits during the execution of a single test class.

Answer(s): D



What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?

  1. The StandardSetController to support related lists for pagination.
  2. The Opportunity StandardController for pre -built functionality.
  3. A callback constructor to reference the StandardController.
  4. A constructor that initializes a private Opportunity variable.

Answer(s): B



Viewing page 29 of 93
Viewing questions 141 - 145 out of 456 questions


Post your Comments and Discuss Salesforce DEX-450 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!