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

April 24, 2022 No Comments READ MORE +

What is the correct syntax to declare a remote method in Apex?

A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers. What is the correct syntax to declare a remote method in Apex? (Choose two.)A . @RemoteAction global static String getTable()B...

April 24, 2022 No Comments READ MORE +

What is the optimal functionality in the Developer Console to count the number of calls made to the method?

A developer has a Debug method within a class, which is invoked hundreds of times. What is the optimal functionality in the Developer Console to count the number of calls made to the method?A . The "Execution Log" PanelB . The "Execution Stack" PanelC . The "Executed Units" tab under...

April 24, 2022 No Comments READ MORE +

What is the most extendable way to update the Apex Trigger to accomplish this?

An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance. When a test batch of records are loaded, the Apex...

April 24, 2022 No Comments READ MORE +

What could be the cause of this issue?

A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey_c records are being created per Case. What could be the cause of this issue?A . A user is creating the record...

April 24, 2022 No Comments READ MORE +

What are two limitations to the data being returned by the Controller?

A developer wants to call an Apex Server-side Controller from a Lightning Aura Component . What are two limitations to the data being returned by the Controller? Choose 2 answersA . A Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.B . Basic...

April 24, 2022 No Comments READ MORE +

What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?

Universal Containers implements a private sharing model for the Convention_Attendence_c custom object. As part of a new quality assurance effort, the company created an Event___Reviewer__c user lookup field on the object. Management wants the event reviewer to automatically gain Read/write access to every record they are assigned to. What is...

April 24, 2022 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...

April 23, 2022 No Comments READ MORE +

What can the developer use to provide test data to the test methods?

A developer needs test data for Apex test classes. What can the developer use to provide test data to the test methods? (Choose two.)A . List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);B . myDataFactory.createTestRecords (10)C . Database.createTestRecords (10)D . List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);View AnswerAnswer: A,B

April 23, 2022 No Comments READ MORE +

During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?

During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?A . Create the view stateB . Evaluate constructors, extensions, and expression on attribute definitions on any custom components presentC . Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main pageD ....

April 23, 2022 No Comments READ MORE +