Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Salesforce Developers PDII Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam PDII Premium Access

View all detail and faqs for the PDII exam


726 Students Passed

90% Average Score

96% Same Questions
Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions
Questions # 31:

Refer to the Aura component below:

Question # 31

A developer receives complaints that the component loads slowly.

Which change can the developer implement to make the component perform faster?

Options:

A.

Change the type of contactInfo to "Map”.

B.

Move the contents of

C.

Add a change event handler for showContactInfo.

D.

Change the default for showContactInfo to “False.

Questions # 32:

A software company uses a custom object, Defact__c, to track defects in their

software. Defect__c has organization-wide defaults set to private. Each Defect_ c

has a related list of Reviewer < records, each with a lookup field to User that is

used to indicate that the User will review the defect__c.

What should be used to give the User on the Reviewer_c record read only access

to the Defect__c record on the Reviewer_c record?

Options:

A.

Apex managed sharing

B.

Criteria-based sharing

C.

Lightning web component

D.

View All on Defect__c

Questions # 33:

Which use case can be performed only by using asynchronous Apex?

Options:

A.

Querying tens of thousands of records

B.

Making a call to schedule a batch process to complete in the future

C.

Calling a web service from an Apex trigger

D.

Updating a record after the completion of an insert

Questions # 34:

Universal Containers implements a private sharing model for the Convention Attendee co 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 ReadWrite 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?

Options:

A.

Create a before insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

B.

Create an after insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.

C.

Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers,

D.

Create a criteria-based sharing rule on the Convention Attendee custom object to share the records with a group of Event Reviewers.

Questions # 35:

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

Options:

A.

Use Test. setCurrentPage (Page. MyTeatPage);

B.

Use Test. currantPage .getParamatars put (MyTaestPaga) ;

C.

Use controller. currentPage. setPage (MyTastfage) ;

D.

Use Test. setCurrentPage MyTestPags;

Questions # 36:

A developer implemented a custom data table in a Lightning web component with filter functionality. However, users are submitting support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records based on the selected filters.

What should the developer do to improve performance of the component?

Options:

A.

Return all records into a list when the component is created and filter the array In JavaScript.

B.

Use a selective SOQL query with a custom Index.

C.

Use SOSL to query the records on filter change.

D.

Use setstoraclel() in the Apex method to store the response In the client-side cache.

Questions # 37:

A developer is asked to find a way to store sacret data with an ability to specify which profiles and users can access which secrets.

What should be used to store this data?

Options:

A.

system.Cookie class

B.

Custom settings

C.

Static resources

D.

Custom metadata

Questions # 38:

What are three reasons that a developer should write Jest tests for Lightning web components?

Choose 3 answers

Options:

A.

To test a component's non-public properties.

B.

To test basic user interaction

C.

To verify the DOM output of a component

D.

To test how multiple components work together

E.

To verify that events fire when expected

Questions # 39:

Which tag should a developer use to display different text while an <apex:commandButton> is Processing an action?

Options:

A.

<apex:actionSupparts

B.

<apex:actionPaller>

C.

<apex:actionStatus>

D.

<apex:pageMes sagas

Questions # 40:

A company uses Salesforce to sell products to customers. They also have an external product information management (PIM) system that is the system of record for products.

A developer received these requirements:

* Whenever a product is created or updated in the PIM, a product must be

created or updated as a Product? record in Salesforce and a PricebookEntry

record must be created or updated automatically by Salesforce.

= The PricebookEntry should be created in a Priceboek2 that is specified in a

custom setting.

What should the developer use to satisfy these requirements?

Options:

A.

Event Monitoring

B.

Invocable Action

C.

SObject Tree REST

D.

Custom Apex REST

Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.