Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce. The flow of data is as follows:
1.
The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds.
2.
If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds.
3.
If a match is not found, the integration will create a Lead and a Task for that newly created Lead.
What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?
A. Use the REST API as well as the SOAP API to effectively double the API calls allowed in a 24-hour period.
B. write a custom Apex web service that, given an email address, does all of the logic the integration code was doing.
C. Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.
D. Create an Inbound Message that, using Flow, can do all of the logic the integration code was doing.
A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?
A. Refresh the sandbox and upgrade it to the latest API version.
B. Delete the component, metadata, and Apex controller and recreate them.
C. Expose it in the markup using the implements and access attributes.
D. Look for errors in the logic in the JavaScript controller.
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
A. Supports complex server-side application logic
B. Does not require any JavaScript code
C. Does not require any Apex code
D. Allows for specified re-render targets
A Developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?
A. Decorate the server-side method with @AuraEnabled(cacheable=true).
B. Set a cookie in the browser for use upon return to the page.
C. Decorate the server-side method with @AuraEnabled(storable=true).
D. Call the setStorable() method on the action in the JavaScript client-side code.
A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active,' and Accounts with the type set to 'Prospect' should have a status of 'Pending.' No other changes to data should be made. Which code block will accurately meet the business requirements?
A. Option A
B. Option B
C. Option C
D. Option D
A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen. Which functionality consideration impacts the final decision?
A. Does the screen need to be accessible from the Lightning Experience UI?
B. Will the screen make use of a JavaScript framework?
C. Does the screen need to be rendered as a PDF?
D. Will the screen be accessed via a mobile app?
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?
A. Add @testVisible to the method in the class the developer is testing.
B. Use system.assert() in testSetup to verify the values are being returned.
C. Call the Apex class method from a testMethod instead of the testSetup method.
D. Verify the user has permissions passing a user into System.runAs().
Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List
A. Line 1: class must be global
B. Lines 1 and 6: class and method must be global
C. Line 6: method must be static
D. Line 8: method must first serialize the list to JSON before returning
A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the optimal method to implement this?
A. Create an Apex trigger and make a callout to the OMS from the trigger.
B. Generate the Partner WSDL and use it to make a callout to the OMS.
C. Create an Outbound Message that contains the session ID and send it to the OMS.
D. Generate the Enterprise WSDL and use it to make a callout to the OMS.
A company's support process dictates that any time a Case is closed with a Status of 'Could not fix,' an Engineering Review custom object record should be created and populated with information from the Case, the Contact, and any of the Products associated with the Case. What is the correct way to automate this using an Apex trigger?
A. An after upsert trigger that creates the Engineering Review record and inserts it
B. A before update trigger that creates the Engineering Review record and inserts it
C. An after update trigger that creates the Engineering Review record and inserts it
D. A before upsert trigger that creates the Engineering Review record and inserts it
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.