PDII Pre-Exam Practice Tests (Updated 400 Questions) [Q36-Q58]

Rate this post

PDII Pre-Exam Practice Tests | (Updated 400 Questions)

Valid PDII Exam Q&A PDF – One Year Free Update

Salesforce Certified Platform Developer II (PDII) Exam

Salesforce Certified Platform Developer II (PDII) Exam is related to Salesforce Certified Platform Developer II Certification. This exam validates the Candidate knowledge and skills knowledge in advanced programmatic capabilities of the Lightning Platform and data modeling to develop complex business logic and interfaces. It also deals with the ability of Candidate to design, develop, test, and deploy programmatic solutions that are reusable, maintainable, and follow design patterns and object-oriented programming best practices.

 

Q36. A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to ‘Customer’ should have a status of ‘Active’, and Accounts with the type set to ‘Prospect’ should have a status of ‘Pending’. No other changes to data should be made.
Which code block will accurately meet the business requirements?
Map<String, String> statusMap = new Map<String, String>{‘Customer’=>’Active’,

 
 
 
 

Q37. REST uses___________.

 
 
 
 

Q38. Trigger on Contact ensures that whenever a Contact’s custom field “User Level” is given the value “President,” the related Community User’s Role is updated as Manager. The Apex unit test method for testing this functionality is failing for a mixed DML error. What is one way that this problem can be solved?

 
 
 
 

Q39. When should you use the “transient” property on variables?

 
 
 
 

Q40. A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records.
How should the developer handle the recursive trigger?

 
 
 
 

Q41. A company has code to update a Request and Request Lines and make a callout to their external ERP system’s REST endpoint with the updated records.

The CalloutUtil. makeRestCallout fails with a ‘You have uncommitted work pending. Please commit or rollback before calling out’ error. What should be done to address the problem?

 
 
 
 

Q42. Which type of controller is best suited when you want all of the basic DML functions from an object’s normal new/edit page and want to include multiple records?

 
 
 
 

Q43. What tool in the Developer Console contains information on SOQL query Cardinality?

 
 
 
 
 

Q44. A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.
What is the correct syntax to declare a remote method in Apex? (Choose two.)

 
 
 
 

Q45. Exhibit.

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 displ… data efficiently while preserving security?
Choose 3 answers

 
 
 
 
 

Q46. <lightning: layout multipleRows=”true”> <lightning: layoutItem size=”12″>{!v.account.Name} </flighting:
layoutitem> <lightning:layoutitem 3ize=”12″>{!v. account .AccountNumber} </lighting: layoutitem>
<lightning: layoutitem size=”12″>{!v.account. Industry} </lighting: layoutitem> </lightning: layout> Refer to the component code above. The information displays as expected (in three rows) on a mobile device.
However, the information is not displaying as desired (in a single row) on a desktop or tablet. Which option has the correct component changes to display correctly on desktops and tablets?

 
 
 
 

Q47. A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records. How should the developer handle the recursive trigger?

 
 
 
 

Q48. What is the transaction limit for the number of records using QueryLocator?

 
 
 
 
 

Q49. 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?

 
 
 
 

Q50. What is a recommended practice with regard to the Apex CPU limit? Choose 2 answers

 
 
 
 

Q51. What is a benefit of using list custom settings?

 
 
 
 

Q52. Which is a valid Apex REST Annotation? (Choose two.)

 
 
 
 

Q53. Consider the following code snippet:

Which governor limit is likely to be exceeded when the trigger runs when a scope of 200 newly inserted accounts?

 
 
 
 

Q54. A developer is writing a Jest for a Lightning web component that conditionally displays child components based on a user’s checkbox selections.
What should the developer do to property test that the correct components display and hide for each scenario?

 
 
 
 

Q55. What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

 
 
 
 

Q56. Within the System.Limit class, what would you call to get the number of calls made in your transaction?

 
 

Q57. A developer is building a Visualforce page that interacts with external services. Which interface should the developer implement to test this functionality? Choose 2 answers

 
 
 
 

Q58. Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

 
 
 
 

Certification Path

Salesforce Platform Developer I, Superbadge Apex Specialist, Superbadge Data Integration Specialist, Superbadge Aura Components Specialist and Superbadge Advance Apex Specialist Certification can act as a prerequisite for this exam.

 

Salesforce Certified Platform Developer II (PDII) Free Update Certification Sample Questions: https://www.test4cram.com/PDII_real-exam-dumps.html

         

Related Links: myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt www.stes.tyc.edu.tw myportal.utt.edu.tt

Leave a Reply

Your email address will not be published. Required fields are marked *

Enter the text from the image below