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.
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);
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()
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
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.
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.
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
A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List
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.