What is the most efficient way to ensure a value is selected every time a record is saved?

A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record...

May 4, 2022 No Comments READ MORE +

Which standard field is required when creating a new contact record?

Which standard field is required when creating a new contact record?A . LastNameB . NameC . AccountIdD . FirstNameView AnswerAnswer: A

May 4, 2022 No Comments READ MORE +

What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components? Choose 3 answers

What are three capabilities of the <ltng : require> tag when loading JavaScript resources in Aura components? Choose 3 answersA . Loading files from DocumentsB . One-time loading for duplicate scriptsC . Specifying loading orderD . Loading scripts In parallelE . Loading externally hosted scriptsView AnswerAnswer: B,C,D

May 4, 2022 No Comments READ MORE +

Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers

Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answersA . Records created in the test setup method cannot be updated in individual test methods.B . Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used.C . Test data...

May 4, 2022 1 Comment READ MORE +

Which two methods are best practice to implement heap size control for the above code?

As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows. Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)A . Use the...

May 3, 2022 1 Comment READ MORE +

What should the developer do to provide the custom user interface?

A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?A . Override the Contact’s Edit button with a Visualforce page in Salesforce...

May 3, 2022 No Comments READ MORE +

What is the correct implementation of the ShippingCalculator class?

A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class?A . Public abstract class ShippingCalculator { public override calculate() { /*implementation*/ } }B . Public...

May 3, 2022 No Comments READ MORE +

What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example?

What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example? A . Querying Accounts. Query Exception.B . Querying Accounts. Custom Exception.C . Querying Accounts. Query Exception. DoneD . Querying Accounts. Custom Exception Done.View AnswerAnswer:...

May 2, 2022 No Comments READ MORE +

Which two strategies can a developer use to accomplish this?

Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage. Which two strategies can a developer use to accomplish this? Choose 2 answersA . Use the Process Automation settings.B . Use an after-save flow.C . Use a trigger.D . Use a validation rule.View AnswerAnswer: C,D

May 2, 2022 No Comments READ MORE +

Which approach should the developer use to be sure that the Apex class works correctly?

While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly. Which approach should the developer use to be sure that the Apex class works correctly?A . Include a try/catch block to the Apex class.View AnswerAnswer: A

May 2, 2022 No Comments READ MORE +