PD1 Set1
PD1 Set1
PD1 Set1
1 of 65. A Salesforce administrator used Flow Builder to create a flow named "accountOnboarding". The flow must be used inside an Aura component.
Which tag should a developer use to display the flow in the component?
Ao lightning: flow
B.C) lightning-low
C.0) sure-fiow
D.C) aura: flow
2 of 65. A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated.
a © ) Add system.debug statements to the code to track the execution flow and identify the issue.
C.C© Use the Apex Interactive Debugger to step through the code and identify the issue.
BO Disable the trigger in production and test to see if the issue still occurs.
9 of 65. Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a
Salesforce developer adds "Decommissioned" as a picklist value for the Status
_c custom field within the Container
_c object.
hich two approaches could a developer use to enforce only Container records with a status of "Decommissioned" can be deleted?
Choose 2 answers
A. oO Before record-tnggered flaw
B. Ga Apex trigger
16 of 65. Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this
requirement, but want to add an additional layer of validation using automation.
B.() Use an Approval Process to enforce the completion of a valid email address using an outbound message action.
co Use a before-save Apex trigger on the Lead abject to validate the email address and display an error message if it is invalid
BC) Use a custom Lightning Web component to make a callout to validate the fields on a third party system.
es Ss er ee | -
x '@ BQ
17 of 65.
A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations.
hich type of Salesforce orgs should they use for their development?
AO Developer sandboxes.
B.C) Full Copy sandboxes
oat @) Developer orgs
rn ©) Scratch orgs
BE Re een ees =
x '®©)' BQ
cides eek Edis
&> sartner
@, kryterion y DRAKE INTERNATIONAL
21 of 65. A developer needs to allow users to complete a form on an Account record that will create a record for a custom object.
The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.
22 of 65. A developer needs to prevent the creation of Request_c records when certain conditions exist in the system. A BequestLogic class exists that checks the
conditions.
2£ (Bequestlogic.isVelid{Request_< 4
Request adderror( "Your ssqueat cannot be created at thie time.');
29 of 65. A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity
Owner.
es Ss ee ee |
x '@ Ba
36 of 65. A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type,
and set certain default values based on the record type before inserting the record.
ow can the developer find the current user's default record type?
AO Create the opportunity and check the opportunity. cecoratype, which will have the record ID of the current user's default record type, before inserting.
B.C) Query the Profile where the ID equals userinZo.geterofilezo() and then use the profile opportunity. getbefaultkesoratype (} method,
C, [e) Use the schema. userinfe. Opportunity. getDefaultkessrdTyps |) method.
oer © | Use opportunity. s0bjectTyps. getDeacribsa().getRecordTypeInfea {) to get a list of record types, and iterate through therm until isvefaulcrecordtypemapring|) is true.
es Ss ee ee |
x '@ BQ
37 of 65. The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist:
« Roll-up summary fields
« Custom validation rules
* Duplicate rules
Which two things should the developer consider while testing the trigger code?
Choose 2 answers
A. i | Rollup summary fields can cause the parent recordto go through Save,
B. O Duplicate rules are executed once all DML operations commit to the database.
50 of 65. A Primaryld© custom field exists on the Candidate_c¢ custom object. The field is used to store each candidate's id number and is marked as Unique in the
schema definition.
S part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's primary
d as a data point. Universa! Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
hich technique should the developer implement to streamline the data upload?
AQ Upload the CSV into-a custom object related to candidate__c.
@, kryterion SD ower
y DRAKE INTERNATIONAL
51 of 65. A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.
The following code is executed in the Developer Console using the Execute Anonymous window:
Integer x = 1;
How many total accounts will be in the org after this code is executed?
AOs
BO 6
c.@ 10
D.© 15
partner SSS eS
@ kryterion y DRAKE INTERNATIONAL
63 of 65. A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineltem trigger.
B.C Us@ @fsTest [f]eeRiidate=troe| and delete the existing standard price book.
C.C) Use ereatvisitie to allow the test method to see the standard price book.
ra @) Use Teast. loaddata(|| and a static resource to load a standard price book,
es SS
x '® Ba
@, kryterion partner
fflest Aids ?Support Exit Exam
y DRAKE INTERNATIONAL
64 of 65.
A developer must create a Lightning component that allows users to input Contact record information to create a Contact record, including a Salaryc custom field.
hat should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that
ave the correct field level permissions on Salary _c¢?
“/lLightning-input-currency>
3 (@) Slightning-formatted-number value="Salary oo" formatcetyle="curzency">
¢/lightning-formatted-number>
Les °o <lightning-input-field field-name="salary_o">
</lightoing-ineut—fiela>
ls.
4
CC
x '®| BQ
4 of 65. If Apex code executes inside the =xecute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor
limits?
Choose 2 answers
AL The Apex governor lirnits are reset for each iteration of the execete () method.
B. The Apex governor limits cannot be exceeded due to the asynchronaus nature of the transaction.
c. oO The Apex governor limits will use the asynchronous limit levels.
D.C) The Apex governor limits are omitted while calling the constructor of the Apex class.
EE Pe Fe Sana =
( 4_«CDESKTOP-H7VCV70
- Remotely x | —!
<i “e
el A Notsecure | 3.7.120.207/RemoteControl?clientID=1WoONLGKSdtV-NU-NSyDJO&servicelD=57-gAqnWuWQh8xB2amd5_g MD vy fo 6s Re s on
@ kryterion partner a
. Blest Aids* YSupport Exit Exam
i% by GAARE INTERNATIONAL
5 of 65. A developer must perform a complex SOQL query that joins two objects in a Lightning component.
B. (@) Invoke an Apex class with the method annotated as @AcraBnebied to perform the query.
0.) Create a flow to execute the query end invoke from the Lightning component.
6 of 65. Which two operations affect the number of times a trigger can fire?
Choose 2 answers
A. | Criteria-based sharing calculations
B. O Email messages
7 of 65. Which two are best practices when it comes to Aura component and application event handling?
Choose 2 answers
AL (J Try to use application events as opposed to component events.
B. Reuse the event logic in a component bundle, by putting the legic in the helper.
fa O Use component events to communicate actions that should be handled at the application level.
Pe | Handle low-level events in the event handler and re-fire them as higher-level events.
es Ss
x '@ BQ
8 of 65. What are three considerations when using the @lnvocableMethod annotation in Apex?
Choose 3 answers
AL Q Only one methad using the @rnvecsti—emethoa annotation can be defined per Apex class_
B. Oo A method using the @invecableMethsd annotation can have multiple input parameters.
Ee ee SE! Sra be
x '®@ Ba
10 of 65. Which two settings must be defined In order to update a record of a junction object?
Choose 2 answers
AL Read/Write access on the secondary relationship
B. Read/Write access on the primary relationship
-
x '®@ Ba
11 of 65. A developer wrote Apex code that calls out to an external system using REST API.
How should a developer write the test to prove the code is working as intended?
Ao Write a class that implements HTTPc=alloutMock.
12 of 65. Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce
implementation.
Choose 2 answers
AS Declarative development does not require Apex test classes.
13 of 65. How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?
A@ apexipage standard¢sat=elles="Netice
¢" extensions="myControllerExtension"”
it @) apesipage contsollers="Notice
oc, myContcollerExtension"
CO apexipege=NWotice extends="myControllerExtension”
ba @) apexipage controller="Notice
oc" extensions="myTontrollerExtension"
14 of 65. How does the Lightning Component framework help developers implement solutions faster?
AO By providing an Agile process with default steps
BO By providing code review standards and processes
ey ES ET
x '@® Ba
15 of 65. Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.
18 of 65. A team of many developers work in their own individual orgs that have the sare configuration as the production org.
it @) Developer Edition
19 of 65.
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.
hat should the developer use to override the Contact's Edit button and provide this functionality?
A.©) Alightning component in Salesforce Classic and a Lightning component in Lightning Experience
B.C) A Lightning page in Salesfarce Classic and a Visualforce page in Lightning Experience
=r @) A Nisualforce page in Salesforce Classic and a Lightning page in Lightning Experience
ro ) A Visuelforce page in Salesforce Classic and a Lightning component in Lightning Experience
20 of 65. Which code statement includes an Apex method named updateAccounts in the class AccountController for use in a Lightning web component?
AO ampert updateReccunts from "AccountControlles';
Choose 3 answers
AL Apex Class
B. O Flow
(aes User
0.0) Visualforce
E. Apex Trigger
cO NokccessException
o. oO CelloutException
25 of 65. What should a developer do to check the code coverage of a class after running all tests?
Ag View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab,
ae) View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.
ot @) Select and run the class on the Apex Test Execution page in the Developer Console.
B.C) View the Code Coverage column in the list view an the Apex Classes page.
26 of 65.
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.
hange Set deployment to production fails with the test coverage warning:
"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required.”
hat should the developer do to successfully deploy the new Apex trigger and helper class?
&> partner SS
¢@ kryterion
27 of 65. What are three capabilities of the <ltng: require> tag when loading JavaScript resources in Aura components?
Choose 3 answers
AL i] One-time loading for duplicate scripts
B. Loading scripts in parallel
28 of 65. A custom picklist field, Pood Preference¢, exists on a custom object. The picklist contains the following options: ‘Vegan’, ‘Kosher’, 'No Preference’. The developer
must ensure a value is populated every time a record is created or updated.
hat is the optimal way to ensure a value is selected every time a record is saved?
A. @ Set "Use the first value in the list as the default value" to True,
B. [@) Write an Apex trigger to ensure a value is selected,
€.0) Mark the field as Required on the object's page layout.
ra @) Mark the field as Required on the field definition.
.
x |@® Q
partner EE EE
@ ‘by DORE ion
kryter INTEBHATIONAL
30 of 65. A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following
method as a security threat:
s'+lastName+'s'")?;
What are two ways the developer can update the method to prevent a SOQL injection attack?
Choose 2 answers
AY oO Use variable binding and replace the dynamic query with a static SOQL.
B. oO Use the sacapesingl equotes method to sanitize the parameter before its use.
c. i | Use the ¢Readoniy annotation and the with sharing keyword on the class.
D. Qa Use a regular expression expression on the parameter to remove special characters.
eC: O An External ID can be used with Salesforce Mobile to make external data visible.
ss Ss ee |
x '@® Ba
D.() Fields that are used in a formula field can be deleted or edited without editing the formula,
es Ss
vecnssor__x '@
ln
BQ
ES
fa
@, kryterion y DGAKE INTERNATIONAL
&> partner — _
33 of 65. What should a developer use to script the deployment and unit test execution as part of continuous integration?
AO Salesforce CLI
B. oO Execute Anonymous
ot @) VS Code
Pre) Developer Console
34 of 65. What are two considerations for deploying from a sandbox to production?
Choose 2 answers
A. O Unit tests must have calls to the System.assert method.
B. All triggers must have at least one line of test coverage.
DO Should deploy during business hours ta ensure feedback can be quickly addressed,
es Ss
x '@ Ba
atabase.insert(a, false);
A. (@) The record will not be created and an exception will be thrown.
.
x '@ BQ
38 of 65. A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from
user inputs across multiple Visualforce pages and from a parameter on the initial URL.
hich three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers
A. Strang nextFage = controller.save|).getttr1 |);
Ge oO insert pageret;
DB. O public Extendedcontroller (ApexPages.Standardcontraller entrl) { }
39 of 65. A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.
Which design framework should the developer consider to ensure scalability and maintainability?
AO Waterfall Model
B.C) Flux (view, action, dispatcher, and store)
40 of 65. A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object,
Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records.
hich two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed?
Choose 2 answers
A. Use a Test Date Factory class.
el A Notsecure | 3.7.120.207/RemoteControl?clientID=1WoONLGKSdtV-NU-NSyDJO&servicelD=57-gAqnWuWQh8xB2amd5_g MD vy fo 6s Re s oe
hh by CHOKE INTERNATIONAL
hat occurs when more than one Account is returned by the SOQL query?
A, oO The variable, myaccount, is automatically cast to the List data type.
B, o An unhandled exception is thrown and the code terminates.
Oo The query fails and an error is written to the debug log.
42 of 65.
An org has an existing flow that edits an Opportunity with an Update Records element. A developer must update the flow to also create a Contact and store the created
Contact's ID on the Opportunity.
43 of 65. Universal Containers wants to back up all of the data and attachments in Its Salesforce org once a month.
44 of 65. What should a developer use to fix a Lightning web component bug in a sandbox?
AO Developer Console
Et @) Force.com IDE
cO Execute Anonymous
D. @ VS Code
45 of 65.
A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.
hich method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?
A.(D sescunthes.istelscabie()
B. fe] Schema.acbjactTyps.Account.isDeletable(}
it @) aocountHec.s0blectType.iaDeletable (|)
nt @) Recount, isDeletable{)
EE Pe Fe Sana =.
x ®@
6 Q
Salesforce Certified Platform Developer I
46 of 65. A lead developer creates an Apex interface called Laptop. Consider the following code snippet:
How can a developer use the Laptop interface within the silverLaptop class?
A@ public clase Silvertaptop implements Laptor
Gy oO Gixtends (class="Laptop")
BE ia Glass Siivetbaptop
re) Ee (elasa="Lapton")
publics class SilverLaptop
47 of 65. A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet:
//code implementation
How can a developer use the OrderRequest class within the CustomerOrder class?
AO Gxtend=(cless="OrdesRequest")
48 of 65.
What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?
a @) FIND ‘Universal Conteiners' IN CompenyName Fields RETURNING leadjid, name), sccount(ad, name}, conteact(id, name)
B.C) SELECT Lead.id, Lead.Neme, Account,Id, Account.Neme, Contact.id, Contact.Neame FROM Lead, Account, Contact WHERE CompanyName = "Universal Containers*
co PIND ‘Universal Centainers’ IN Name Fields RETURNING lead(id, name), saceount(id, mame), contact (id, name)
D.€) SELECT leadiid, name), account (id, name}, contact(id, name) FROM Lead, Account, Contact WHERE Name = "Universal Containera’
49 of 65. An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.
Ea © ) Write a trigger on the child object and use an aggregate furiction to sum the amount for all related child objects under the Opportunity.
C.0) Use the Streaming API to create real-time roll-up summaries,
0.) Use the Metadata API to create real-time roll-up summaries,
52 of 65. What are two considerations for running a flow in debug mode?
Choose 2 answers
AL (i Callouts to external systems are not executed when debugging a flow.
B. O DML operations will be rolled back when the debugaing ends.
&> partner —— EE
¢@ kryter ion
y ORARE INTERNATIONAL
53 of 65. A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service
agent must gather many pieces of information. A developer is tasked to implement this functionality.
hat should the developer use to satisfy this requirement in the most efficient manner?
A.@ Screen-based flow
8. ©) Approval process
iT @) Apex trigger
B.C) Lightning Component
54 of 65. A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?
A.C) <opextmessage fors"infa"/>
B® <erex:pagetessages />
CO <apexipigeMersage severity="inta™ />
BRC) <apex:facet mame="meapages” (>
fa
vA kryterion y OHAKE INTERNATIONAL
&> partner - _—
55 of 65. Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
Ag £ire()
B. oO SegdetesEvent (}
C.C) Firetvent()
ae) |emit()
56 of 65.
A developer must troubleshoct to pinpoint the causes of performance issues when a custom page loads in their org.
Boolean isOK;
integer x;
String theString = "Hello';
x= 2;
} else 4f (250K '= null «& theString == 'Helic'){
x = 37
} else {
x= 47
AO} 1
BO 2
Lor 3
.@4
59 of 65. Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field
on the Case object to store the support representative name.
hat is the best solution to assign the case to the appropriate support representative?
A. fe] Use a trigger on the Case object.
6. oO Use a formula field on the Case object.
it @) Use a validation rule on the Case object.
DB ie) Use an Assignment Flow element.
60 of 65. What are three ways for a developer to execute tests in an org?
Choose 3 answers
4.) Bulk API
B. Salesforce DX
C. BB Tooling APL
Pe v | Setup Menu
E. (() Metadate API
61 of 65. When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
A.(() Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.
B. Data import wizard is an application thet is installed on your computer
CG oO Bulk APL can be used to import large data volumes in develprmant environments without bypessing the storage limits.
Dd. iv] Developer and Developer Pro sandboxes have different storage limits.
|
x mo) Q
62 of 65.
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is defined for payments in the
Payment Processor interface.
65 of 65. Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.
Which three options should be used to build out the database layer for the application?
Choose 3 answers
AL Custom objects and fields
B. (1) Thogers
G iv] Roll-up summaries
Pe y | Relationships
E. O Flows
Congratulations! You have successfully completed the certification exam to become a Salesforce Certified Platform Developer 1. Welcome to the Salesforce worldwide community of Certified Professionals!
2023 KRYTERION, Inc. and KRYTERION, Limited - All Rights Reserved, @kryterlon