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 +

Which three resources in an Azure Component can contain JavaScript functions?

Which three resources in an Azure Component can contain JavaScript functions?A . ControllersB . helperC . DesignD . StyleE . RendererView AnswerAnswer: A,B,E

May 1, 2022 No Comments READ MORE +

Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?

A developer created these three Rollup Summary fields in the custom object, Project_ct, The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to Implement the business requirement in order to minimize maintenance...

May 1, 2022 No Comments READ MORE +

What are two ways the developer can update the method to prevent a SOQL injection attack?

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List<Contact> performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two...

May 1, 2022 No Comments READ MORE +

How should a developer accomplish this?

Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage. How should a developer accomplish this?A . Use a validation rule.B . Use the Process Automation settings.C . Use Flow Builder.D . Mark fields as read-only on the page layout.View AnswerAnswer: A

May 1, 2022 No Comments READ MORE +