ExamGecko
Ask Question

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

Add to Whishlist

List of questions

Question 301

Report Export Collapse

A developer created an Apex class that makes outbound RESTful callout. The following was created to send a fake response in Apex test methods.

Salesforce Certified Platform Developer II image Question 301 67948 09232024003105000000

Which method can be called to return this fake response in the test methods?

Become a Premium Member for full access
  Unlock Premium Member

Question 302

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 303

Report Export Collapse

Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving m Account.

How can a developer fix this error?

Become a Premium Member for full access
  Unlock Premium Member

Question 304

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 305

Report Export Collapse

Exhibit.

Salesforce Certified Platform Developer II image Question 305 67952 09232024003105000000

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

Become a Premium Member for full access
  Unlock Premium Member

Question 306

Report Export Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 307

Report Export Collapse

Which code statement includes an Apex method named updateAccount in the class AccountController for use in a Lightning web component?

Become a Premium Member for full access
  Unlock Premium Member

Question 308

Report Export Collapse

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.

Salesforce Certified Platform Developer II image Question 308 67955 09232024003105000000

What must be added to get the data?

Become a Premium Member for full access
  Unlock Premium Member

Question 309

Report Export Collapse

Consider the following code snippet:

Salesforce Certified Platform Developer II image Question 309 67956 09232024003105000000

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

Become a Premium Member for full access
  Unlock Premium Member

Question 310

Report Export Collapse

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

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

Related questions