You have already completed the Test before. Hence you can not start it again.
Test is loading...
You must sign in or sign up to start the Test.
You have to finish following quiz, to start this Test:
Your results are here!! for" Salesforce Certified Platform Developer II Practice Test 9 "
0 of 40 questions answered correctly
Your time:
Time has elapsed
Your Final Score is : 0
You have attempted : 0
Number of Correct Questions : 0 and scored 0
Number of Incorrect Questions : 0 and Negative marks 0
Average score
Your score
Salesforce Certified Platform Developer II
You have attempted: 0
Number of Correct Questions: 0 and scored 0
Number of Incorrect Questions: 0 and Negative marks 0
You can review your answers by clicking on “View Answers” option. Important Note : Open Reference Documentation Links in New Tab (Right Click and Open in New Tab).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Answered
Review
Question 1 of 40
1. Question
A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to more customers. What should the developer use to store and package the custom configuration settings for the app?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 2 of 40
2. Question
Salesforce users consistently receive a “Maximum trigger depth exceeded“ error when saving an Account. How can a developer fix this error?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 3 of 40
3. Question
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 4 of 40
4. Question
A developer wants to call an Apex server-side controller from an Aura component. What are two limitations to the data being returned by the controller? Choose 2 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 5 of 40
5. Question
A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment. A Salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error. What should a developer do to fix the problem?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 6 of 40
6. Question
A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity, or the Name of an Account and a Contact. Assuming the Name field exists, how should the developer do this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 7 of 40
7. Question
Which three approaches should a developer implement to obtain the best performance for data retrieval when building a Lightning web component? Choose 3 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 8 of 40
8. Question
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 9 of 40
9. Question
Which interface needs to be implemented by an Aura component so that it may be displayed in modal dialog by clicking a button on a Lightning record page?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 10 of 40
10. Question
Consider the controller code below that is called from an Aura component and returns data wrapped in a class. public class myServerSideController {   @AuraEnabled   public static MyDataWrapper getSomeData (String theType) {     Some_Object__c someObj = [         SELECT ID, Name         FROM Some_Object__c         WHERE Type__c = :theType         LIMIT 1     ];     Another_Object__c anotherObj = [         SELECT ID, Option__c         FROM Another_Object__c         WHERE Some_Object__c = :someObj.Name         LIMIT 1     ];    return theData;   }   public class MyDataWrapper {     public String Name { get; set; }     public String Option { get; set; }     public MyDataWrapper() {}   } } The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSomeData(). What is wrong?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 11 of 40
11. Question
A company has a custom object, Order__c, that has a required, unique external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of Order__c records using the external ID field?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 12 of 40
12. Question
What are three reasons that a developer should write Jest-tests for Lightning web components? Choose 3 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 13 of 40
13. Question
Given the following containment hierarchy:
What is the correct way to communicate the new rule of a property named “passthrough“ to my-parent-component if the property is defined within my-child-component ?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 14 of 40
14. Question
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to real-time callouts from the building system using the SOAP API. Unfortunately, the developer is getting a lot of errors when inserting invoice line data because the invoice header record does not exist yet. What will help ensure the transactional integrity of the integration?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 15 of 40
15. Question
Which tag should a developer use to display different text while an  is processing an action?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 16 of 40
16. Question
How should a developer assert that a trigger with an asynchronous process has been successfully run?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 17 of 40
17. Question
What is the benefit of using a WSDL with Apex?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 18 of 40
18. Question
The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it. How should a developer implement this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 19 of 40
19. Question
A developer is creating a Lightning web component that can be added to a Lightning app page and displayed when the page is rendered in desktop and mobile phone format. To ensure a great mobile experience, the developer chooses to use the SLDS grid utility.
Which two Lightning web components should the developer implement to ensure the application is mobile-ready?
Choose 2 answers.
Correct
To ensure a great mobile experience using the SLDS grid utility in a Lightning web component, the developer should implement the following two Lightning web components:
C. <lightning-layout></lightning-layout>
This component is essential for creating responsive layouts in Lightning web applications. It utilizes the Salesforce Lightning Design System (SLDS) grid utility to structure content in a way that adapts well to different screen sizes, making it suitable for both desktop and mobile formats.
This component works in conjunction with <lightning-layout>. It allows you to define individual items within the layout, specifying how they should behave in relation to each other. This is crucial for ensuring that the layout is flexible and responsive, which is important for a good mobile experience.
Why Other Options Are Incorrect
A. <lightning-tree-grid></lightning-tree-grid>: This component is used for displaying hierarchical data in a grid format. While it can be useful for certain applications, it does not inherently provide the responsive layout capabilities needed for mobile optimization.
B. <lightning-tree></lightning-tree>: Similar to the tree grid, this component is designed for displaying hierarchical data but lacks the layout flexibility provided by the layout components. It is not specifically aimed at ensuring a mobile-ready experience.
Incorrect
To ensure a great mobile experience using the SLDS grid utility in a Lightning web component, the developer should implement the following two Lightning web components:
C. <lightning-layout></lightning-layout>
This component is essential for creating responsive layouts in Lightning web applications. It utilizes the Salesforce Lightning Design System (SLDS) grid utility to structure content in a way that adapts well to different screen sizes, making it suitable for both desktop and mobile formats.
This component works in conjunction with <lightning-layout>. It allows you to define individual items within the layout, specifying how they should behave in relation to each other. This is crucial for ensuring that the layout is flexible and responsive, which is important for a good mobile experience.
Why Other Options Are Incorrect
A. <lightning-tree-grid></lightning-tree-grid>: This component is used for displaying hierarchical data in a grid format. While it can be useful for certain applications, it does not inherently provide the responsive layout capabilities needed for mobile optimization.
B. <lightning-tree></lightning-tree>: Similar to the tree grid, this component is designed for displaying hierarchical data but lacks the layout flexibility provided by the layout components. It is not specifically aimed at ensuring a mobile-ready experience.
Unattempted
To ensure a great mobile experience using the SLDS grid utility in a Lightning web component, the developer should implement the following two Lightning web components:
C. <lightning-layout></lightning-layout>
This component is essential for creating responsive layouts in Lightning web applications. It utilizes the Salesforce Lightning Design System (SLDS) grid utility to structure content in a way that adapts well to different screen sizes, making it suitable for both desktop and mobile formats.
This component works in conjunction with <lightning-layout>. It allows you to define individual items within the layout, specifying how they should behave in relation to each other. This is crucial for ensuring that the layout is flexible and responsive, which is important for a good mobile experience.
Why Other Options Are Incorrect
A. <lightning-tree-grid></lightning-tree-grid>: This component is used for displaying hierarchical data in a grid format. While it can be useful for certain applications, it does not inherently provide the responsive layout capabilities needed for mobile optimization.
B. <lightning-tree></lightning-tree>: Similar to the tree grid, this component is designed for displaying hierarchical data but lacks the layout flexibility provided by the layout components. It is not specifically aimed at ensuring a mobile-ready experience.
Question 20 of 40
20. Question
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called ‘Is Primary’ to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.
What is the optimal way to implement these requirements?
Correct
The optimal way to implement these requirements is:
B. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
Is Primary Logic:
An after update trigger on the Contact object is the best approach for handling the “Is Primary” logic.
The trigger should execute after the Contact records are updated, allowing it to check the “Is Primary” checkbox and ensure only one primary contact per account.
The trigger can query for other contacts related to the same account and uncheck their “Is Primary” checkbox if the current contact’s checkbox is checked.
Last Name Logic:
A before update trigger on the Contact object is suitable for converting the last name to uppercase.
The trigger should execute before the Contact records are updated, allowing it to modify the last name field before it is saved to the database.
The trigger can simply convert the last name to uppercase using the appropriate Apex method.
By separating the logic into two triggers, the code becomes more modular, easier to maintain, and less prone to errors. It also allows for better performance, as the triggers will only execute when necessary based on the specific update event.
Why Other Options Are Incorrect:
A. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic: While this approach is viable, it is less optimal than separating the logic into two triggers. Having a single trigger handle both sets of logic can make the code more complex and harder to maintain.
C. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic: Using an after update trigger on the Account object for the “Is Primary” logic is not necessary, as the logic can be implemented directly on the Contact object. Additionally, the last name logic should be in a before update trigger on the Contact object to ensure the field is modified before being saved.
D. Write a Validation Rule on Control for the Is Primary logic and a before update trigger on Contact for the last name logic: Validation Rules are not suitable for the “Is Primary” logic, as they only prevent the record from being saved and do not allow for modifying other records. The “Is Primary” logic requires querying and updating other contacts related to the same account.
Incorrect
The optimal way to implement these requirements is:
B. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
Is Primary Logic:
An after update trigger on the Contact object is the best approach for handling the “Is Primary” logic.
The trigger should execute after the Contact records are updated, allowing it to check the “Is Primary” checkbox and ensure only one primary contact per account.
The trigger can query for other contacts related to the same account and uncheck their “Is Primary” checkbox if the current contact’s checkbox is checked.
Last Name Logic:
A before update trigger on the Contact object is suitable for converting the last name to uppercase.
The trigger should execute before the Contact records are updated, allowing it to modify the last name field before it is saved to the database.
The trigger can simply convert the last name to uppercase using the appropriate Apex method.
By separating the logic into two triggers, the code becomes more modular, easier to maintain, and less prone to errors. It also allows for better performance, as the triggers will only execute when necessary based on the specific update event.
Why Other Options Are Incorrect:
A. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic: While this approach is viable, it is less optimal than separating the logic into two triggers. Having a single trigger handle both sets of logic can make the code more complex and harder to maintain.
C. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic: Using an after update trigger on the Account object for the “Is Primary” logic is not necessary, as the logic can be implemented directly on the Contact object. Additionally, the last name logic should be in a before update trigger on the Contact object to ensure the field is modified before being saved.
D. Write a Validation Rule on Control for the Is Primary logic and a before update trigger on Contact for the last name logic: Validation Rules are not suitable for the “Is Primary” logic, as they only prevent the record from being saved and do not allow for modifying other records. The “Is Primary” logic requires querying and updating other contacts related to the same account.
Unattempted
The optimal way to implement these requirements is:
B. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
Is Primary Logic:
An after update trigger on the Contact object is the best approach for handling the “Is Primary” logic.
The trigger should execute after the Contact records are updated, allowing it to check the “Is Primary” checkbox and ensure only one primary contact per account.
The trigger can query for other contacts related to the same account and uncheck their “Is Primary” checkbox if the current contact’s checkbox is checked.
Last Name Logic:
A before update trigger on the Contact object is suitable for converting the last name to uppercase.
The trigger should execute before the Contact records are updated, allowing it to modify the last name field before it is saved to the database.
The trigger can simply convert the last name to uppercase using the appropriate Apex method.
By separating the logic into two triggers, the code becomes more modular, easier to maintain, and less prone to errors. It also allows for better performance, as the triggers will only execute when necessary based on the specific update event.
Why Other Options Are Incorrect:
A. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic: While this approach is viable, it is less optimal than separating the logic into two triggers. Having a single trigger handle both sets of logic can make the code more complex and harder to maintain.
C. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic: Using an after update trigger on the Account object for the “Is Primary” logic is not necessary, as the logic can be implemented directly on the Contact object. Additionally, the last name logic should be in a before update trigger on the Contact object to ensure the field is modified before being saved.
D. Write a Validation Rule on Control for the Is Primary logic and a before update trigger on Contact for the last name logic: Validation Rules are not suitable for the “Is Primary” logic, as they only prevent the record from being saved and do not allow for modifying other records. The “Is Primary” logic requires querying and updating other contacts related to the same account.
Question 21 of 40
21. Question
There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user. The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, “Maximum view state size limit exceeded”. What step should the developer take to resolve this issue?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 22 of 40
22. Question
Refer to the markup below:
A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The developer receives complaints that the component performs slowly.
What can the developer do to improve the performance?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 23 of 40
23. Question
Refer to the code snippet below:
When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the fecchOpps method available within the Lightning web component?
Choose 3 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 24 of 40
24. Question
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.
What must be done in the component to get the data from Salesforce?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 25 of 40
25. Question
When developing a lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on table-size and desktop-size screens?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 26 of 40
26. Question
A company manages information about their product offering in custom objects named Catalog and catalog item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 1,00,000 Catalog Items. Both custom objects have a CurrencyIsoCode Text field that contains the currency code they should use. If a CatalogÂ’s CurrencyIsoCode changes, all of its Catalogue itemsÂ’ CurrencyIsoCodes should be changed as well. What should a developer use to update the CurrencyIsoCodes on the Catalog Items when the CatalogÂ’s CurrencyIsoCode changes?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 27 of 40
27. Question
Consider the Apex class above that defines a RemoteAction used on a Visualforce search page.
Which code snippet will assert that the remote action returned the correct Account?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 28 of 40
28. Question
When calling a RESTful web service, the developer must implement two-way SSL authentication to enhance security. The Salesforce admin has generated a self-sign certificate within Salesforce with a unique name of “ERPSecCertificate”’ Consider the following code snippet: HttpRequest req = new HttpRequest (); … // rest of request Which method must the developer implement in order to sign the HTTP request with the certificate?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 29 of 40
29. Question
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library. Which statement properly loads the static resource within the LWC?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 30 of 40
30. Question
A developer has a test class that creates test data before making a mock callout but now receives a ‘You have uncommitted work pending. Please commit or rollback before calling out‘ error. Which step should be taken to resolve the error?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 31 of 40
31. Question
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a “Maximum view state size limit“ error message under certain conditions. According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 32 of 40
32. Question
Ursa Major Solar (UMS) has a custom object, ServiceJob__c, with an optional Lookup field to Account called Partner_Service_Provider__c. The TotalJobs__c field on Account tracks the total number of ServiceJob__c records to which a partner service provider Account is related. What should be done to ensure that the TotalJobs__c field is kept up to date?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 33 of 40
33. Question
A business process requires sending new Account records to an external system. The Account Name Id, CreatedDate, and CreatedById must be passed to the external system in near real-time when an Account is inserted without error. How should a developer achieve this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 34 of 40
34. Question
A developer created a Lightning web component that uses a lightning-record-edit-form 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 field, thus allowing more than one error message to be displayed simultaneously?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 35 of 40
35. Question
An org has a requirement that addresses on Contacts and Accounts should be normalized to a company standard by Apex code anytime that they are saved. What is the optimal way to implement this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 36 of 40
36. Question
A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail. What is the optimal way for a developer to fix the issue?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 37 of 40
37. Question
Refer to the code below:
Apex Class:
Component markup:
Component controller:
A developer is building this Aura component to display information about top Opportunities in the org.
Which three code changes must be made for the component to work?
Choose 3 answers.
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 38 of 40
38. Question
An Apex trigger creates an Order__c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders. What is the optimal method for a developer to troubleshoot this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 39 of 40
39. Question
A company has a web page that needs to get Account record information, such as name, website, and employee number. The Salesforce record ID is known to the web page and it uses JavaScript to retrieve the account information. Which method of integration is optimal?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Question 40 of 40
40. Question
A company has reference data stored in multiple Custom Metadata records that represent default information and delete behavior for certain geographic regions. When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact‘s address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message. What is the optimal way to automate this?
Correct
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Incorrect
[Newly added scenario]: Explanation will be provided in a couple of weeks.
Unattempted
[Newly added scenario]: Explanation will be provided in a couple of weeks.
X
Use Page numbers below to navigate to other practice tests