SF PD1 Exam Trailhead exam with correct answers 2024
2 views 0 purchase
Course
SF PD1 E
Institution
SF PD1 E
What is a correct pattern to follow when programming in Apex on a multitenant platform?
A. Use the with sharing keyword when declaring an Apex class to prevent access from other server tenants
B. Use queries to select the fewest fields and records possible to avoid exceeding governor limits
...
What is a correct pattern to follow when programming in Apex on a multitenant
platform?
A. Use the with sharing keyword when declaring an Apex class to prevent access from
other server tenants
B. Use queries to select the fewest fields and records possible to avoid exceeding
governor limits
C. Create Apex code in a separate environment from the schema to reduce deployment
errors
D. Run Data Manipulation Language (DML) on one record at a time to avoid possible
data concurrency issues correct answers B. Use queries to select the fewest fields and
records possible to avoid exceeding governor limits
Which two types of code represent the controller in model-view-controller (MVC)
architecture on the Lightning Platform? (2 answers) correct answers StandardController
system methods that are referenced by Visualforce
Custom Apex and JavaScript code that is used to manipulate data
A developer wants to list all of the tasks for each account on the Record home page.
When a Task is created for a contact, what does the developer need to do to ensure the
task displays on the related account record? correct answers Nothing. The task is
automatically displayed on the Account page
A developer needs to provide a Visualforce page that lets users enter product-specific
details during a sales cycle. Which two ways can the developer accomplish this? (2
answers) correct answers Create a new Visualforce page and an Apex controller to
provide product data entry
Download an unmanaged package from the AppExchange that provides a custom
Visualforce page to modify
The sales management team requires that users populate the Lead Source field of the
lead record when they convert a lead. What should a developer create to ensure that
users do this? correct answers Validation rule
The sales management team hires a new intern. The intern is not allowed to view
opportunities, but needs to see the most recent closed date of all child opportunities
, when viewing an account record. What should a developer do to meet this requirement?
correct answers Create a roll-up summary field on the Account object that performs a
MAX on the Opportunity Close Date field
A developer is creating an application to track engines and their parts. An individual part
can be used in different types of engines. Which data model should the developer use
to track the data and prevent orphan records? correct answers Create a junction object
to relate many engines to many parts through master-detail relationships
A company wants a recruiting app and data model for job candidates and interviews,
with the following requirements:
1) Display the total number of interviews on each candidate record
2) Define security on interview records that's independent from the security on
candidate records
Which two things should a developer do to accomplish this? (2 answers) correct
answers Create a lookup relationship between the Candidate and Interview objects
Create a trigger on the Interview object that updates a field on the Candidate object
A developer has the following trigger that fires after insert and creates a child case
whenever a new case is created:
List<Case> childCases = new List<Case>();
for(Case parent : Trigger.new){
Case child = new Case(ParentId = parent.Id, Subject = parent.Subject);
childCases.add(child);
}
insert childCases;
Which unexpected behavior happens after the code block executes? correct answers
The trigger enters an infinite loop and eventually fails
On which object can an administrator create a roll-up summary field? correct answers
Any object that is one the master side of a master-detail relationship
A developer wants to create a custom object to track customer invoices. How should
you relate invoices and accounts to ensure that all invoices are visible to everyone with
access to an account? correct answers The Invoice should have a master-detail
relationship to the Account
A custom field on the Account object was required for prototyping but is no longer
needed. Using Schema Builder, what is the correct process for a developer to delete the
custom field? correct answers Remove all references from the code and then delete
the custom field from Schema Builder
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 $12.99. You're not tied to anything after your purchase.