PDI Demo

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Vendor: Salesforce

Exam Code: PDI

Exam Name: Platform Developer I

Version: DEMO
★ Instant Download ★ PDF And VCE ★ 100% Passing Guarantee ★ 100% Money Back Guarantee

QUESTION 1
Universal Containers hires a developer to build a custom search page to help user-find the
Accounts they want. Users will be able to search on Name, Description, and a custom comments
field. Which consideration should the developer be aware of when deciding between SOQL and
SOSL? Choose 2 answers

A. SOSL is able to return more records.


B. SOQL is faster for text searches.
C. SOSL is faster for tent searches.
D. SOQL is able to return more records.

Answer: CD

QUESTION 2
Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.
Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to
`';Waiting on customer'' The .... Administrator wants to ensure the solution used is bulk safe.
Which two automation tools should a developer recommend to meet these business
requirements? Choose 2 answers

A. Scheduled Flow
B. Einstein Next Best Action
C. Record_Triggered Flow
D. Process Builder

Answer: AC

QUESTION 3
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page
loads in their org. Which tool should the developer use to troubleshoot?

A. AppExchange
B. Salesforce CLI
C. Visual Studio Core IDE
D. Developer Console

Answer: D

QUESTION 4
A developer Is asked to create a Visualforce page that lists the contacts owned by the current
user.
This component will be embedded In a Lightning page.
Without writing unnecessary code, which controller should be used for this purpose?

A. Standard list controller


B. Standard controller
C. Lightning controller
D. Custom controller

Answer: B

Get Latest & Actual PDI Exam's Question and Answers from Lead2pass. 2
https://www.lead2pass.com
★ Instant Download ★ PDF And VCE ★ 100% Passing Guarantee ★ 100% Money Back Guarantee

QUESTION 5
A developer has a Visualforce page and custom controller to save Account records. The
developer wants to display any validation rule violation to the user. How can the developer make
sure that validation rule violations are displayed?

A. Add cuatom controller attributes to display the message.


B. Include <apex:message> on the Visualforce page.
C. Use a try/catch with a custom exception class.
D. Perform the DML using the Database.upsert() method.

Answer: B

QUESTION 6
A developer is creating a page that allows users to create multiple Opportunities. The developer
is asked to verify the current user's default } |
Opportunity record type, and set certain default values based on the record type before inserting
the record.
How can the developer find the current user's default record type? ns

A. Query the Profile where the ID equals userInfo.getProfileID() and then use the
profile.Opportunity.getDefaultRecordType() | |method. ] |
B. Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types,
and iterate through them until [ J
isDefaultRecordTypeMapping() is true. Pencil & Paper |
C. Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. < Create the opportunity
and check the opportunity.recordType before inserting, which will have the record ID of the
current Dal user's default record type.

Answer: B

QUESTION 7
Universal Containers has a Visualforce page that displays a table of every Container_c.
being ....... Is falling with a view state limit because some of the customers rent over 10,000
containers. What should a developer change about the Visualforce page to help with the page
load errors?

A. Use Lazy loading and a transient List variable.


B. Use JavaScript remoting with SOQL Offset.
C. Implement pagination with an OffsetController.
D. Implement pagination with a StandardSetController,

Answer: D

QUESTION 8
A developer migrated functionality from JavaScript Remoting to a Lightning web component and
wants to use the existing getOpportunities() method to provide data.
What to do now?

A. The method must be decorated with (cacheable=true).

Get Latest & Actual PDI Exam's Question and Answers from Lead2pass. 3
https://www.lead2pass.com
★ Instant Download ★ PDF And VCE ★ 100% Passing Guarantee ★ 100% Money Back Guarantee

B. The method must be decorated with @AuraEnabled.


C. The method must return a JSON Object.
D. The method must return a String of a serialized JSON Array.

Answer: A

QUESTION 9
A Lightning component has a wired property, searchResults, that stores a list of Opportunities.
Which definition of the Apex method, to which the searchResults property is wired, should be
used?

A. @AuraEnabled(cacheable=true)
public static List<Opportunity> search(String term) { /* implementation*/ }
B. @AuraEnabled(cacheable=true) public List<Opportunity> search(String term)
{ /*implementation*/ }
C. @AuraEnabled(cacheable=false) public static List<Opportunity> search(String term)
{ /*implementation*/ }
D. @AuraEnabled(cacheable=false) public List<Opportunity> search(String term)
{ /*implementation*/ }

Answer: A

QUESTION 10
Management asked for opportunities to be automatically created for accounts with annual
revenue greater than $1,000,000. A developer created the following trigger on the Account object
to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for
high annual revenue accounts. However, when the administrator tries to upload a list of 179
accounts using Data Loader, It fails with system. Exception errors. Which two actions should the
developer take to fix the code segment shown above? Choose 2 answers

A. Check if all the required fields for Opportunity are being added on creation.
B. Use Database.query to query the opportunities.
C. Move the DML that saves opportunities outside the for loop.
D. Query for existing opportunities outside the for loop.

Answer: CD

QUESTION 11
What are two ways a developer can get the status of an enquered job for a class that queueable

Get Latest & Actual PDI Exam's Question and Answers from Lead2pass. 4
https://www.lead2pass.com
★ Instant Download ★ PDF And VCE ★ 100% Passing Guarantee ★ 100% Money Back Guarantee

interface? Choose 2 answers

A. View the apex status Page


B. View the apex flex Queue
C. View the apex Jobs page
D. Query the AsyncApexJobe object

Answer: BD

QUESTION 12
Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service
desk calls.
At one of the steps in the flow, the agents should be presented with a list of order numbers and
dates that are retrieved from an external order management system in real time and displayed on
the screen.
What should a developer use to satisfy this requirement?

A. An Apex controller
B. An Apex REST class
C. An outbound message
D. An invocable method

Answer: B

QUESTION 13
A developer needs to have records with specific field values in order to test a new Apex class.
What should the developer do to ensure the data is available to the test?

A. Use Anonymous Apex to create the required data.


B. Use Test.loadDataO < > and reference a CSV file in a static resource.
C. Use SOQL to query the org for the required data.
D. Use Test.loadDataO and reference a JSON file in Documents.

Answer: B

QUESTION 14
How can a developer check the test coverage of active Process Builder and Flows deploying
them in a Changing Set?

A. Use the Flow properties page.


B. Use the code Coverage Setup page
C. Use the Apex testresult class
D. Use SOQL and the Tooling API

Answer: D

Get Latest & Actual PDI Exam's Question and Answers from Lead2pass. 5
https://www.lead2pass.com
★ Instant Download ★ PDF And VCE ★ 100% Passing Guarantee ★ 100% Money Back Guarantee

Thank You for Trying Our Product


Lead2pass Certification Exam Features:

★ More than 99,900 Satisfied Customers Worldwide.

★ Average 99.9% Success Rate.

★ Free Update to match latest and real exam scenarios.

★ Instant Download Access! No Setup required.

★ Questions & Answers are downloadable in PDF format and


VCE test engine format.

★ Multi-Platform capabilities - Windows, Laptop, Mac, Android, iPhone, iPod, iPad.

★ 100% Guaranteed Success or 100% Money Back Guarantee.

★ Fast, helpful support 24x7.

View list of all certification exams: http://www.lead2pass.com/all-products.html

10% Discount Coupon Code: ASTR14

Get Latest & Actual PDI Exam's Question and Answers from Lead2pass. 6
https://www.lead2pass.com

You might also like