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
    :May 29, 2026

Salesforce DEX-450 Online Questions & Answers

  • Question 281:

    While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?

    A. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
    B. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
    C. Use Test.loadData() and a Static Resource to load a standard Pricebook.
    D. Use @TestVisible to allow the test method to see the standard PriceBook.

  • Question 282:

    Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

    A. Use collections to store all fields from a related object and not just minimally required fields.
    B. Use methods from the "Limits" class to monitor governor limits.
    C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
    D. Use variables within Apex classes to store large amounts of data.

  • Question 283:

    Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

    A. tag
    B. Inline CSS
    C. tag
    D. tag
    E. A static resource

  • Question 284:

    A developer has the following class and trigger code:

    public class InsuranceRates { public static final Decimal smokerCharge = 0.01; } trigger ContactTrigger on Contact (before insert) { InsuranceRates rates = new InsuranceRates(); Decimal baseCost = XXX; }

    Which code segment should a developer insert at the XXX to set the baseCost variable to the value of the class variable smokerCharge?

    A. Rates.smokerCharge
    B. Rates.getSmokerCharge()
    C. ContactTrigger.InsuranceRates.smokerCharge
    D. InsuranceRates.smokerCharge

  • Question 285:

    A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?

    A. Use SELECT Id from Account where Name='Test'
    B. Restore the Account using an undeleted statement
    C. The Account cannot be used in the second test method
    D. Call the Test Setup method at the start of the test

  • Question 286:

    A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?

    A. Public class CreditcardPayment extends Payment { public override void makePayment(Decimal amount) { /*implementation*/ } }
    B. Public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } }
    C. Public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } }
    D. Public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) { /*Implementation*/ } }

  • Question 287:

    A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? choose 2 answers

    A. Create a master-detail relanstionship between the rating and employee object
    B. Create a trigger on the rating object that updates a field on the employee object
    C. Create a roll-up sumary field on the employee and use avg to calculate the average rating score
    D. Create a lookup realntionship beteween the rating and employee object

  • Question 288:

    A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URLWhich statement is unnecessary inside the unit test for the custom controller?

    A. Public ExtendedController (ApexPages.StandardController cntrl) { }
    B. ApexPages.currentPage().getParameters().put('input', 'TestValue')
    C. Test.setCurrentPage(pageRef),
    D. String nextPage = controller.save().getUrl();

  • Question 289:

    A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which attribute(s) to correctly implement controller functionality?

    A. controller="Case" and extensions="myControllerExtension"
    B. extensions="myControllerExtension"
    C. controller="myControllerExtension"
    D. standardController="Case" and extensions="myControllerExtension"

  • Question 290:

    What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?

    A. Create a process with Process Builder.
    B. Create a workflow rule with a field update.
    C. Create a Lightning Component.
    D. Create a Visualforce page.

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.