What is the optimal method for a developer to troubleshoot this?

An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this?A . Run the Apex Test Classes for the Apex trigger to ensure the code still...

October 28, 2021 No Comments READ MORE +

What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?

What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?A . Force.com Migration ToolB . Developer ConsoleC . WorkbenchD . Streaming APIView AnswerAnswer: C

October 28, 2021 No Comments READ MORE +

What is the most effective approach to ensure values displayed respect the users locale settings?

In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale. What is the...

October 28, 2021 No Comments READ MORE +

Which assertion would be used in a negative test case?

A developer is writing unit tests for the following method: Which assertion would be used in a negative test case?A . System.assertEquals(true, isFreezing(null))B . System.assertEquals (true, isFreezing('O')C . System.assertEquals(null, isFreezing('asdf))D . System.assertEquals(true, isFreezingClOO'))View AnswerAnswer: C

October 28, 2021 No Comments READ MORE +

What is the transaction limit for the number of records for SOSL?

What is the transaction limit for the number of records for SOSL?A . 20B . 2,000C . 100 (synchronous), 200 (async)D . 200 (synchronous), 100 (async)E . There is no limitView AnswerAnswer: B

October 28, 2021 No Comments READ MORE +

How would you test a web service?

How would you test a web service?A . Use the @future annotation on the methodB . Call the WebService interfaceC . Web Services do not need to be testedD . Create a class that implements the WebServiceMock interfaceView AnswerAnswer: D

October 27, 2021 No Comments READ MORE +

What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the...

October 27, 2021 No Comments READ MORE +

What should be done to address the problem?

A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records. The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to...

October 27, 2021 No Comments READ MORE +

What should a developer do to fix the problem?

A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment. A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an...

October 27, 2021 No Comments READ MORE +

Choose the correct definition for <apex:pageMessage>.

Choose the correct definition for <apex:pageMessage>.A . Standard Salesforce formatting, throws a specific message on a pageB . Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the "ApexPages.addMessage" functionC . A single message, without formatting, that can be associated with a specific component...

October 27, 2021 No Comments READ MORE +