Text Material Preview
PDII Salesforce Certified Platform Developer II exam dumps questions are the best material for you to test all the related Salesforce exam topics. By using the PDII exam dumps questions and practicing your skills, you can increase your confidence and chances of passing the PDII exam. Features of Dumpsinfo’s products Instant Download Free Update in 3 Months Money back guarantee PDF and Software 24/7 Customer Support Besides, Dumpsinfo also provides unlimited access. You can get all Dumpsinfo files at lowest price. Salesforce Certified Platform Developer II PDII exam free dumps questions are available below for you to study. Full version: PDII Exam Dumps Questions 1.Universal Containers implements a private sharing model for the Convention_Attendence_c custom object. As part of a new quality assurance effort, the company created an Event___Reviewer__c user 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 an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing. B. Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing. C. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records the a group of Event Reviewers. D. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers. 1 / 9 https://www.dumpsinfo.com/unlimited-access/ https://www.dumpsinfo.com/exam/pdii Answer: B 2.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 Answer: D Explanation: According to 1, REST API provides you with programmatic access to your data in Salesforce. You can use REST API to make HTTP requests to Salesforce endpoints and perform operations on your data. However, you also need to authenticate your requests using OAuth endpoints 2. According to 3, you can use Queueable Apex to schedule batch send the data from Salesforce to another system using REST API. Queueable Apex allows you to run asynchronous jobs that can be chained and monitored. You can call a Queueable class from a trigger to enqueue the job after an Account is created. Therefore, using a Queueable from a Trigger seems to be the best way to make the call to the ERP system’s REST endpoint. 3.Which statement is true regarding savepoints? A. Savepoints are not limited by DML statement governor limits B. You can roll back to any savepoint variable created In any order C. Static variables are not reverted during a rollback. D. Reference to savepoints can cross trigger invocations. Answer: C 4.A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record. What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously? A. Apex REST B. External JavaScript Library C. Apex Trigger D. Process Builder Answer: B 5.Exhibit. 2 / 9 https://www.dumpsinfo.com/ A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met. What are these changes the developer should implement in the Apex class above to ensure the LWC can display data efficiently while preserving security? Choose 3 answers A. Annotate the Apex method with gAuraEnabled- B. Annotate the Apex method with 8AuraEnabled (Cacheable-true). C. Use the WITH SECURITY_ENFORCED clause within the SOQL query. D. Implement the with sharing keyword in the class declaration. E. Implement the without sharing keyword in the class declaration. Answer: B,C,D 6.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 Answer: B 7.An org has a Process Builder process 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 uses the CommissionBaseAmount__c and complex logic to calculate a value for a custom field CommissionAmount_c, when an Opportunity stage changes to Closed/Won. Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the C:rr.i;5icnA.T.cur.t c is incorrect. Which two actions should the developer take to correct this problem? Choose 2 answers A. Call the trigger from the process. B. Uncheck the recursion checkbox on the process. C. Use a static Boolean variable in the trigger. D. Call the process from the trigger. Answer: A,C 3 / 9 https://www.dumpsinfo.com/ 8.A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price. What must be added to display the total? A. Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template. B. Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template. C. Add Total: {quantity * UnitPrice} in the template. D. Add Total; {multiple quantit,y unitprice)} in the template. Answer: B 9.Just prior to a new deployment, the Salesforce Administrator who configured a new order fulfillment process in a developer sandbox suddenly left the company. The users had fully tested all of the changes in the sandbox and signed off on them. Unfortunately, although a Change Set was started, it was not complete. A developer is brought in to help finish the deployment. What should the developer do to identify the configuration changes that need to be moved into production? A. Leverage the Setup Audit Trail to review the changes made by the departed Administrator and identify which changes should be added to the Change Set. B. Use the Metadata API and a supported development IDE to push all of the configuration from the sandbox into production to ensure no changes are lost. C. Set up Continuous Integration and a Git repository to automatically merge all changes from the sandbox metadata with the production metadata. D. In Salesforce setup, look at the last modified date for every object to determine which should be added to the Change Set. 4 / 9 https://www.dumpsinfo.com/ Answer: A 10.A business currently has a process to manually upload orders from its external Order Management System (OMS) into Salesforce. This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The upload file must be updated with the correct account IDs to relate the orders to the corresponding accounts.Which two recommendations should make this process more efficient? Choose 2 answers A. Ensure the data in the file is sorted by the order ID. B. Use the upsert wizard in the Data Loader to import the data. C. Identify unique fields on Order and Account and set them as External IDs. D. Use the Insert wizard In the Data Loader to import the data. Answer: B,C 11.Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers A. Use a Map accountMap instead of List accountList. B. Use a Map to cache the results of the Region__c query by Id. C. Move the Region__c query to outside the loop. D. Remove the last line updating accountList as it is not needed. Answer: C,D 12.Users report that a button on a custom Lightning Web Component is not working. However, there are no other details provided. What should the developer use to ensure error messages are properly displayed? A. Add the <apex:messages/> tag to the component. B. Use the Database method with allOrNone set to false. 5 / 9 https://www.dumpsinfo.com/ C. Add a Try/Catch block surrounding the DML statement. D. Add JavaScript and HTML to display an error message. Answer: D 13.Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch gob runs. What is the appropriate publish/subscribe logic to meet this requirement? A. Have the external system subscribe to a standard Platform Event that gets fired with EventBus.publish(). B. Have the external system subscribe to a custom Platform Event that gets fired with addError(). C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish() D. Have the external system subscribe to a standard Platform Event that gets fired. Answer: C Explanation: According to 1, you can use Apex to publish event messages from a Salesforce app by calling the EventBus.publish method. For example, if you defined a custom platform event called Low Ink, reference this event type as Low_Ink__e. Next, create instances of this event, and then pass them to the Apex method. According to 2 and 3, you can write an after insert Apex trigger on the event object to subscribe to incoming events. Triggers provide an autosubscription mechanism in Apex. Unlike triggers on standard or custom objects, triggers on platform events don’t execute in the same Apex transaction as the one that published the event. The trigger runs asynchronously in its own process. Therefore, using a custom Platform Event and EventBus.publish method seems to be the appropriate publish/subscribe logic to meet the requirement. 14.Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish- speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site. What should the developer use to ensure the site is multilingual? A. Use Custom Settings to ensure custom messages are translated properly. B. Use Custom Labels to ensure custom messages are translated property. C. Use Custom Metadata to translate custom picklist values. D. Use Custom Objects to translate custom picklist values. Answer: B 15.Consider the following code snippet: 6 / 9 https://www.dumpsinfo.com/ Which governor limit is likely to be exceeded when the trigger runs when a scope of 200 newly inserted accounts? A. Total number of DML statements issued B. Total number of records processed as a result of DML C. Total number of SOQL queries issued D. Total number of SOQL queries issued Answer: A 16.A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field. When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry. What is the optimal way to implement this? A. Add an <apex: actionFunction> within the <apex : selectOptions>. B. Add an <apex: actionFunction> within the <apex: select List >. C. Add an <apex: actionSupport> within the <apex:selectList>. D. Add an <apex: actionSupport> within the <apex: selectOptions>. Answer: B 17.Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity. Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity’s stage is changed to Closed/Won, its commission should be calculated in real time. What should a developer use so that different implementations of the commission calculation can be invoked on the stage change? 7 / 9 https://www.dumpsinfo.com/ A. A final dass with multiple methods B. Apex Describe Schema methods C. An Apex class with @ custom enum D. An Interface and implementing classes Answer: C 18.A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time. What is the optimal way to implement this? A. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code. B. Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly. C. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly. D. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice Answer: B 19.Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page. What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page? A. Use System.profllels() to test as an administrator and a community user, B. Use System.profilels() to test as a sales rep and a community user. C. Use System.runAs() to test as a sales rep and a community user. D. Use System.runAs() to test as an administrator and a community user. Answer: C 20.Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called candidate as created with organization-wide default set to Private. A lookup on the Candidate object sets an employee as an the viewer user A. The record can be shared using a permission set. B. The record can be shared using a sharing rule. C. The record cannot be shared with the current setup D. The record can be shared an Apex class. Answer: D 21.A developer is asked to look into an issue where a scheduled Apex is running into DML limits. Upon investigation, the developer finds that the number of records processed by the scheduled Apex has recently increased to more than 10,000. What should the developer do to eliminate the limit exception error? A. Use the @future annotation. B. Implement the Bathable interface. 8 / 9 https://www.dumpsinfo.com/ C. Use platform events. D. Implement the Queueable interface. Answer:B 9 / 9 https://www.dumpsinfo.com/