Which type of Salesforce orgs should they use for their development?

A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?A . Developer sandboxesB . Scratch orgsC . Full Copy sandboxesD . Developer orgsView AnswerAnswer: B

June 7, 2021 No Comments READ MORE +

Which three statements are useful inside the unit test to effectively test the custom controller?

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to...

June 7, 2021 No Comments READ MORE +

Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?A . Asynchronous Data Capture EventsB . Developer LogC . Event Monitoring LogD . Calendar EventsView AnswerAnswer: C

June 7, 2021 No Comments READ MORE +

Which automation tool meets these requirements?

A developer needs to implement the functionality for a service agent to gather multiple pieces of information from a customer in order to send a replacement credit card. Which automation tool meets these requirements?A . Flow BuilderView AnswerAnswer: A

June 7, 2021 No Comments READ MORE +

followed?

A developer identifies the following triggers on the Expense_c object: ✑ DeleteExpense, ✑ applyDefaultstoexpense ✑ validateexpenseupdate; The triggers process before delete, before insert, and before update events respectively. Which two techniques should the developer implement to ensure trigger best practice are followed?A . Unify the before insert and before update...

June 7, 2021 No Comments READ MORE +

How can the developer make sure that validation rule violations are displayed?

A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?A . Add custom controller attributes to display the message.B . Include <apex:messages> on...

June 7, 2021 No Comments READ MORE +

How should the Developer overcome this problem?

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 IC . Use @IsTest(SeeAllData=true) and delete the existing standard...

June 6, 2021 No Comments READ MORE +

Which two will restrict the records correctly?

A developer must create an Apex class, contactcontroller, that a Lightning component can use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access. Which two will restrict the records correctly?A . public class ContactControllerB . public...

June 6, 2021 No Comments READ MORE +

How should the developer prevent a cross site scripting vulnerability?

A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?A . ApexPages.currentPage() .getParameters() .get('url_param')B . ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()C . String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))D . String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))View AnswerAnswer: D

June 6, 2021 No Comments READ MORE +

Which method signature should the developer use?

A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?A . Public void doWork(Record theRecord)B . Public void doWork(sObject theRecord)C . Public void doWork(Account Contact)D . Public void doWork(Account || Contatc)View AnswerAnswer: B

June 6, 2021 No Comments READ MORE +