Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 31
List of questions
Related questions
A developer created an Apex class that makes outbound RESTful callout. The following was created to send a fake response in Apex test methods.
Which method can be called to return this fake response in the test methods?
A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity owned by the currently logged-in user.
When the component is rendered, the following message is displayed: "Error retrieving data" Which modification should be implemented to the Apex class to overcome the issue?
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving m Account.
How can a developer fix this error?
A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order), before the final execution of the process.
During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is called, a runtime error occurs.
Why does the developer receive a runtime error?
Exhibit.
A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information… about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can displ… data efficiently while preserving security?
Choose 3 answers
A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.
What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously?
Which code statement includes an Apex method named updateAccount in the class AccountController for use in a Lightning web component?
A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.
Exhibit.
What must be added to get the data?
Consider the following code snippet:
A developer needs to built an interactive Aura component that responds to the user's input by hiding or showing sections according the user preferences.
What are two best practices the developer can implement to hide or show the powerVserView and srar. daraVserView inner components, based on the value of the attribute isPowexUser?
Choose 2 answers
A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two settings should the developer configure within the xml resource file?
Choose 2 answers
Question