PD1 Testing, Debugging, and Deployment exam with correct answers 2024
1 view 0 purchase
Course
PD1 Testing, Debugging, and Deployment
Institution
PD1 Testing, Debugging, And Deployment
Requirements for test methods (3) correct answers - Static
- No params
- No return/void
How many methods with @TestSetup are allowed in a test class? correct answers 1
What happens if method with @TestSetup fails? correct answers Entire test fails and no test methods are run
When is @...
Requirements for test methods (3) correct answers - Static
- No params
- No return/void
How many methods with @TestSetup are allowed in a test class? correct answers 1
What happens if method with @TestSetup fails? correct answers Entire test fails and
no test methods are run
When is @TestSetup not supported? correct answers When test class or method in
class has SeeAllData=true
What lines don't count towards code coverage? (4) correct answers - System.debug
- Comments
- Lines w/ only brackets
- Class definitions
How do you get the ID of standard pricebook when creating pricebook test data?
correct answers Test.getStandardPricebookId()
System.runAs() method (5) correct answers - Can only be used in test methods
- Ignores license limits (can create any number of users)
- Inserts count against DML statements
- Record sharing enforced
- Field level sharing not enforced
T or F: When using System.runAs method(), record sharing is not enforced but field
level permissions are. correct answers False - Record sharing enforced, field level
sharing not enforced
What tests are run when using the default option during a change set? correct answers
Sandbox - no tests
Production - local tests (not in installed managed package)
T or F: When using the Run Specified Tests option during change set, you can specify
test methods. correct answers False
What are trace flags? correct answers Used to activate debug logs
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 HopeJewels. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.