ExamGecko
Home Home / Salesforce / Certified Platform Developer II

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

Question list
Search
Search

List of questions

Search

Related questions











When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales orders, phone calls, or Cases. The date range for recent interactions will be different for every customer record type.

How can this be accomplished?

A.
Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page.
A.
Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page.
Answers
B.
Use a Lightning component to Query and display interactions based on record type that is passed in using a design:attribute from the Lightning page.
B.
Use a Lightning component to Query and display interactions based on record type that is passed in using a design:attribute from the Lightning page.
Answers
C.
Use batch Apex to query for the most recent interactions when the customer view screen is loaded.
C.
Use batch Apex to query for the most recent interactions when the customer view screen is loaded.
Answers
D.
Use a dynamic form on the customer record page to display recent interactions.
D.
Use a dynamic form on the customer record page to display recent interactions.
Answers
Suggested answer: A

As part of point-to-point integration, a developer must call an external web service which, due to high demand, takes a long time to provide a response. As part of the request, the developer must collect key inputs from the end user before making the callout.

Which two elements should the developer use to implement these business requirements?

Choose 2 answers

A.
Apex method that returns a Continuation object
A.
Apex method that returns a Continuation object
Answers
B.
Screen now
B.
Screen now
Answers
C.
Process Builder
C.
Process Builder
Answers
D.
Lightning web component
D.
Lightning web component
Answers
Suggested answer: A, D

A developer used custom settings to store some configuration data that changes occasionally.

However, tests are now failing in some of the sandboxes that were recently refreshed.

What should be done to eliminate this issue going forward?

A.
Set the setting type on the custom setting to List.
A.
Set the setting type on the custom setting to List.
Answers
B.
Replace custom settings with custom metadata.
B.
Replace custom settings with custom metadata.
Answers
C.
Set the setting type on the custom setting to Hierarchy.
C.
Set the setting type on the custom setting to Hierarchy.
Answers
D.
Replace custom settings with static resources.
D.
Replace custom settings with static resources.
Answers
Suggested answer: B

A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday.

What should the developer do to ensure the calendar displays accurately for users in every locale?

A.
Use a custom metadata type to store key/value pairs.
A.
Use a custom metadata type to store key/value pairs.
Answers
B.
Query the FirstDayOfweek field from the Locale for the current user.
B.
Query the FirstDayOfweek field from the Locale for the current user.
Answers
C.
Use Userinfor. getLocale () in the component.
C.
Use Userinfor. getLocale () in the component.
Answers
D.
Import the firstDayofWeek property in the component.
D.
Import the firstDayofWeek property in the component.
Answers
Suggested answer: C

Consider the following code snippet:

Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed.

What should the developer do to ensure that a partial refresh is made so that only the section identified with opportunity List is re-drawn on the screen?

A.
Ensure the lotion method search returns null.
A.
Ensure the lotion method search returns null.
Answers
B.
Implement the rerendered attribute on the <apex:commandButton>tag.
B.
Implement the rerendered attribute on the <apex:commandButton>tag.
Answers
C.
Enclose the DATA table within the <apex:actionRegion> tag.
C.
Enclose the DATA table within the <apex:actionRegion> tag.
Answers
D.
Implement the <apex:actionFunction> tag with immediate = true.
D.
Implement the <apex:actionFunction> tag with immediate = true.
Answers
Suggested answer: C

A developer recently released functionality to production that performs complex commission calculations in Apex code called from an Opportunity trigger. Users report that the calculations seem incorrect because the values they see for commissions are wrong.

The developer has representative test data in their developer sandbox.

Which three tools or techniques should the developer use to execute the code and pause it at key lines to visually inspect values of various Apex variables?

Choose 3 answers

A.
Developer Console
A.
Developer Console
Answers
B.
visual Studio Code
B.
visual Studio Code
Answers
C.
Breakpoints
C.
Breakpoints
Answers
D.
Apex Replay Debugger
D.
Apex Replay Debugger
Answers
E.
Workbench
E.
Workbench
Answers
Suggested answer: A, B, D

Universal Containers (UC) has custom Order and Order Line objects that represent orders placed by its customers.

A developer has a new requirement that UC's external enterprise resource planning (ERP) system must be able to integrate with Salesforce to create orders for existing customers in Salesforce whenever an order is placed in the ERP system.

What should the developer use to create the orders in Salesforce7

A.
Connect API
A.
Connect API
Answers
B.
Change Data Capture API
B.
Change Data Capture API
Answers
C.
SObject Tree API
C.
SObject Tree API
Answers
D.
Event Monitoring API
D.
Event Monitoring API
Answers
Suggested answer: A

Consider the following code snippet:

A developer created the following test class to provide the proper code coverage for the snippet above:

However, when the test runs, no data is returned and the assertion fails.

However, when the test runs, no data is returned and the assertion fails.

Which edit should the developer make to ensure the test class runs successfully?

A.
Enclose the method call within Test. startTest () and Test , stop Test ()
A.
Enclose the method call within Test. startTest () and Test , stop Test ()
Answers
B.
Implement the seeAllData=true attribute in the @isTest annotation.
B.
Implement the seeAllData=true attribute in the @isTest annotation.
Answers
C.
Implement the without sharing keyword in the searchfeature Apex class.
C.
Implement the without sharing keyword in the searchfeature Apex class.
Answers
D.
Implement the setFixedSearchResults method in the test class.
D.
Implement the setFixedSearchResults method in the test class.
Answers
Suggested answer: D

A developer is building a Lightning web component that searches for Contacts and must communicate the search results to other Lightning web components when the search completes.

What should the developer do to implement the communication?

A.
Publish an event on an event channel.
A.
Publish an event on an event channel.
Answers
B.
Fire an application event.
B.
Fire an application event.
Answers
C.
Publish a message on a message channel.
C.
Publish a message on a message channel.
Answers
D.
Fire a custom component event.
D.
Fire a custom component event.
Answers
Suggested answer: C

A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields.

Which two components should a developer use to implement the creation of the Case from the Lightning web component?

Choose 2 answers

A.
lightning-record-edit-form
A.
lightning-record-edit-form
Answers
B.
lightning-input
B.
lightning-input
Answers
C.
lightning-record-form
C.
lightning-record-form
Answers
D.
lightning-input-field
D.
lightning-input-field
Answers
Suggested answer: A, C
Total 408 questions
Go to page: of 41