ExamGecko
Ask Question

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

List of questions

Question 361

Report
Export
Collapse

Universal Containers (UC) currently does not development in its full copy sandbox.

Recently, UC has projects that require multiple developers to develop concurrently. UC is running into issues with developers making changes that cause errors In work done by other developers.

Additionally, when they are ready to deploy, many unit tests fail which prevents the deployment. which three types of orgs should be recommended to UC to eliminate these problems?

Choose 3 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 362

Report
Export
Collapse

A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked.

Salesforce Certified Platform Developer II image Question 362 68009 09232024003105000000

What should the developer change to allow this?

Become a Premium Member for full access
  Unlock Premium Member

Question 363

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 363 68010 09232024003105000000

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

Become a Premium Member for full access
  Unlock Premium Member

Question 364

Report
Export
Collapse

Universal Containers needs to integrate with an external system. The process is initiated when a record is created in Salesforce. The remote system does not require Salesforce to wait for a response before continuing.

What should the developer use to accomplish this?

Become a Premium Member for full access
  Unlock Premium Member

Question 365

Report
Export
Collapse

As part of a new integration, a developer is asked to implement a new custom search functionality that is capable of performing unrestricted queries and can account for all values within a custom picklist field, type__z, on the Opportunity object. The search feature must also account for NULL values.

The organization-wide default for the Opportunity object is set to Public Read-Only, and a new custom index has. been created for the Type__c field. There are more than 5 million Opportunity records within the environment. and a considerable amount of the existing records have NULL values for the picklist Which technique should the developer implement to maximize performance when querying NULL values?

Become a Premium Member for full access
  Unlock Premium Member

Question 366

Report
Export
Collapse

A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.

Which annotation should the developer add to the Apex method to achieve this?

Become a Premium Member for full access
  Unlock Premium Member

Question 367

Report
Export
Collapse

Refer to the code below:

Salesforce Certified Platform Developer II image Question 367 68014 09232024003105000000

When the code runs, it results In a System Limit Exception with the error message: Apex heap size too large.

What should be done to fix this error'

Become a Premium Member for full access
  Unlock Premium Member

Question 368

Report
Export
Collapse

A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler.

Salesforce Certified Platform Developer II image Question 368 68015 09232024003105000000

Which two changes should the developer make so the Apex method functions correctly?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 369

Report
Export
Collapse

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered.

Salesforce Certified Platform Developer II image Question 369 68016 09232024003105000000

What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time?

Become a Premium Member for full access
  Unlock Premium Member

Question 370

Report
Export
Collapse

An org has a Process Builder process on Opportunity that sets a custom field,CommissionBaseAmount__c, when an Opportunity is edited and the Opportunity's Amount changes.

A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a value for a custom field CommissionAmount_c, when an Opportunity stage changes to Closed/Won.

Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the C:rr.i;5icnA.T.cur.t c is incorrect.

Which two actions should the developer take to correct this problem? Choose 2 answers

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

Related questions