Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 37
List of questions
Related questions
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
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.
What should the developer change to allow this?
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?
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?
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?
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?
Refer to the code below:
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'
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.
Which two changes should the developer make so the Apex method functions correctly?
Choose 2 answers
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.
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?
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
Question