ExamGecko
Ask Question

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

List of questions

Question 191

Report
Export
Collapse

Salesforce Certified Platform Developer II image Question 191 67838 09232024003105000000

A company has the Lightning Component above that allows users to dick a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected.

Which three techniques can a developer use to debug the JavaScript? Choose 3 answers

Use Developer Console to view checkpoints.
Use Developer Console to view checkpoints.
Use Developer Console to view the debug log.
Use Developer Console to view the debug log.
Use consde.log() messages in the JavaScript.
Use consde.log() messages in the JavaScript.
Enable Debug Mode for Lightning components for the user.
Enable Debug Mode for Lightning components for the user.
Use the browser's dev tools to debug the JavaScript.
Use the browser's dev tools to debug the JavaScript.
Suggested answer: C, D, E
asked 23/09/2024
Russell James
38 questions

Question 192

Report
Export
Collapse

An org has a custom object, Registeration_c that has a lookup relationship to the Opportunity object.

What should a developer use to create a stand-alone Vlsualforce page that displays the Registration__c records related to an Opportunity.

A standard controller with a controller extension
A standard controller with a controller extension
A controler extension
A controler extension
A custom controler
A custom controler
A standard controller
A standard controller
Suggested answer: D
asked 23/09/2024
Juan Carlos Delgado
37 questions

Question 193

Report
Export
Collapse

What is the best practice to initialize a Visualforce page in a test class?

Use Test.setCurrentpage,MyTestPage;
Use Test.setCurrentpage,MyTestPage;
Use Test.currentpage, getParameter, put (MyTestPage);
Use Test.currentpage, getParameter, put (MyTestPage);
Use Test, setCurrentPage(Page.MyTestPage);
Use Test, setCurrentPage(Page.MyTestPage);
Use controller,currentPage, setPage (MyTestPage
Use controller,currentPage, setPage (MyTestPage
Suggested answer: C
asked 23/09/2024
Luis Hernaiz
40 questions

Question 194

Report
Export
Collapse

Universal Containers implements a private sharing model for the Convention_Attendence_c custom object. As part of a new quality assurance effort, the company created an Event___Reviewer__c user lookup field on the object.

Management wants the event reviewer to automatically gain Read/write access to every record they are assigned to.

What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?

Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
Create a criteria-based sharing rule on the Convention Attendee custom object to share the records the a group of Event Reviewers.
Create a criteria-based sharing rule on the Convention Attendee custom object to share the records the a group of Event Reviewers.
Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.
Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.
Suggested answer: B
asked 23/09/2024
brandon millette
50 questions

Question 195

Report
Export
Collapse

This sales team needs a custom Visualforce page to enter sales orders. When a product is selected on the Visualforce page, a web service is invoked to determine if the product is in stock, and the result is displayed on the page.

How can a developer write this page to display the result of the web service and ensure governor limits for concurrent usage are not exceeded?

Use Continuation that is invoked when a Submit button is clicked.
Use Continuation that is invoked when a Submit button is clicked.
Use visualforce Remoting to handle the web service callout.
Use visualforce Remoting to handle the web service callout.
Use the Salesforce Metadata API in the web service callout.
Use the Salesforce Metadata API in the web service callout.
Use an Apex trigger with callout=true annotation.
Use an Apex trigger with callout=true annotation.
Suggested answer: A
asked 23/09/2024
DANNY GARCIA
32 questions

Question 196

Report
Export
Collapse

A Visualforce page needs to make a callout to get biding information and tax information from two different REST endpoints. The information needs to be Displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

How should a developer implement the callouts?

A Continuation for both the billing callout and the tax callout
A Continuation for both the billing callout and the tax callout
An HTTP REST call out for both the billing callout and the tax callout
An HTTP REST call out for both the billing callout and the tax callout
An HTTP REST callout for the billing callout and a Continuation for the tax callout
An HTTP REST callout for the billing callout and a Continuation for the tax callout
A Continuation for the billing callout and an HTTP REST callout for the tax callout
A Continuation for the billing callout and an HTTP REST callout for the tax callout
Suggested answer: A
asked 23/09/2024
lagwendon Scott
35 questions

Question 197

Report
Export
Collapse

In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.

What is the most effective approach to ensure values displayed respect the user's locale settings?

Use the FOR VIEW clause in the SOQL Query.
Use the FOR VIEW clause in the SOQL Query.
Use REGEX expressions to format the values retrieved via SOQL.
Use REGEX expressions to format the values retrieved via SOQL.
Use the FORMAT() function in the SOQL query.
Use the FORMAT() function in the SOQL query.
Use a wrapper class to format the values retrieved via SOQL.
Use a wrapper class to format the values retrieved via SOQL.
Suggested answer: C
asked 23/09/2024
Sergio Guerra
43 questions

Question 198

Report
Export
Collapse

A developer created three Rollup Summary fields: Total_timesheets_c, Total_Approved_timesheet_c and Total_project_Timesheet_c in the custom object, project _c Now, the developer is tasked with created a new field to show the ratio between and approved

No test methods will be executed during deployment.
No test methods will be executed during deployment.
A test class that validates the formula field is needed for deployment.
A test class that validates the formula field is needed for deployment.
Using a formula field reduces maintenance overhead.
Using a formula field reduces maintenance overhead.
A formula field will calculate the value retroactively for existing records.
A formula field will calculate the value retroactively for existing records.
Suggested answer: C, D
asked 23/09/2024
Daniel Hernandez Villar
37 questions

Question 199

Report
Export
Collapse

Refer to re code segment above.

Salesforce Certified Platform Developer II image Question 199 67846 09232024003105000000

When following best practices for writing Apex taggers, which two lots are wrong or cause for concern? Choose 2 answers

Line 6
Line 6
Line 11
Line 11
Line 16
Line 16
Line 20
Line 20
Suggested answer: A, D
asked 23/09/2024
Arvee Natividad
38 questions

Question 200

Report
Export
Collapse

A developer Is asked to develop a new AppExthange 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 most customers.

What should the developer use to store and package the custom configuration settings for the app?

Custom Settings
Custom Settings
Custom Metadata
Custom Metadata
Custom Objects
Custom Objects
Process Builder
Process Builder
Suggested answer: B
asked 23/09/2024
Suneth Jayalath
33 questions
Total 438 questions
Go to page: of 44
Search

Related questions