100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PD1 Quizlet exam with correct answers 2024 $15.99   Add to cart

Exam (elaborations)

PD1 Quizlet exam with correct answers 2024

 0 view  0 purchase
  • Course
  • PD1 Q
  • Institution
  • PD1 Q

1. Why would a developer use TTest() and TTest() ? A. To avoid Apex code coverage requirements for the code between these lines B. To start and stop anonymous block execution when executing anonymous Apex code. C. To indicate test code so that it does not impact Apex line count governor limit...

[Show more]

Preview 3 out of 25  pages

  • October 15, 2024
  • 25
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PD1 Q
  • PD1 Q
avatar-seller
HopeJewels
PD1 Quizlet

1. Why would a developer use Test.startTest() and Test.stopTest() ?
A. To avoid Apex code coverage requirements for the code between these lines
B. To start and stop anonymous block execution when executing anonymous Apex
code.
C. To indicate test code so that it does not impact Apex line count governor limits
D. To create an additional set of governor limits during the execution of a single test
class. correct answers D. To create an additional set of governor limits during the
execution of a single test class.

2. What must the Controller for a Visulforce page utilized to override the standard
Opportunity view button?
A. The StandardSetController to support related lists for pagination
B. The Opportunity StandardController for pre-built functionality
C. A callback constructor to reference the StandardController
D. A constructor that initialized a private Opportunity variable. correct answers B. The
Opportunity StandardController for pre-built functionality

3. A developer uses a before insert Trigger on the Lead object to fetch the Territory__c
object, where the Territory.PostalCode__c matches the Lead.PostalCode. The code
fails when the developer uses the Apex Data Loader to insert 10000 Lead records. The
developer has the following code block:

for(Lead l : Tigger.new)
{
if(l.PostalCode != null)
{
List< Territory__c> terrList =
[ SELECT Id FROM Territory__c where PostalCode__c =: lo.PostalCode ];
if(terrList.size() > 0)
{
l.Territory__c = terrList[0].id;
}
}
}

Which line of code is causing the code block to fail?
A. 03: A SQOL query is located inside of the for loop code.
B. 01: Trigger.new is not valid in a before insert Trigger.
C. 02: A NullPointer exception is thrown if PostalCode is null.
D. 05: The Lead in the before insert trigger cannot be updated. correct answers A. 03:
A SQOL query is located inside of the for loop code.

,4. What would a developer do to update a picklist field on a related Opportunity records
when a modification to the associated Account record is detected?
A. Create a process with a process builder.
B. Create a Workflow Rule with a field update.
C. Create a Lightning component.
D. Create a Visualforce page. correct answers A. Create a process with a process
builder.

5. Which requirement needs to be implemented using standard workflow instead of
Process Builder? Choose 2 answers
A. Create activities at multiple intervals
B. Send outbound message without Apex code
C. Copy an account address to its contacts
D. Submit a contract for approval correct answers A. Create activities at multiple
intervals
B. Send outbound message without Apex code

6. An org has a different Apex classes that provide Account-related functionality. After a
new validation rule is added to the Account object, many of the test methods fail.
What can be done to resolve failures and reduce the number of code changes needed
in future validation rules? Choose 2 answers.
A. Create a method that creates valid Account records, and call this method from within
test methods.
B. Create a method that loads valid Account records from static resource, and call this
method within test methods.
C. Create a method that performs a callout for a valid Account record, and call this
method within test methods.
D. Create a method that queries for valid Account records, and call this method within
test methods. correct answers A. Create a method that creates valid Account records,
and call this method from within test methods.
B. Create a method that loads valid Account records from static resource, and call this
method within test methods.

7. Which component is available to deploy using Metadata API? Choose 2 answers.
A. Case Layout
B. Account Layout
C. Case Feed Layout
D. Console Layout correct answers A. Case Layout
B. Account Layout

8. In the code below, what type does Boolean inherit from?
Boolean b = true;
A. Enum
B. Object
C. String

, D. Class correct answers B. Object

9. What is the preferred way of accessing web content such as images, stylesheets,
JavaScript, and other libraries that is used in Visualforce pages?
A. By accessing the content from Chatter Files.
B. By uploading the content in the documents tab.
C. By accessing the content from a third-party CDN.
D. By uploading the content as a Static Resource. correct answers D. By uploading the
content as a Static Resource.

10. A company has a custom object named Warehouse. Each Warehouse record has a
distinct record owner, and is related to parent Account in Salesforce.
Which kind of relationship would the developer use to relate the Account to the
warehouse?
A. One-to-Many
B. Lookup
C. Master-Detail
D. Parent-Child correct answers B. Lookup

11. A developer creates a Workflow Rule declaratively that updates a field on an Object.
An Apex trigger exists for the object. What happens when a user updates a record?
A. No changes are made to the data.
B. Both Apex Trigger and Workflow Rule are fired only once.
C. The workflow Rules is fired more than once.
D. The Apex Trigger is fired more than once. correct answers D. The Apex Trigger is
fired more than once.

12. What is true of a partial sandbox that is not true of a full sandbox?
A. More frequent refreshes
B. Only includes necessary meta data
C. Use of change sets
D. Limited to 5 GB of data correct answers A. More frequent refreshes
D. Limited to 5 GB of data

13. In which order does Salesforce execute events upon saving a record?
A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules;
Commit
B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules;
Commit
C. Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules;
Commit
D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules;
Commit correct answers A. Before Triggers; Validation Rules; After Triggers;
Assignment Rules; Workflow Rules; Commit

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 $15.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80461 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.99
  • (0)
  Add to cart