Salesforce PD1 q & a = Y exam with correct answers 2024
0 view 0 purchase
Course
Salesforce PD1 q & a = Y
Institution
Salesforce PD1 Q & A = Y
What are three ways for a developer to execute tests in an org? Choose 3.
A. Bulk API
B. ToolingAPI
C. Metadata API
D. Setup Menu
E. Developer Console correct answers B, C, D
A developer created a helper class with a method that can be called from Visualforce pages, web services,
triggers...
What are three ways for a developer to execute tests in an org? Choose 3.
A. Bulk API
B. ToolingAPI
C. Metadata API
D. Setup Menu
E. Developer Console correct answers B, C, D
A developer created a helper class with a method that can be called from Visualforce
pages, web services,
triggers, and of even anonymous code. When the method is called from a trigger, the
developer needs to
execute logic that should not be executed If the method Is called from anywhere else.
How can the
developer determine if the code Is executed in a trigger context?
A. Check if System.executionContext =='Trigger'.
B. Use the executeOnTrigger annotation on the method definition.
C. Check if Trigger.isExecuting ==true
D. Check if Trigger.newMap !=null. correct answers C
Which collection type provides unique key/value pairings of data?
A. Map
B. List
C. Array
D. Set correct answers A
What can a developer use to determine if the core Apex code exceeds any governor
limits in a test class
during bulk execution?
A. Limits, startTest, stopTest
B. Test.getDmlStatements()
C. @TestSetup.
D. @TestVisible correct answers A
What are two features of Heroku Connect? Choose 2 answers
A. Displaying data from an external data store via External Objects.
B. Real Time Sync between Salesforce and Postgres
C. Bidirectional syncs, allowing data to be written into Salesforce
D. Near Real Time Sync between Heroku Postgres and Salesforce correct answers C,
D
,A developer is asked to write negative tests as part of the unit testing for a method that
calculates a
person's age based on birth date. What should the negative tests include?
A. Assert that future dates are rejected by the method.
B. Assert that past dates are accepted by the method.
C. Assert that a null value is accepted by the method.
D. Throwing a custom exception in the unit test. correct answers A
A developer has created a Visualforce Page and Apex Controller that uses the With
Sharing keyword. The
page will be used of by Sales Managers and should only display Accounts owned by
Sales
Representatives who report to the running Sales Manager. The organization-wide
sharing for Accounts is
set to Private. Which additional set of stops should the developer take?
A. Create one Profile, two Permission Sets, and one Role.
B. Create one Profile, one Permission Set, and one Role.
C. Create one Profile, one Permission Set, and two Roles.
D. Create two Profiles, one Permission Set, and one Role. correct answers C
QUESTION 8
When would the use of Heroku Postgres be appropriate?
A. To cache commonly accessed data for faster retrieval.
B. To interconnect Microsoft SQL servers to Heroku Applications.
C. To store and retrieve data using the Structured Query Language.
D. To store user generated pictures and Word documents. correct answers C
How can a custom type be identified as unique when added to a Set?
A. Methods in the class must be static
B. The class must implement the Equals and Hashcode methods
C. Methods in the class must be global
D. The class must have a method with the @InvocableMethod annotation correct
answers B
A sales manager wants to make sure that whenever an opportunity stage is changed to
'Closed Won', a
new case will be of created for the support team to collect necessary information from
the customer. How
should a developer accomplish this?
A. Create a Process Builder to create the new case.
B. Set up a validation rule on the Opportunity Stage.
C. Create a lookup field to the Case object on the opportunity object.
D. Create a workflow rule to create the new case. correct answers A
What are two valid options for iterating through each Account in the collection List
<Account> named
, AccountList? Choose 2 answers.
A. For (List L : AccountList) {...}
B. For (Account theAccount : AccountList){...}
C. For(AccountList){...}
D. For (Integer i=0; i<AccountList. Size();i++){...} correct answers B, D
Which two describe Heroku Redis? Choose 2 answers.
A. Is an in-memory key-value data store, run by Heroku.
B. Is a repository for storing large images.
C. Is an option for long-term data storage.
D. Is provisioned and managed as an add-on. correct answers A, D
Which tool can deploy destructive changes to Apex classes in production?
A. Workbench
B. Developer Console
C. Salesforce Setup
D. Change Sets correct answers A
What is a key difference between a Master-Detail Relationship and a Lookup
Relationship?
A. A Master-Detail Relationship detail record inherits the sharing and security of its
master record.
B. When a record of a master object in a Lookup Relationship is deleted, the detail
records are also
deleted.
C. A Lookup Relationship is a required field on an object.
D. When a record of a master object in a Master-Detail Relationship is deleted, the
detail records are kept
and not deleted. correct answers A
Universal Containers (UC) has an integration with its Accounting system that creates
tens of thousands of
Orders inside of Salesforce in a nightly batch. UC wants to add automaton that can
attempt to match
Leads and Contacts to these Orders using the Email Address field on the insert. UC is
concerned about
the performance of the automation with a large data volume. Which tool should UC use
to automate this
process?
A. Process Builder
B. Process Builder with an Autolaunched Flow
C. Workflow Rules
D. Apex correct answers D
QUESTION 16
When are code coverage calculations updated?
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.99. You're not tied to anything after your purchase.