ExamGecko
Ask Question

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 44

List of questions

Question 431

Report Export Collapse

A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.

Salesforce Certified Platform Developer II image Question 431 135416 02032025000724000000

Which component should the developer add to the form to display error messages?

Become a Premium Member for full access
  Unlock Premium Member

Question 432

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 433

Report Export Collapse

Consider the following code snippet:

Salesforce Certified Platform Developer II image Question 433 135418 02032025000724000000

As part of the deployment cycle, a developer creates the following test class:

Salesforce Certified Platform Developer II image Question 433 135418 02032025000724000000

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 434

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 435

Report Export Collapse

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:

Salesforce Certified Platform Developer II image Question 435 135420 02032025000724000000

Which should the developer add to the code to meet the requirements?

Become a Premium Member for full access
  Unlock Premium Member

Question 436

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 437

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 438

Report Export Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 439

Report Export Collapse

Consider the following code snippet:

Salesforce Certified Platform Developer II image Question 1 63877409939205120213015

Which two steps should the developer take to add flexibility to change the endpoint and credentials without needing to modify code?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 440

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member
Total 444 questions
Go to page: of 45
Search

Related questions