What is a benefit of using an after insert trigger over using a before insert trigger?

What is a benefit of using an after insert trigger over using a before insert trigger?A . An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.B . An after insert trigger allows a developer to insert other objects that reference the...

December 9, 2020 No Comments READ MORE +

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

Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)A . ENUMB . sObjectC . External IDD . StringView AnswerAnswer: A,D

December 8, 2020 No Comments READ MORE +

What is the result of the debug statement?

A developer writes the following code: What is the result of the debug statement?A . 1, 100B . 1, 150C . 2, 150D . 2, 200View AnswerAnswer: C

December 8, 2020 No Comments READ MORE +

What are three valid Apex loop structures for iterating through items in the collection?

Given: Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)A . for (ID accountID : accountMap.keySet()) {…}B . for (Account accountRecord : accountMap.values()) {…}C . for (Integer i=0; I < accountMap.size();...

December 8, 2020 No Comments READ MORE +

What should the developer do to deploy to production?

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page. What should the developer do to deploy to production?A . Create a test class that provides coverage of the Visualforce page.B . Create a test page...

December 8, 2020 No Comments READ MORE +

Which two strategies should a developer use to accomplish this?

Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)A . Use a Visual Workflow.B . Use a validation rule.C . Use the Process Automation Settings.D . Use a Trigger.View AnswerAnswer: B,D

December 8, 2020 No Comments READ MORE +

Which approach should be used to provide test data for a test class?

Which approach should be used to provide test data for a test class?A . Query for existing records in the database.B . Execute anonymous code blocks that create data.C . Use a test data factory class to create test data.D . Access data in @TestVisible class variables.View AnswerAnswer: C

December 8, 2020 No Comments READ MORE +

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

Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)A . <apex:stylesheet> tagB . Inline CSSC . <apex:style>tagD . <apex:stylesheets>tagE . A static resourceView AnswerAnswer: A,B,E

December 7, 2020 No Comments READ MORE +

What is the requirement?

A developer wants to override a button using Visualforce on an object. What is the requirement?A . The controller or extension must have a PageReference method.B . The standardController attribute must be set to the object.C . The action attribute must be set to a controller method.D . The object...

December 7, 2020 No Comments READ MORE +

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

Which approach should a developer use to add pagination to a Visualforce page?A . A StandardControllerB . The Action attribute for a pageC . The extensions attribute for a pageD . A StandardSetControllerView AnswerAnswer: D

December 7, 2020 No Comments READ MORE +