Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers
A. <apex:commondLink>
B. <apex:commandButton>
C. <Apex:form>
D. <apex:actionsStatus>
E. <apex:actionSupport>
A developer has requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account. Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?
A. Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;)list 1contacts = (SELECT firstname, lastname from Contacts where accountid=: a -ID0;
B. A. Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account, Contacts) from Account where name; Ozone Electronic' Limit 1 );
C. List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form Contact where contact account , name 'ozone electronics));
D. List 1Contacts = new list ( );for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from Contact where Account: Name=' electronics')) ( iContacts.add(c);)
A developer wrote a class named AccountHistoryManager that relies on field history
tracking. The class has a static method called getAccountHistory that takes in an account
as a parameter and returns a list of associated AccountHistory object records. The following test fails:
What should be done to make this test pass?
A. Use @isTest(SeeAllData-true) to see historical data from the org and query for
AccountHistory records.
B. Use Test.isRunningTest () in getAccountHistory () to conditionally return fake Account History records.
C. Create AccoumHistory records manually in the test setup and write a query to get them.
D. The test method should be deleted since this code cannot be tested.
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? Choose 3 answer
A. Import the static resource.
B. Reference the static resource in a <script> tag.
C. Import a method from the platformResourceLoader.
D. Call LoadScript.
E. Append the static resource to the DOM.
A developer is tasked with creating a Lightning web component that is responsive on various devices. Which two components should help accomplish this goal? Choose 2 answers
A. Lightning-input-location
B. Lightning-layout-item
C. Lightning-navigation
D. Lightning-iayout
A company has a custom object, Order_ c, that has a custom picklist field, Status__ c, with
values of New/ 'In Progress/ or 'Fulfilled' and a lookup field, Contact__ c, to Contact.
Which SOQL query will return a unique list of all the Contact records that have no 'Fulfilled'
Orders?
A. option
B. option
C. option
D. option
Consider the following code snippet: How should component communicate to the component that an order has been selected by the user?
A. Created and fire an application event.
B. Create and fire a standard DOM event.
C. Create and fire a component event.
D. Create and dispatch a custom event
A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set. What is the optimal way to achieve this?
A. Create a Before Save Flow, execute a Queueable job from it, and make a callout from
the Queueable job.
B. Create an Apex trigger, execute a Queueable job from it, and make a callout from the Queueable job.
C. Create a Workflow Rule, execute a Queueable job from it, and make a callout from the
Queueable job.
D. Create a Process, execute a Queueable job from it, and make a callout from the Queueable job.
An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, commissionBaseAmount_ c, when an Opportunity is edited and the Opportunity’s Amount changes. A developer recently deployed an Opportunity before update trigger that use the commissionBaseAmount_ c, andcomplex logic to calculate a value for a custom field, CommissionAmount_ c, when an Opporunity stage changes to Closed/Won. Users report that when they change the Opportunity stage changes to Closed/Won and also change the Amount during the same save, the commission_ c is incorrect. Which action should the developer take to correct this problem?
A. Call the process from the trigger.
B. Call the trigger from the process.
C. Replace the process with a fast field Update record-trigger flow.
Consider the following code snippet:
Users of this Visualforce page complain that the page does a full refresh every time the
Search button is pressed.
What should the developer do to ensure that a partial refresh is made so that only the
section identified with opportunity List Is re-drawn on the screen?
A. Ensure the action method search returns null.
B. Implement the tag with immedate _true.
C. Implement the reRender attribute on the tag.
D. Enclose the DATA table within the tag.