100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

PDI Practice Exam Questions and Answers GRADE A+ SOLUTIONS

Rating
-
Sold
-
Pages
30
Grade
A+
Uploaded on
26-05-2024
Written in
2023/2024

Question # 1 A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console? Options: A.   The test method has a syntax error in the code. B.   The test method relies on existing data in the sandbox. C.   The test method is calling an @future method. D.   The test method does not use SAs to execute as a specific user. Question # 2 A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality? Options: A.   A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience B.   A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience C.   A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience D.   A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience Question # 3 A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices? Options: A.   Decorate the server-side method with @AuraEnabled (total-true). B.   Call the setStoeable () method on the action in the javaScript client-sidecode. C.   Decorate the server-side method with @AuraEnabled (cacheable-true. D.   Set a ciikie in the browser for use upon return to the page. Question # 4 A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__ C.   A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity. What should the developer use to implement this? Options: A.   A roll-up summary field on the sales Help_Request__c object B.   A trigger on the Opportunity object C.   A roll-up summary field on the Opportunity object D.   A record-triggered flow on the Sales Help Request__c object Question # 5 What should be used to create scratch orgs? Options: A.   Developer Console B.   Salesforce CLI C.   Workbench D.   Sandbox refresh Question # 6 CONTINUED......

Show more Read less
Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
May 26, 2024
Number of pages
30
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

PDI Practice Exam Questions and
Answers GRADE A+ SOLUTIONS

Question # 1

A developer observes that an Apex test method fails in the Sandbox. To identify the
issue, the developer copies the code inside the test method and executes it via the
Execute Anonymous tool in the Developer Console. The code then executes with no
exceptions or errors. Why did the test method fail in the sandbox and pass in the
Developer Console?

Options:

A.

The test method has a syntax error in the code.

B.

The test method relies on existing data in the sandbox.

C.

The test method is calling an @future method.

D.

The test method does not use System.runAs to execute as a specific user.

Question # 2

A developer must provide custom user interfaces when users edit a Contact in either
Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this
functionality?

Options:

A.

A Visualforce page in Salesforce Classic and a Lightning component in Lightning
Experience

,B.

A Lightning component in 5alesforce Classic and a Lightning component in lightning
Experience

C.

A Visualforce page in Salesforce Classic and a Lightning page in Lightning
Experience

D.

A Lightning page in Salesforce Classic and a Visualforce page in Lightning
Experience

Question # 3

A developer wants to improve runtime performance of Apex calls by caching result
on the client.

What is the most efficient way to implement this and follow best practices?

Options:

A.

Decorate the server-side method with @AuraEnabled (total-true).

B.

Call the setStoeable () method on the action in the javaScript client-sidecode.

C.

Decorate the server-side method with @AuraEnabled (cacheable-true.

D.

Set a ciikie in the browser for use upon return to the page.

Question # 4

A company has a custom object, Sales, }_Help_Request__c, that has a Lookup
relationship to Opportunity. The Seles Help Request__c has a mumber field,
Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help
Request__

C.

, A developer is tasked with creating a field, total_Hour2__c, on Opportunity that
should be the sum of all of the Number_of_Hours_c values for the
Sales_Help_Request__c records related to that Opportunity.

What should the developer use to implement this?

Options:

A.

A roll-up summary field on the sales Help_Request__c object

B.

A trigger on the Opportunity object

C.

A roll-up summary field on the Opportunity object

D.

A record-triggered flow on the Sales Help Request__c object

Question # 5

What should be used to create scratch orgs?

Options:

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Question # 6
$15.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
munyuabeatrice92

Get to know the seller

Seller avatar
munyuabeatrice92 K
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
2 year
Number of followers
1
Documents
347
Last sold
1 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions