What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code? A . Account0.Phone=333-8781, Account1.Phone=333-8780B . Account0.Phone=888-1515, Account1.Phone=999-2525C . Account0.Phone=333-8780, Account1.Phone=333-8781D . Account0.Phone=888-1515, Account1.Phone=999-1515View AnswerAnswer: C

October 27, 2021 No Comments READ MORE +

What is the result of running this Apex?

An org has a single account named ‘NoContacts’ that has no related contacts. Given the query: List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=‘NoContacts’]; What is the result of running this Apex?A . accounts[0].contacts is invalid Apex.B . accounts[0].contacts is an empty Apex.C ....

October 27, 2021 No Comments READ MORE +

How can a developer set up a debug log on a specific user?

How can a developer set up a debug log on a specific user?A . It is not possible to setup debug logs for users other than yourself.B . Ask the user for access to their account credentials, log in as the user and debug the issue.C . Create Apex code...

October 27, 2021 No Comments READ MORE +

How should a developer avoid hitting the governor limits in test methods?

How should a developer avoid hitting the governor limits in test methods?A . Use @TestVisible on methods that create records.B . Use Test.loadData() to load data from a static resource.C . Use @IsTest (SeeAllData=true) to use existing data.D . Use Test.startTest() to reset governor limits.View AnswerAnswer: D

October 27, 2021 No Comments READ MORE +

Which two options allow the developer to dynamically determine the ID of the required Record Type by its name?

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type. Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)A . Make an outbound...

October 27, 2021 No Comments READ MORE +

What is the requirement for a class to be used as a custom Visualforce controller?

What is the requirement for a class to be used as a custom Visualforce controller?A . Any top-level Apex class that has a constructor that returns a PageReferenceB . Any top-level Apex class that extends a PageReferenceC . Any top-level Apex class that has a default, no-argument constructorD . Any...

October 26, 2021 No Comments READ MORE +

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)A . Use collections to store all fields from a related object and not just minimally required fields.B . Use methods from the “Limits” class to monitor governor limits.C . Use...

October 26, 2021 No Comments READ MORE +

For which three items can a trace flag be configured? (Choose three.)

For which three items can a trace flag be configured? (Choose three.)A . Apex TriggerB . Apex ClassC . Process BuilderD . UserE . VisualforceView AnswerAnswer: A,B,D

October 26, 2021 No Comments READ MORE +

What is a valid source and destination pair that can send or receive change sets? (Choose 2)

What is a valid source and destination pair that can send or receive change sets? (Choose 2)A . Developer Edition to SandboxB . Sandbox to ProductionC . Sandbox to SandboxD . Developer Edition to ProductionView AnswerAnswer: B, C

October 26, 2021 No Comments READ MORE +

What is a capability of formula fields? (Choose 3)

What is a capability of formula fields? (Choose 3)A . Generate a link using the HYPERLINK function to a specific record in a legacy system.B . Display the previous values for a field using the PRIORVALUE function.C . Return and display a field value from another object using the VLOOKUP...

October 25, 2021 No Comments READ MORE +