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

April 22, 2025 No Comments READ MORE +

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

April 18, 2025 No Comments READ MORE +

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

April 18, 2025 No Comments READ MORE +

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

April 16, 2025 No Comments READ MORE +

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

April 15, 2025 No Comments READ MORE +

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

April 14, 2025 No Comments READ MORE +

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

April 10, 2025 No Comments READ MORE +

Which SOQL query will get the record for the Viridian City Gym and all it's trainers?

A custom object Trainer_ < has a lookup field to another custom object cym__ c. Which SOQL query will get the record for the Viridian City Gym and all it's trainers?A . SELECT Id; (SELECT Id FROM Trainers_r) FROM Gym_ _c WHERE Name = 'Viridian City Gym'B . SELECT Id,...

April 9, 2025 No Comments READ MORE +

What should the developer implement to accomplish this?

Universal Containers (UC) processes orders in Salesforce in a custom object, ord=xr <. They also allow sales reps to upload CSV files with thousands of orders at a time. A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system. After the status for...

April 5, 2025 No Comments READ MORE +

What should the developer use to enforce sharing permissions for the currently logged in user while using the custom search tool?

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should...

April 5, 2025 No Comments READ MORE +