Practice Free PDII Exam Online Questions
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script.
Following best practices, what should a developer use to meet this requirement?
- A . Approvals
- B . Flow Builder
- C . Apex Trigger
- D . Process Builder
A developer has a test class that creates test data before making a mock call-out, but now receives a you have uncommitted work pending. Please commit or callout before calling out error.
What step should be taken to resolve the error?
- A . Ensure both the insertion and mock callout occur after the Test.stopTest().
- B . Ensure the records are inserted before the Test.startTest() statement and the mock callout occurs within a method annotated with @testSetup.
- C . Ensure both the insertion and mock callout occur after the Test.startTest().
- D . Ensure the records are inserted before the Test.startTest() statement and the mock callout after the Test.startTest().
Refer to the code snippet below:
When a Lightning web component is rendered, a list of opportunity that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the fetchOpps method available within the Lightning web component?
- A . The fetchOpps method must be annotated with the @InvocableMethod annotation.
- B . The fetchOpps method must specify the (continustion-true) attribute
- C . The fetchOpps method cannot mutate the result set retrieved from the database.
- D . The fetchOpps method must specify the (cacheable =true) attribute
- E . The fecthOpps method must be annotated with the @ AuraEnabled annotation.
Refer to the Lightning component below:
The Lightning Component allows users to click a button to save their changes and then redirects them to a different page. Currently when the user hits the Save button, the records are getting saved, but they are not redirected.
Which three techniques can a developer use to debug the JavaScript? Choose 3 answers
- A . Use the browser’s dev tools to debug the JavaScript.
- B . Enable Debug Mode for Lightning components for the user.
- C . Use Developer Console to view checkpoints.
- D . Use console.log () messages in the JavaScript.
- E . Use Developer Console to view the debug log.
A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.
What can a developer use to analyze and diagnose the problem in the Lightning Page?
- A . Salesforce Lightning Inspector Storage Tab
- B . Salesforce Lightning Inspector Actions Tab
- C . Salesforce Lightning Inspector Event Log Tab
- D . Salesforce Lightning Inspector Transactions Tab
Refer to the Aura component below:
Component markup:
Controller JS:
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?
- A . Change the type of contactInfo to "Map’.
- B . Add a change event handler for showcontactInfo.
- C . Change the default for showcontactlnfo to "false’.
- D . Move the contents of <c: contactlnfo> into the component.
How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and Momen US, in a Lightning Component?
- A . Implement the libraries in separate helper files.
- B . Use CONs with script attributes
- C . Use JavaScript remoting and script tags.
- D . Join multiple assets from a static resource.
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.
What can a developer do to help alleviate such issues?
- A . Upload a third-party data table library as a static resource.
- B . Use JavaScript remoting to query the accounts.
- C . Use the standard Account List controller and implement pagination.
- D . Use the transient keyword in the Apex code when querying the Account records.
Universal Containers (UC) has an CRP system that stores customer information.
When an Account is created in Salesforce, the FRP system’s REST endpoint for creating new customers must automatically be called with the Account information, If the call to the ERP system fails, the Account should still be created. Accounts in UC org are only created, one at a time, by users in the customer on-boarding department.
What should a developer to make the call to the CRP system’s REST endpoint7
- A . REST call from JavaScript
- B . Headless Quick Action
- C . apex Continuation
- D . call a Queueable from a Trigger
A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired.
What is the optimal way to accomplish this?
- A . Use a Workflow Email Alert.
- B . Usea MassEmailMessage() with an Apex Trigger.
- C . Use a SingleEmailMessage() with an Apex Trigger.
- D . Use an Email Alert with Process Builder.