Certbus > Salesforce > Salesforce Developer > DEX-450 > DEX-450 Online Practice Questions and Answers

DEX-450 Online Practice Questions and Answers

Questions 4

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.

Browse 456 Q&As
Questions 5

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

Browse 456 Q&As
Questions 6

A developer must write an Apex method that will be called from a Lightning component. The method may delete an account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can succesfully perform deletions?

A. AccountRec.sObjectType.isDeleteable()

B. Schema.sObjectType.Account.isDeletable()

C. AccountRec.isdeletable()

D. Account.isDelketable()

Browse 456 Q&As
Questions 7

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

A. Production

B. Dev Hub

C. Environment Hub

D. Sandbox

Browse 456 Q&As
Questions 8

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?

A. No changes are made to the data.

B. Both the Apex Trigger and Workflow Rule are fired only once.

C. The Workflow Rule is fired more than once.

D. The Apex Trigger is fired more than once.

Browse 456 Q&As
Questions 9

A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? (Choose 2)

A. Download a Managed Package from the AppExhange that provides a custom Visualforce page to modify.

B. Copy the standard page and then make a new Visualforce page for Product data entry.

C. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.

D. Create a new Visualforce page and an Apex controller to provide Product data entry.

Browse 456 Q&As
Questions 10

What is the accurate statement about with sharing keyword? choose 2 answers

A. Inner class do not inherit the sharing setting from the container class

B. Both inner and outer class can be declared as with sharing

C. Either inner class or outer classes can be declared as with sharing but not both

D. Inner class inherit the sharing setting from the container class

Browse 456 Q&As
Questions 11

A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List childCases = new List();for (Case parent : Trigger.new){Case child = new Case (ParentId = parent.Id, Subject = parent.Subject);childCases.add(child);}insert childCases; What happens after the code block executes?

A. Multiple child cases are created for each parent case in Trigger.new.

B. Child case is created for each parent case in Trigger.new.

C. The trigger enters an infinite loop and eventually fails.

D. The trigger fails if the Subject field on the parent is blank.

Browse 456 Q&As
Exam Code: DEX-450
Exam Name: Programmatic Development using Apex and Visualforce in Lightning
Last Update: Apr 29, 2024
Questions: 456 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99