, https://www.pass4itsure.com/pdii.html
2021 Latest pass4itsure PDII PDF and VCE dumps Download
QUESTION 1
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won. This trigger
is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the
Salesforce instance.
When a test batch of records is loaded, the Apex Trigger creates Contract records. A developer is tasked with
preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to
have the Contract records created.
What is the most extendable way to update the Apex Trigger to accomplish this?
A. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
B. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.
C. Use a List Custom Setting to disable the Trigger for the user who does the data loading.
D. add the Profile Id of the user who does the data loading to the Trigger so the Trigger won\\'t fire for this user.
Correct Answer: A
QUESTION 2
A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some
test data as a part of the unit tests setup. What are three actions to enable this functionality? (Choose three.)
A. Surround the callout with TeststartTest(), Test.stopTest()
B. Surround the data insertion with Test.startTest(), Test.stopTest()
C. Implement the WebServiceMock interface
D. Update code to call Test.setMock()
E. Implement the HttpCalloutMock interface
Correct Answer: ACD
QUESTION 3
Universal Containers has a Visualforce page that displays a table every Container_ c being rented by a gives Account..
failing because some of the customers rent over 100,000 containers. What should a developer change about the
Visualforce page to help with the page load errors?
A. Implement pagination with an OffsetController.
B. Implement pagination with a StandardSetController.
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 pass4itsure. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $0.00. You're not tied to anything after your purchase.