DEX-450 Exam Details

  • Exam Code
    :DEX-450
  • Exam Name
    :Programmatic Development using Apex and Visualforce in Lightning
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :456 Q&As
  • Last Updated
    :Jul 10, 2026

Salesforce DEX-450 Online Questions & Answers

  • Question 21:

    Given the code below, which three statements can be used to create the controller variable?

    Public class accountlistcontroller{ public listgetaccounts(){ return controller.getrecords(); } } Choose 3 answers

    A. Apexpages.standardsetcontroller controller=new apexpages.standardsetcontroller(database.getquerylocator('select id from account'));
    B. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);
    C. Apexpages.standardcontroller controller= new apexpages.standardcontroller(database.getquerylocator('select id from account'));
    D. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));
    E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));

  • Question 22:

    A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?

    A. The test method has a syntax error in the code.
    B. The test method relies on existing data in the sandbox.
    C. The test method is calling an @future method.
    D. The test method does not use System.runAs to execute as a specific user.

  • Question 23:

    When creating a record with a Quick Action, what is the easiest way to post a feed item?

    A. By selecting create feed item on the quick action.
    B. By adding a trigger on the new record.
    C. By adding a workflow rule on the new record.
    D. By selecting create case feed on the new record.

  • Question 24:

    A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?

    A. Nothing. The task is automatically displayed on the Account page.
    B. Nothing. The Task cannot be related to an Account and a Contact.
    C. Create a Workflow rule to relate the Task to the Contact's Account.
    D. Create an Account formula field that displays the Task information.

  • Question 25:

    What is the data type returned by the following SOSL search?

    {FIND 'Acme*' in name fields returning account,opportunity};

    A. List
    B. Map
    C. Map
    D. List

  • Question 26:

    The sales management team requires that the lead source field of the Lead record be populated when Lead is converted. What would a developer use to ensure that a user populates the Lead source field?

    A. Validation rule
    B. Formula field
    C. Workflow rule
    D. Process builder

  • Question 27:

    A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers

    A. Throw new RecordNotFoundException("problem occured");
    B. Throw new RecordNotFoundException();
    C. throw RecordNotFoundException("problem occured");
    D. Throw RecordNotFoundException();

  • Question 28:

    Which two combined methods should a developer use to prevent more than one open Opportunity on each Account? Choose 2 answers

    A. Create an Account Roll-up Summary field to count open Opportunities
    B. Create an Opportunity Validation Rule to generate an error on insert
    C. Create an Account Trigger to generate an error on Opportunity insert
    D. Create an Opportunity Workflow Rule to auto-close the Opportunity

  • Question 29:

    Which two describe Heroku Redis? Choose 2 answers.

    A. Is an in-memory key-value data store, run by Heroku.
    B. Is a repository for storing large images.
    C. Is an option for long-term data storage.
    D. Is provisioned and managed as an add-on.

  • Question 30:

    Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

    A. List searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
    B. List searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
    C. Map searchList = (FIND "*ACME*" IN ALL FIELDS RETURNING Contact, Lead);
    D. List> searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like '%ACME%');

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DEX-450 exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.