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