Salesforce PDII Test Engine Practice Test Questions, Exam Dumps
100% Free PDII Daily Practice Exam With 325 Questions
How to book the PDII Exam
These are following steps for registering the PDII Exam. Step 1: Visit to Webassessor Exam Registration Step 2: Signup/Login to Webassessor Step 3: Select the onsite proctored or online proctored delivery method of Certification Exam Step 4: Select Date, time and confirm with a payment method
For more information, please click here.
NEW QUESTION 98
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 Enterprise 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 Partner WSDL and use it to make a callout to the OMS.
Answer: B
NEW QUESTION 99
35. A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?
- A. Use ProcessBuilder to catch the error.
- B. Add an onerror event handler to the tag.
- C. Use an AuraHandledException in a try/catch block.
- D. Add an error-view component to the markup.
Answer: C
NEW QUESTION 100
In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing?
- A. Poor performance when using native sharing components
- B. You need to change record access to read/write for all users utilising a lightning component
- C. Here is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
- D. Every record created by sales users needs to be visible to their respective manager
- E. Team functionality is required on custom objects
Answer: A,C,E
NEW QUESTION 101
A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three actions to enable this functionality?
- A. Surround the data insertion with Test.startTest(), Test.stopTest().
- B. Update code to call Test.setMock().
- C. Surround the callout with Test.startTest(), Test.stopTest().
- D. Implement the HttpCalloutMock interface.
- E. Implement the WebServiceMock interface.
Answer: B,C,E
NEW QUESTION 102
Refer to the markup below:
A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The developer receives complaints that the component performs slowly.
What can the developer do to improve the performance?
A)
B)
C)
D)
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: C
NEW QUESTION 103
A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric. What is a recommended way for the error message be displayed to the end user?
- A. Use the < apex:Message> tag to display errors.
- B. Use the < ui : outputText> tag to display errors.
- C. Use the < ui:inputDefaultError> tag to display errors.
- D. Use the < aura:component> tag to display errors.
Answer: C
NEW QUESTION 104
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.
How can this requirement be met with minimal customizations?
- A. Create a scheduled batch job that updates all contact address fields based on the related account record.
- B. Create an After Trigger on Account to upd|ate its related contact records on update
- C. Create a Workflow Rule on Account to update related child Contact records
- D. Create a Lightning Process on Account to update related child Contact records
Answer: D
NEW QUESTION 105
Which of the following exceptions cannot be caught and will force an error? (Choose 3)
- A. License exceptions
- B. DMLException
- C. LimitException
- D. ListException
- E. AssertException
- F. SObjectExceptions
Answer: A,C,E
NEW QUESTION 106
A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits.
What are three recommendations to optimize page performance? (Choose three.)
- A. Specify the list of sales forecasts as transient
- B. Implement pagination and reduce records per page
- C. Segregate calculation functionality from input functionality
- D. Use JavaScript Remoting instead of controller actions
- E. Create formula fields to compute pivoted forecast calculations
Answer: B,C,D
NEW QUESTION 107
A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits. What are three recommendations to optimize page performance?
- A. Create formula fields to compute pivoted forecast calculations.
- B. Segregate calculation functionality from input functionality.
- C. Specify the list of sales forecasts as transient.
- D. Use JavaScript Remoting instead of controller actions.
- E. Implement pagination and reduce records per page.
Answer: A,B,D
NEW QUESTION 108
What are three benefits of using static resources in Visualforce and Lightning Components? Choose 3 answers
- A. Static resource files do not count against an organization's quota of data storage.
- B. Relative paths can be used in files in static resource archives to refer to other content within the archive.
- C. Static resource files can be referenced by using the $Resource global variable instead of hardcoded IDs.
- D. Static resource files can be packaged into a collection of related files in a zip or jar archive.
- E. Static resource files are automatically minified.
Answer: C,D
NEW QUESTION 109
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a "Maximum view state size limit" error message under certain conditions.
According to Visualforce best practice, which three actions should the developer take to reduce the view state? (Choose three.)
- A. Refine any SOQL queries to return only data relevant to the page
- B. Use the final keyword in the controller for variables that will not change
- C. Use filters and pagination to reduce the amount of data
- D. Use the private keyword in the controller for variables
- E. Use the transient keyword in the Apex controller for variables that do not maintain state
Answer: A,B,C
NEW QUESTION 110
A developer needs to design a custom object that will be integrated into a back-end system. What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? Choose 2 answers
- A. Configure a custom field as unique.
- B. Configure a custom field as indexed.
- C. Configure a custom field as external ID.
- D. Configure a custom field as Salesforce ID.
Answer: A,C
NEW QUESTION 111
Universal Containers implements a private sharing model for the Convention_Attendee_ _ccustom object. As part of a new quality assurance effort, the company created an Event_Reviewer_ _cuser 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 the best approach to ensure the assigned reviewer obtains Read/Write access to the record?
- A. Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
- B. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.
- C. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records to a group of Event Reviewers.
- D. Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
Answer: A
Explanation:
Explanation/Reference: https://help.salesforce.com/articleView?id=security_apex_sharing_reasons.htm&type=5
NEW QUESTION 112
A company requires an external system to be notified whenever an account is updated.
What LimitException could the following code trigger?
- A. System.LimitException: Too many callouts
- B. System.LimitException: Too many future calls
- C. System.LimitException: Too many SOQL queries
- D. System.CalloutException: Callout from triggers are currently not supported
Answer: B
NEW QUESTION 113
A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method in response to a user action.
How can the developer accomplish this?
- A. Use <apex:actionSupport> to enable JavaScript support for the controller method
- B. Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
- C. Use the @RemoteAction annotation on the method definition with JavaScript Remoting
- D. Use the $Controller global variable to access the controller method via JavaScript
Answer: C
NEW QUESTION 114
Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers
- A. D

- B. A

- C. B

- D. E

- E. C

Answer: C,D,E
NEW QUESTION 115
......
How much PDII Exam Cost
The price of the Salesforce Certified Platform Developer II (PDII) Exam is $200 USD.
Use Valid New PDII Test Notes & PDII Valid Exam Guide: https://www.vcetorrent.com/PDII-valid-vce-torrent.html
PDII exam torrent Salesforce study guide: https://drive.google.com/open?id=1c9nz-8PM5jbmtW04QRARXPpve2IKXga7