PDII by Salesforce Actual Free Exam Questions And Answers [UPDATED 2024]
PDII Questions Truly Valid For Your Salesforce Exam!
The PDII certification exam consists of multiple-choice questions and hands-on exercises that test a developer's ability to solve real-world problems using Salesforce. Developers must complete a programming assignment that demonstrates their ability to create a custom application on the Salesforce platform. PDII exam also covers topics such as data modeling, security, and integration.
Once the candidate passes the PDII exam, they will be recognized as a Salesforce Certified Platform Developer II. Salesforce Certified Platform Developer II (PDII) certification is a valuable asset to developers looking to showcase their advanced skills in Salesforce development. Salesforce Certified Platform Developer II (PDII) certification demonstrates that the developer has the knowledge and expertise to design, develop, and maintain complex applications on the Salesforce platform. Salesforce Certified Platform Developer II (PDII) certification can open doors to new opportunities and career advancements for developers looking to enhance their skills in Salesforce development.
NEW QUESTION # 39
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. A before update trigger that creates the Engineering Review record and inserts it
- B. An after upsert 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 update trigger that creates the Engineering Review record and inserts it
Answer: D
NEW QUESTION # 40
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. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice
- B. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.
- C. 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.
- D. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
Answer: C
NEW QUESTION # 41
How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomenUS, in a Lightning Component?
- A. Implement the libraries in separate helper files.
- B. Use JavaScript remoting and script tags.
- C. Use CONs with script attributes
- D. Join multiple assets from a static resource.
Answer: B
NEW QUESTION # 42
Given the following containment hierarchy:
What is the correct way to communicate the new value of a property named ''passthrough'' to my-parent-component if the property is defined within my-child-component?
- A.

- B.

- C.

- D.

