Attention please! Here is the shortcut to pass your DEX-450 exam! Get yourself well prepared for the Salesforce Developer DEX-450 Programmatic Development using Apex and Visualforce in Lightning exam is really a hard job. But don’t worry! We We, provides the most update DEX-450 pdf. With We latest DEX-450 exam questions, you’ll pass the Salesforce Developer DEX-450 Programmatic Development using Apex and Visualforce in Lightning exam in an easy way

Visit our site to get more DEX-450 Q and As:https://www.pass4king.com/dex-450.html (456 QAs Dumps)
Question 1:

What are two benefits of the Lightning Component framework? (Choose two.)

A. It simplifies complexity when building pages, but not applications.

B. It provides an event-driven architecture for better decoupling between components.

C. It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.

D. It allows faster PDF generation with Lightning components.

Correct Answer: BC


Question 2:

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”

Correct Answer: D


Question 3:

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.

Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)

A. Make an outbound web services call to the SOAP API.

B. Hardcode the ID as a constant in an Apex class.

C. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.

D. Execute a SOQL query on the RecordType object.

Correct Answer: CD


Question 4:

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.

Which three attributes need to be defined with values in the tag to accomplish this? (Choose three.)

A. action

B. renderAs

C. standardController

D. readOnly

E. extensions

Correct Answer: ABC


Question 5:

Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)

A. Number maps to Decimal.

B. Number maps to Integer.

C. TextArea maps to List of type String.

D. Date/Time maps to Dateline.

E. Checkbox maps to Boolean.

Correct Answer: ADE


Question 6:

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?

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

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

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

D. Use Test.isRunningTest() within the custom controller.

Correct Answer: A


Question 7:

How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

A. Create a Sharing Rule comparing the custom object owner to the account owner.

B. Create a validation rule on the custom object comparing the record owners on both records.

C. Include the sharing related list on the custom object page layout.

D. Ensure that the relationship between the objects is Master-Detail.

Correct Answer: D


Question 8:

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

A. To increase the SOQL query governor limits.

B. To implement all of the logic for a page and bypass default Salesforce functionality

C. To leverage built-in functionality of a standard controller

D. To enforce user sharing settings and permissions

Correct Answer: B


Question 9:

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.)

A. Process Builder

B. Apex Trigger

C. Custom Button

D. Workflow Rule

Correct Answer: AB


Question 10:

Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)

A. ENUM

B. sObject

C. External ID

D. String

Correct Answer: AD


Question 11:

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.

Correct Answer: A


Question 12:

A developer has the controller class below.

Which code block will run successfully in an execute anonymous window?

A. myFooController m = new myFooController();System.assert(m.prop !=null);

B. myFooController m = new myFooController();System.assert(m.prop ==0);

C. myFooController m = new myFooController();System.assert(m.prop ==null);

D. myFooController m = new myFooController();System.assert(m.prop ==1);

Correct Answer: C


Question 13:

Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)

A. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.

B. Test data is inserted once for all test methods in a class.

C. Records created in the @testSetup method cannot be updates in individual test methods.

D. The @testSetup method is automatically executed before each test method in the test class is executed.

Correct Answer: D


Question 14:

Which statement results in an Apex compiler error?

A. Map lmap = new Map([Select ID from Lead Limit 8]);

B. Date d1 = Date.Today(), d2 = Date.ValueOf(`2018-01-01\’);

C. Integer a=5, b=6, c, d = 7;

D. List s = List{`a\’,`b\’,`c\’);

Correct Answer: D


Question 15:

Which approach should a developer use to add pagination to a Visualforce page?

A. A StandardController

B. The Action attribute for a page

C. The extensions attribute for a page

D. A StandardSetController

Correct Answer: D


Visit our site to get more DEX-450 Q and As:https://www.pass4king.com/dex-450.html (456 QAs Dumps)

Recommended Posts