What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?A . Use the first three characters of the sObject ID to determine the sObject type.B . Use the...

September 10, 2019 No Comments READ MORE +

Which scenario is invalid for execution by unit tests?

Which scenario is invalid for execution by unit tests?A . Executing methods for negative test scenariosB . Loading the standard Pricebook ID using a system methodC . Loading test data in place of user input for Flows.D . Executing methods as different users.View AnswerAnswer: C

September 10, 2019 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

September 9, 2019 No Comments READ MORE +

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

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

September 9, 2019 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...

September 9, 2019 No Comments READ MORE +

Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?A . REST resource path URLB . Workbench REST ExplorerC . Developer Console REST tabD . Force.com IDE REST Explorer tabView AnswerAnswer: B

September 9, 2019 No Comments READ MORE +

Where can the custom roll-up summary fields be created using Standard Object relationships? (Choose 3)

Where can the custom roll-up summary fields be created using Standard Object relationships? (Choose 3)A . On Opportunity using Opportunity Product records.B . On Account using Case records.C . On Quote using Order records.D . On Campaign using Campaign Member records.E . On Account using Opportunity records.View AnswerAnswer: A, D,...

September 9, 2019 No Comments READ MORE +

How should the developer implement this request?

A developer is asked to set a picklist field to ‘Monitor’ on any new Leads owned by a subnet of Users. How should the developer implement this request?A . Create an after insert Lead trigger.B . Create a before insert Lead trigger.C . Create a Lead Workflow Rule Field Update.D...

September 8, 2019 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

September 8, 2019 No Comments READ MORE +

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

September 7, 2019 No Comments READ MORE +