0% found this document useful (0 votes)
206 views4 pages

PDII

This document provides free exam practice materials and guarantees IT certification success. It offers the latest and valid exam questions and answers to help users prepare for Salesforce exams. Some key points covered include sample exam questions and answers for topics like Apex, Lightning components, APIs, and best practices for data integration and security.

Uploaded by

akzxak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views4 pages

PDII

This document provides free exam practice materials and guarantees IT certification success. It offers the latest and valid exam questions and answers to help users prepare for Salesforce exams. Some key points covered include sample exam questions and answers for topics like Apex, Lightning components, APIs, and best practices for data integration and security.

Uploaded by

akzxak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Free Exam/Cram Practice Materials - Best Exam Practice Materials

IT Certification Guaranteed, The Easy Way!

NO.1 A developer is asked to look into an issue where a scheduled Apex is running into DML limits.
Upon investigation, the developer finds that the number of records processed by the scheduled Apex
has recently increased to more than 10,000.
What should the developer do to eliminate the limit exception error?
A. Use platform events.
B. Use the @future annotation.
C. Implement the Queueable interface.
D. Implement the Bathable interface.
Answer: D

NO.2 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?
A. Apex REST
B. External JavaScript Library
C. Apex Trigger
D. Process Builder
Answer: B

NO.3 Universal Containers uses Salesforce to manage its product offerings to customers.
A developer is building a custom mobile app that must allow app users to view product information,
in real time, that is stored in Salesforce.
What should the developer use to get the product information from Salesforce?
A. REST APT
B. User Interface API
C. SOAP API
D. Streaming API
Answer: A

NO.4 Which method should be used to convert a Date to a String in the current user's locale?
A. String.format
B. Date.format
C. Date.parse
D. String. valueOf
Answer: B

NO.5 A developer created a Lightning web component that allows users to input a text value that is
used to search for Accounts by calling an Apex method. The Apex method returns a list of
AccountWrappers and is called imperatively from a JavaScript event handler.

2 Freecram.net.
Get Latest & Valid PDII Exam's Question and Answers from 1
https://www.freecram.net/exam/PDII-salesforce-certified-platform-developer-ii-pdii-e9779.html
Free Exam/Cram Practice Materials - Best Exam Practice Materials
IT Certification Guaranteed, The Easy Way!

Which two changes should the developer make so the Apex method functions correctly?
Choose 2 answers
A. Add @AuraEnafcle3 to line 09.
B. Add @AuraEnat:ei to line 01.
C. Add @AuraEnabled to line 03.
D. Add @AuraEnabled to lines 11 and 12.
Answer: C,D

NO.6 Refer to the code snippet below:

As part of an Integration development effort, a developer is tasked to create an Apex method mat
solely relies on the use of foreign identifiers In order to relate new contact records to existing
Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of
this field is Legacy_Id_c.
What Is the most efficient way to instantiate the parentAccount: variable on line 02 to ensure the
newly created contact is properly related to the Account?
A)

B)

3 Freecram.net.
Get Latest & Valid PDII Exam's Question and Answers from 2
https://www.freecram.net/exam/PDII-salesforce-certified-platform-developer-ii-pdii-e9779.html
Free Exam/Cram Practice Materials - Best Exam Practice Materials
IT Certification Guaranteed, The Easy Way!

C)

D)

A. Option D
B. Option B
C. Option A
D. Option C
Answer: C

NO.7 A developer is developing a reusable Aura component that will reside on an sObject Lightning
page with the following HTML snippet:
Caura: component implements-"forcethaaRecordid, flexipage:availableForAllPageTypes">
<div>Hello!</div>
</aura:component>
How can the component's controller get the context of the Lightning page that the sobject is an
without requiring additional best coverage?
A. Set the object type as a component attribute.
B. Create a design attribute and configure via App Builder
C. Use the getSObjectType () method in an Apex class
D. Add force:hasSobjectName to the implements attribute
Answer: D

NO.8 How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and
MomenUS, in a Lightning Component?
A. Join multiple assets from a static resource.
B. Use JavaScript remoting and script tags.
C. Use CONs with script attributes
D. Implement the libraries in separate helper files.
Answer: A

NO.9 A developer has requirement to query three fields (id, name, Type) from an Account and first
and last names for all Contacts associated with the Account.
Which option is the preferred optimized method to achieve this for the Account named 'Ozene
Electronics'?
A. List 1Accounts = (Select ID, Name, Type from Account Join (Select ID, firstname, lastname form
Contact where contact account , name 'ozone electronics));
B. Account a = (SELECT ID, Name, Type from Account where name= Ozone Electronics;) list 1contacts
= (SELECT firstname, lastname from Contacts where accountid=: a -ID0;
C. Account a = (SELECT ID, Name, Type, (select contat,firstName, Contact,LastName from Account,
Contacts) from Account where name; Ozone Electronic' Limit 1 );

4 Freecram.net.
Get Latest & Valid PDII Exam's Question and Answers from 3
https://www.freecram.net/exam/PDII-salesforce-certified-platform-developer-ii-pdii-e9779.html
Free Exam/Cram Practice Materials - Best Exam Practice Materials
IT Certification Guaranteed, The Easy Way!

D. List 1Contacts = new list ( );


for(Contact c ; 1Select firstname, lastname Account, Name Account,ID Account, Type from Contact
where Account: Name=' electronics')) ( iContacts.add(c);)
Answer: C

NO.10 A developer wants to write a generic Apex method that will compare the Salesforce Name
filed between any two object records, for example to compare the Name field of an Account and an
Opportunity; or the name of an Account and a Contact.
How should the developer do this?
A. Use a String.replace( ) method to parse the contents of each Name field.
B. Use the salesforce metadata API to extract the value of each object and compare the name fields
C. Invoke a Schema,describe() function to compare the values of each Name field.
D. Cast each object into an sObject and use sObject.get(Name') to compare the Name fields.
Answer: D

NO.11 A business currently has a process to manually upload orders from its external Order
Management System (OMS) into Salesforce.
This is a labor intensive process since accounts must be exported out of Salesforce to get the IDs. The
upload file must be updated with the correct account IDs to relate the orders to the corresponding
accounts.
Which two recommendations should make this process more efficient?
Choose 2 answers
A. Ensure the data in the file is sorted by the order ID.
B. Use the Insert wizard In the Data Loader to import the data.
C. Use the upsert wizard in the Data Loader to import the data.
D. Identify unique fields on Order and Account and set them as External IDs.
Answer: C,D

NO.12 A developer is asked to find a way to store secret data with an ability to specify which profiles
and users can access which secrets.
What should be used to store this data?
A. Static resources
B. System.Cookie class
C. Custom metadata
D. Custom settings
Answer: D

5 Freecram.net.
Get Latest & Valid PDII Exam's Question and Answers from 4
https://www.freecram.net/exam/PDII-salesforce-certified-platform-developer-ii-pdii-e9779.html

You might also like