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 @TestVisibleclass variables.View AnswerAnswer: C

October 2, 2020 No Comments READ MORE +

Which two platform features align to the Controller portion of MVC architecture? (Choose two.)

Which two platform features align to the Controller portion of MVC architecture? (Choose two.)A . Process Builder actionsB . Workflow rulesC . Standard objectsD . Date fieldsView AnswerAnswer: AB

October 2, 2020 No Comments READ MORE +

What are two benefits of the Lightning Component framework? (Choose two.)

What are two benefits of the Lightning Component framework? (Choose two.)A . It simplifies complexity when building pages, but not applications.B . It provides an event-driven architecture for better decoupling between components.C . It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.D . It...

October 2, 2020 No Comments READ MORE +

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

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

October 1, 2020 No Comments READ MORE +

Which two SOSL searches will return records matching search criteria contained in any of the searchable text fields on an object? (Choose two.)

Which two SOSL searches will return records matching search criteria contained in any of the searchable text fields on an object? (Choose two.)A . [FIND ‘Acme*’ IN ANY FIELDS RETURNING Account, Opportunity];B . [FIND ‘Acme*’ RETURNING Account, Opportunity];C . [FIND ‘Acme*’ IN ALL FIELDS RETURNING Account, Opportunity];D . [FIND ‘Acme*’...

October 1, 2020 No Comments READ MORE +

Which method allows access to the price book?

A Developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?A . Use Test.getStandardPricebookId()to get the standard price book IC . Use @IsTest(SeeAllData=true)and delete the existing standard price book.D...

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

September 30, 2020 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) fromAccount 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 . accounts[0].contacts...

September 30, 2020 No Comments READ MORE +