Answer: A
Explanation:
To communicate a property change up a containment hierarchy in Lightning Web Components (LWC), the child component should dispatch a custom event with the detail of the change. The parent component listens for this event and handles it accordingly.
Option A is the correct method because it creates a new custom event with the detail property containing the new value of passthrough. This event is then dispatched, and the parent component can listen for this event to handle the updated value.
Options B, C, and D are incorrect because they either don't pass any data with the event or they don't use the detail object which is the standard way to pass data with custom events in LWC.
References:
Lightning Web Components Developer Guide - Communicating with Events
NEW QUESTION # 43
A Lightning web component exists in the system and displays information about the record in context as a medal. Salesforce administrators need to use this component within the Lightning App Builder, Which two settings should the developer configure within the xml resource file?
Choose 2 answers
- A. Set the IsExposed=d attribute to true.
- B. Set the IsVisible attribute to true
- C. Specify the target to be lightning_RecordPage
- D. Specify the target to be lightning_AppPage
Answer: A,C
NEW QUESTION # 44
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realtime callouts from the billing system using the SOAP API. Unfortunately, the developer is getting a lot of errors when inserting the invoice line data because the invoice header record doesn't exist yet.
What will help ensure ne transactional Integrity of the integration?
- A. Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
- B. Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
- C. Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
- D. Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
Answer: A
NEW QUESTION # 45
A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response_ _c do not belong to a list of blocked domains. The list of blocked domains will be stored in a custom object for ease of maintenance by users. Note that the Survey_Response_ _c object is populated via a custom Visualforce page.
What is the optimal way to implement this?
- A. Implement the logic in a Validation Rule on the Contact and a Validation Rule on the Survey_Response_ _c object
- B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact
- C. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller
- D. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom Visualforce page controller
Answer: C
NEW QUESTION # 46
REST uses___________.
- A. All of the above
- B. The HTTP class
- C. The HTTPRequest class
- D. The HTTPResponse class
Answer: A
NEW QUESTION # 47
A developer i$ tasked Dy Unversai Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, starting when a customer reports an issue and ending when the container is returned to the customer.
Which solution meets these business requirements while following best practices?
- A. Use Platform Events with Workflow Rules and RFID integration to ensure proper tracking of the containers.
- B. involve a Salesforce administrator and build out a declarative solution that works in Salesforce desktop and mobile.
- C. Build an automated Lightning Application using Application Events to ensure data integrity.
- D. Use Flow Builder|.to develop a Sites page for customers to submit repair requests and track the status of their request.
Answer: D
NEW QUESTION # 48
A developer has a Visualforce page that automatically assigns ewnership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.
What can cause this problem?
- A. The test class does not use the Bulk API for loading test data.
- B. The test class does not use the seeallData=true= annotation.
- C. The test class does not retrieve the updated value from the database,
- D. The test class does not implement the Queueable interface.
Answer: C
NEW QUESTION # 49
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org?
- A. A partial insert succeeds and the contact record that has the Zone value 'IAD1 is inserted
- B. Both inserts succeed and the contact record that has the Zone value of 'PI'IT is set to NULL
- C. Both inserts succeed and the contact record that has the Zone value of PITT is truncated
- D. An unhandled DML exception is thrown and no contact records are inserted
Answer: D
NEW QUESTION # 50
A company has a web page that needs to get Account record information, given its Salesforce record ID, from JavaScript on the page and then display it.
Which method of integration is optimal?
- A. REST API
- B. Apex SOAP Web Service
- C. Apex REST Web Service
- D. Soap API
Answer: C
NEW QUESTION # 51
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERF Number_c, that is then used in a query to find matching Accounts.
Which step should be taken to resolve the issue?
- A. Mark the ERP_Number__ c field as required.
- B. Move the SO0L query to within an asynchronous process.
- C. Perform the SOQL query as part of a for loop.
- D. Mark the ERP_Numker = field as an external 10.
Answer: D
NEW QUESTION # 52
Which three approaches should a developer Implement to obtain the best performance for data retrieval when building a Lightning web component?
Choose 3 answers
- A. Use (cacheable-true) whenever possible.
- B. Use lazy load for occasionally accessed data.
- C. Use getRecordUi to obtain metadata.
- D. Use the Lightning Data Service.
- E. Use layoutTypes : ['Full'] to display a set of fields.
Answer: A,B,D
NEW QUESTION # 53
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
- A. Add static to the server-side method signature.
- B. Decorate the server-side method with (static=false)
- C. Change the function signature to be private static.
- D. Decorate the server-side method with (static=true).
Answer: A
NEW QUESTION # 54
Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers
- A. SELECT id FROM ACCOUNT WHERE Name = !: ' '
- B. SELECT id FROM ACCOUNT WHERE Name = Null
- C. SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
- D. SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
Answer: A,D
NEW QUESTION # 55
Global with sharing class MyRemoter { public String accountName { get; set; } public static Account account
{ get; set; } public AccountRemoter(} {} @RemoteAction global static Account getAccount (String acccuntName) { account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name =
:accountName]; return account; } } Consider the Apex class above that defines a RemoteAction used on a Visualforce search page. Which code snippet will assert that the remote action returned the correct Account?
- A. MyRemoter remote = new MyRemoter();
Account a = remote.getAccount ({'TestAccount');
System.assertEquals, 'TestAcccunt', a.Name -; - B. Account a = controller.getAccount('TestAccount');
System.assertEquals(, 'TestAccount', a.Name } ; - C. Account a = MyRemoter.getAccount ('TestAccount'):
System.assertEquals{ 'TestAccount', a.Name }; - D. MyRemoter remote = new MyRemoter('TestAccount'};
Account a = remote.getAccount {);System.assertEquals(, ''TestAccount', a.Name -;
Answer: C
NEW QUESTION # 56
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
<apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank">
- A. apex:outputLink>
- B. {Icase.Name} </apex:outputLink>
<apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</ - C. target="blank">(LIE{!case.Name}</apex:outputLink>
<apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </ - D. apex:outputLink>
<apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}"
Answer: C,D
NEW QUESTION # 57
If you wanted to create a record following the update of another (with data from the source object), what is the most customizable approach?
- A. Process Builder
- B. Workflow Rule
- C. After update Trigger
- D. Flow
Answer: A
NEW QUESTION # 58
......
Get instant access of 100% real exam questions with verified answers: https://www.practicevce.com/Salesforce/PDII-practice-exam-dumps.html
PDII Actual Questions - Instant Download Tests Free Updated Today!: https://drive.google.com/open?id=1JNzX4Ul0wWFpOxvIBCx5CIGNeGiEM1QS