Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 44
List of questions
Question 431

A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.
Which component should the developer add to the form to display error messages?
Question 432

A developer wrote an Apex class to make several callouts to an external system.
If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?
Question 433

Consider the following code snippet:
As part of the deployment cycle, a developer creates the following test class:
When the test class runs, the assertion fails.
Which change should the developer implement in the Apex test method to ensure the test method executes successfully?
Question 434

A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours.
which two steps should a developer take to accomplish this?
Choose 2 answers
Question 435

A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices.
Given to the code below:
Which should the developer add to the code to meet the requirements?
Question 436

A developer created a Lightning web component that uses a Lightning_record_edit_fom to collect Information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.
Which best practice should the developer use to perform the validations on more than one held, thus allowing more than one error message to be displayed simultaneously?
Question 437

Universal Containers needs to integrate with their own, existing, internal custom web application. The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce.
What should the developer use to implement this integration?
Question 438

As part of a custom interface, a developer team creates various new Lightning web components. Each of the components handles errors using toast messages. When the development is complete, all the components are added to the same Lightning page.
During acceptance testing, users complain about the long chain of toast messages that display when errors occur loading the components.
Which two techniques should the developer implement to improve the user experience?
Choose 2 answers
Question 439

Consider the following code snippet:
Which two steps should the developer take to add flexibility to change the endpoint and credentials without needing to modify code?
Choose 2 answers
Question 440

A company uses an external system to manage its custom account territory assignments. Every quarter, millions of Accounts may be updated in Salesforce with new Owners when the territory assignments are completed in the external system.
What is the optimal way to update the Accounts from the external system?
Question