Salesforce DEX-450 Exam Questions
Programmatic Development using Apex and Visualforce in Lightning Experience (Page 12 )

Updated On: 17-Feb-2026

A developer is asked to set a picklist field to `Monitor' on any new Leads owned by a subnet of Users.
How should the developer implement this request?

  1. Create an after insert Lead trigger.
  2. Create a before insert Lead trigger.
  3. Create a Lead Workflow Rule Field Update.
  4. Create a Lead formula field.

Answer(s): C



Why would a developer consider using a custom controller over a controller extension?

  1. To increase the SOQL query governor limits.
  2. To implement all of the logic for a page and bypass default Salesforce functionality
  3. To leverage built-in functionality of a standard controller
  4. To enforce user sharing settings and permissions

Answer(s): B



A developer wants to override a button using Visualforce on an object.
What is the requirement?

  1. The controller or extension must have a PageReference method.
  2. The standardController attribute must be set to the object.
  3. The action attribute must be set to a controller method.
  4. The object record must be instantiated in a controller or extension.

Answer(s): B



A lead object has a custom field Prior_Email__c. The following trigger is intended to copy the current Email into the Prior_Email__c field any time the Email field is changed:



Which type of exception will this trigger cause?

  1. A null reference exception
  2. A compile time exception
  3. A DML exception
  4. A limit exception when doing a bulk update

Answer(s): C



How should a developer create a new custom exception class?

  1. public class CustomException extends Exception{}
  2. CustomException ex = new (CustomException)Exception();
  3. public class CustomException implements Exception{}
  4. (Exception)CustomException ex = new Exception();

Answer(s): A






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

Join the DEX-450 Discussion