How should a developer modify the code to ensure exceptions are handled gracefully?
Considering the following code snippet: When the code executes, a DML exception is thrown. How should a developer modify the code to ensure exceptions are handled gracefully?A . Implement Change Data Capture,B . Implement a try/catch block for the DML.C . Implement the upsert DML statement.D . Remove null items...
Which two options can be used to build out the business logic layer for this application?
Universal Containers decides to use purely declarative development to build out a new Salesforce application. Which two options can be used to build out the business logic layer for this application? Choose 2 answersA . Validation RulesB . Remote ActionsC . Record-Triggered FlowD . Batch JobsView AnswerAnswer: A, C Explanation:...
Which update must the developer make in the flow?
An org has an existing flow that edits an Opportunity with an Update Records element. A developer must update the flow to also create a Contact and store the created Contact’s ID on the Opportunity. Which update must the developer make in the flow?A . Add a new Update Records...
Which annotation exposes an Apex class as a RESTful web service?
Which annotation exposes an Apex class as a RESTful web service?A . @HttpInvocableB . @RemoteActionC . @RestResource (urlMapping="'/mySexrvice/*')D . @AuraEnabled(cacheable=true)View AnswerAnswer: C Explanation: To expose an Apex class as a RESTful web service, you use the @RestResource annotation. Option C: @RestResource(urlMapping='/myService/*') @RestResource Annotation: The @RestResource annotation is used to define...
What is the value of the Trigger.old context variable in a before insert trigger?
What is the value of the Trigger.old context variable in a before insert trigger?A . list of newly created sObjects without IDsB . UndefinedC . nullD . An empty list of sObjectsView AnswerAnswer: C Explanation: In a before insert trigger: Trigger.old is null. There is no existing record in the...
what should the developer do to correct the problem?
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: Visualforce page snippet: what should the developer do to correct the problem?A . Add a getter method for the attribute.B . Convert theAccount.Type to a String.C . Change theAccount...
What are two considerations for deploying from a sandbox to production? Choose 2 answers
What are two considerations for deploying from a sandbox to production? Choose 2 answersA . Should deploy during business hours to ensure feedback can be quickly addressed.B . All triggers must have at least one line of test coverage.C . least 75% of Apex code must be covered by unit...
Which tool should the developer use to troubleshoot query performance?
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot query performance?A . Setup MenuB . Developer ConsoleC . Visual Studio Code IDED . AppExchangeView AnswerAnswer: B Explanation: To troubleshoot query performance issues:...
Which relationship implementation supports these requirements on its own?
A developer has the following requirements: Calculate the total amount on an Order. Calculate the line amount for each Line Item based on quantity selected and price. Move Line Items to a different Order if a Line Item Is not In stock. Which relationship implementation supports these requirements on its...
What can be used to override the Account's standard Edit button for Lightning Experience?
What can be used to override the Account's standard Edit button for Lightning Experience?A . Lightning componentB . Lightning actionC . Lightning flowD . Lightning pageView AnswerAnswer: A Explanation: To override the Account's standard Edit button in Lightning Experience: Option A: Lightning component In Lightning Experience, you can override standard...