PrepAway - Latest Free Exam Questions & Answers

Category: Certified Platform Developer II (SU19)

Exam Certified Platform Developer II (SU19)

What is the correct way to automate this using an Apex trigger?

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 […]

Which option has the correct component changes to display correctly on desktops and tablets?

<lightning:layout multipleRows=”true”> <lightning:layoutItem size=”12″>{!v.account.Name} </lightning:layoutItem> <lightning:layoutItem size=”12″>{!v.account.AccountNumber} </lightning:layoutItem> <lightning:layoutItem size=”12″>{!v.account.Industry} </lightning: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 […]

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that us

A developer created and tested a Visualforce page in their developer sandbox, but now receives reports that users are encountering ViewState errors when using it in Production. What should the developer ensure to correct these errors? A. Ensure queries do not exceed governor limits. B. Ensure properties are marked as Transient. C. Ensure properties are […]

The test method above calls a web service that updates an external system with Account information and sets th

The test method above calls a web service that updates an external system with Account information and sets the Account’s Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: “Methods defined as TestMethod do not support Web service callouts. ” What is the optimal way to fix […]

What is the optimal way to implement this?

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 […]

A company has code to update a Request and Request Lines and make a callout to their external ERP system’

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? A. Remove the […]

What can a developer use to analyze and diagnose the problem in the Lightning Page?

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 Actions Tab B. Salesforce Lightning Inspector […]

What would allow Universal Containers to switch vendors without updating the code to handle authentication?

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to […]

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customer

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain […]

A Visualforce page loads slowly due to the large amount of data it displays.

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance? A. Use Javascript to move data processing to the browser instead of the controller. B. Use the transient keywords for the List variables used in the custom controller. C. Use lazy […]


Page 2 of 212