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