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 +

Which governor limit will likely be exceeded within the Apex transaction?

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: Which governor limit will likely be exceeded within the Apex transaction?A . Total number of DML statement issuedB . Total number of SOQL queries issuedC . Total number of records...

May 1, 2022 1 Comment READ MORE +

What are two ways the developer can fire the exception in Apex?

A developer creates a custom exception as shown below: What are two ways the developer can fire the exception in Apex? Choose 2 answersA . Throw new ParityException (parity does not match);B . New ParityException( );C . New ParityException (parity does not match);D . Throw new parityException ( );View AnswerAnswer:...

May 1, 2022 No Comments READ MORE +

What is the appropriate publish/subscribe logic to meet these requirements?

Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?A . Publish the error event...

May 1, 2022 No Comments READ MORE +

What are two ways that a controller and extension can be specified on a Visualforce page? Choose 2 answers

What are two ways that a controller and extension can be specified on a Visualforce page? Choose 2 answersA . a@pex:page=Account extends="myControllerExtension"B . Qo apex:page standardController="Account" extensions="myControllerExtension”C . apex:page controllers="Account, myControllerExtension”D . apex:page controller="Account” extensions="myControllerExtension"”View AnswerAnswer: B,D

May 1, 2022 No Comments READ MORE +

Which statement should be used to allow some of the records in a list of records to be inserted rf others fail to be inserted?

Which statement should be used to allow some of the records in a list of records to be inserted rf others fail to be inserted?A . insert recordsB . Database.insert(records, true)C . insert (records, false)D . Database.insert(records, false)View AnswerAnswer: C

April 30, 2022 1 Comment READ MORE +

Which Apex solution will let the developer implement this requirement?

A developer uses a loop to check each Contact in a list. When a Contact with the Title of “Boss” is found, the Apex method should jump to the first line of code outside of the for loop. Which Apex solution will let the developer implement this requirement?A . break;B...

April 30, 2022 No Comments READ MORE +