Skip to main content

DEX-450 Real Exam Questions

Programmatic Development using Apex and Visualforce in Lightning

456 questions available · Page 1 of 46

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page.

Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)

  1. A

    Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().

  2. B

    Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().

  3. C

    Use SOQL to query Case records in the org to get all the RecordType values available for Case.

  4. D

    Use SOQL to query case records in the org to get all values for the Status picklist field.

Show answer and explanation

Correct answers: A, B

Question 2 Single choice

What can a developer use to determine if the core Apex code exceeds any governor limits in a test class during bulk execution?

  1. A

    Limits, startTest, stopTest

  2. B

    Test.getDmlStatements()

  3. C

    @TestSetup.

  4. D

    @TestVisible

Show answer and explanation

Correct answer: A

Question 3 Multiple choice

When an Account's custom picklist field called Customer Sentiment is changed to a value of "Confused", a new related Case should automatically be created.

Which two methods should a developer use to create this case? (Choose two.)

  1. A

    Process Builder

  2. B

    Apex Trigger

  3. C

    Custom Button

  4. D

    Workflow Rule

Show answer and explanation

Correct answers: A, B

Question 4 Multiple choice

Which user can edit a record after it has been locked for approval? (Choose 2)

  1. A

    Any user with a higher role in the hierarchy

  2. B

    A user who is assigned as the current approver

  3. C

    Any user who approved the record previously

  4. D

    An administrator

Show answer and explanation

Correct answers: B, D

Question 5 Single choice

Which governor limit applies to all the code in an apex transaction?

  1. A

    Elapsed CPU time

  2. B

    Number of new records created

  3. C

    Number of classes called

  4. D

    Elapsed SOQL query time

Show answer and explanation

Correct answer: A

Question 6 Single choice

A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.

Which step should the developer take to resolve the issue and properly test the exception?

  1. A

    Use try/catch within the unit test to catch the exception.

  2. B

    Use the finally bloc within the unit test to populate the exception.

  3. C

    Use the database methods with all or none set to FALSE.

  4. D

    Use Test.isRunningTest() within the custom controller.

Show answer and explanation

Correct answer: A

Question 7 Single choice

A developer in a Salesforce org with 100 Accounts executes the following code using the Developer
console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x <
150; x++)

{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}
catch (Exception
ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');

How many accounts are in the org after this code is run?

  1. A

    101

  2. B

    100

  3. C

    102

  4. D

    252

Show answer and explanation

Correct answer: B

Question 8 Single choice

Which tool can deploy destructive changes to Apex classes in production?

  1. A

    Workbench

  2. B

    Developer Console

  3. C

    Salesforce Setup

  4. D

    Change Sets

Show answer and explanation

Correct answer: A

Question 9 Multiple choice

When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)

  1. A

    Match an auto-generated Number field to a column in the imported file.

  2. B

    Match an external Id Text field to a column in the imported file.

  3. C

    Match the Name field to a column in the imported file.

  4. D

    Match the Id field to a column in the imported file.

Show answer and explanation

Correct answers: B, D

Question 10 Single choice

What is the order of operations when a record is saved in Salesforce?

  1. A

    Process flows, triggers, workflow, commit

  2. B

    Workflow, process flows, triggers, commit

  3. C

    Workflow, triggers, process flows, commit

  4. D

    Triggers, workflow, process flows, commit

Show answer and explanation

Correct answer: D