PDI Practice Exam Questions and Answers GRADE A+ SOLUTIONS
0 view 0 purchase
Course
PDI
Institution
PDI
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 te...
a developer observes that an apex test method fail
a developer must provide custom user interfaces wh
a developer wants to improve runtime performance o
a company has a custom object sales helpreque
Written for
PDI
All documents for this subject (2)
Seller
Follow
munyuabeatrice92
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller munyuabeatrice92. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $15.49. You're not tied to anything after your purchase.