A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate, and CreatedById must be passed to the external system in near real-time when an Account is inserted without error. How should a developer achieve this?
A. Use a before insert trigger and an @future method.
B. Use a before insert trigger and a Queueable class.
C. Use a Process Builder that calls an @InvocableMethod method.
D. Use a Workflow rule that calls an @InvocableMethod method.
Given the following code:
Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
A. System. QueryException: List has more than one row after Assignment on Account.
B. System. LimitException: To many SOQL Queries on Account.
C. System. QueryException: To many DML Statement errors on Contact
D. System. LimitException: Too many SOQL Queries on Contract
How should a developer assert that a trigger with an asynchronous process has successfully run?
A. Create at test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.
B. Insert records into Salesforce, use seeAllData-true, then perform assertions.
C. Create all test data, use @future In the test class, then perform assertions.
D. Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,
A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs.
Which method of integration should the application use?
A. Apex REST Web Service
B. SOAP API with the partner WSDL
C. SOAP API with the Enterprise WSDL
D. Metadata API
A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day. How can this be achieved?
A. Schedule an @future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them.
B. Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.
C. Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects.
D. Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years.
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 wrii return a unique list of all the Contact records that have no Fulfilled Orders?
A. SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled')
B. SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled')
C. SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled'
D. SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c = fulfilled')
A developer must perform a complex SOQL query that joins two objects in a Lightning component.
How can the Lightning component execute the query?
A. Use the SaJesforce Streaming API to perform the SOQL query.
B. Create a Process Builder to execute the query and invoke from the Lightning component.
C. Invoke an Apex dass with the method annotated as iraEnabled to perform the query.
D. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.
As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?
A. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld = :oppId];
B. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
C. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
D. ('StageName', Probability',Amount /CloseDate')];
E. [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];
A company has reference data stored in multiple Custom Metadata records that represent default information for certain.
When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information.
What is the optimal way to automate this?
A. Process Builder
B. Apex Trigger
C. Workflow Rule
D. Visual Flow
A developer is inserting, updating, and deleting multiple lists of records in a single transaction and wants to ensure that any error prevents all execution.
How should the developer implement error exception handling in their code to handle this?
A. Use Database methods to obtain lists of Database.SaveResults.
B. Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement.
C. Use a Try/Catch and use sObject.addError() on any failures.
D. Use a Try/Catch statement and handle DML cleanup in the catch statement.
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.