PD1 Set5 SU23
PD1 Set5 SU23
BlestAids~ ?Suy;
60 of 60. What should a developer use to senpt the deployment and unit test execution as part of continuous integration?
A. o Salesforce CLI
B., | VS Code
C.. | Execute Anonymous
0... Developer Console
BlestAids~ ?Suy;
59 of 60. An org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to also
create 3 Contact and store the created Contact's ID on the Opportuntty.
BlestAids~ ?Suy;
58 of 60. Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted step
with each new customer they create,
n the first step of collecting information, UC’s ERP system must be checked via a REST endpoint to see if the customer exists. If the
customer exists, the data must be presented to the sales rep in Salesforce,
Choose 2 answers
A. a Invocabla method
B. @ Future method
Cc.) Flow
D.; | Tigger
BlestAids~ ?Suy;
57 of 60. Where are two locations a developer can look to find information about the status of batch or future methods?
Choose 2 answers
A. a Apex Flex Quaue
8.| | Paused Flow Interviews component
GC. a Apex Jobs
D,| | Daveloper Console
BlestAids~ ?Suy
56 of 60. Which Lighting code segment should be written to declare dependencies on a Lightning component, c: accowntList, that is used in
@ Visualforce page?
A. <oure:application access-"GLOBAL">
<aura: dependency resourcee"c: accountList"/>
</aura: epplication>
B. <aurea:component saccess="GLOBAL">
<oura:dependency resource="c;accounthist"
/>
</aura: copmponent>
C., | <aure:component access="GLOBAL” extends="1tng: outapp”>
<aura:dependency resource="c:accountList"/>
</aura: component>
1. <aurea:application access-"GLOBAL” extends-"1 tng: outapp”>
<aura:dependency resource="c: accountLisc”/>
</aura:spplication>
SlestAids~ ?Sup;
55 0f 60. The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead
is converted.
What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?
SlestAids~ ?Sup;
54 0f 60. Universal Containers decades 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
&.) | Custom objects and fields
B.!) Triggers
c.g Roll-up summarnes
D.@ Flows
E. @ Relationships
SlestAids~ ?Sup;
53 0f 60. Which three Salesforce resources can be accessed from a Lighting web component?
Choose 3 answers
A.| | Content asset files
B. @ SVG resources
C.@ All external libraries
D. @ Static resources
E.| | Third-party web components
SlestAids~ ?Sup;
52 0f 60. Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web
component?
A. @ BaureEnebled(cacheable-true)
8B. BAureEnabled
Cc. BRemoteAction(cacheeble-true}
D. ERemoteAction
Pee sa =e = w]e Cr
SlestAids~ ?Sup;
5io0f 60. A developer has an integer variable called maxatteupts. The developer needs to ensure that once maxattenpts is initialized, it preserves
its value for the length of the Apex transection; while being able to share the variable’s state between trigger executions.
SlestAids~ ?Sup;
One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its exterrial
order management system based on an ad-hoc basis when the user presses a custom button on the Opportunity detail page. Example
values are as follows;
« Name
* Amount
* Account
Which two methods should the developer implement to fulfill the business requirement?
Choose 2 answers
A. a Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component
on the Opportunity detail page.
B.| Create a Remote Action on the Opportunity object that executes an Apex immediate action to perform the HTTP REST
callout whenever the Opportunsty is updated,
C.| | Create an after update trigger on the Opportunity object that calls a helper method using BFuture (Callout-true) to
perform the HTTP REST callout.
D,@ Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the
~ component on the Opportunity detail page.
SlestAids~ ?Sup;
49 of 60. A developer is tasked to perform a security review of the ContactSearch Apex dass that exists in the system, Within the class, the
developer identifies the following method as 2 security threat:
What are two ways the developer can update the method to prevent a SOQL injection attack?
Choose 2 answers
A. @ Use the escapesingleduotes method to sanitize the parameter before its use,
B.| | Use a regular expression expression on the parameter to remove special characters,
C,|| Use the ReadOnly annotation and the with sharing keyword on the class.
.@ Use variable binding and replace the dynamic query with a static SOQL,
SlestAids~ ?Sup;
48 of 60. Which three statements are true regarding custom exceptions in Apex?
Choose 3 answers
A. a A custom exception class must extend the system Exception class.
8. | A custom exception class can extend other dasses besides the Exception dass.
Cc.) A custom excaption class cannot contain member variables or methods,
1g A custom exception class name must end with "Excaption”.
£.@ A custom exception class can implement one or many interfaces.
SlestAids~ ?Sup;
47 of 60. Which statement describes the execution order when triggers are associated to the same object and event?
SlestAids~ ?Sup;
46 of 60. The Job_Application__c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is
the master,
As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account
Industry is ‘Technology’, while also retrieving the Contact’s Job_Application__c records,
F ieeaieliahdiielies
Em i
qa”
vA. by ORAKE INTERNATIONAL
BlestAids~ ?Sup
45 0f 60. A company has been adding data to Salesforce and has not done a good job of limiting the creation of duplicate Lead records. The
developer is considering writing an Apex process to identify duplicates and merge the records together.
Choose 2 answers
A. a The merge method allows up to three records, including the master and two additional records with the same sObject type,
to be merged into the master record.
B.| The field yalues on the master record are overwritten by the records being merged,
C.; External 10 fields can be used with the nerge method,
0g Merge is supported with accounts, contacts, cases, and leads.
BlestAids~ ?Sup
Choose 3 answers
4.\ Change sets can only be used betyeen related organizations.
B.| Deployment is done in a one-way, single transaction.
C.@ Change sets can ba used to transfer records,
.@ Change sets can deploy custom settngs data.
E. a Sending a change set between two orgs raquires a daployment connection,
F ieeaieliahdiielies
sz =F
Fac
i
DRAKE INTERNATIONAL qP”
VA.
BlestAids~ ?Sup
BlestAids~ ?Sup
42 0f 60. A developer created a child Lightning web component nested inside a parent Lightning web component, The parent component needs
to pass 4 string value to the child component.
Choose 2 answers
A. a The parent component can use @ public property to pass the data to the child component.
B.| : The parent component can invoke a method in the child component.
c.g The parent component can use & custom event to pass the data to the child component.
0.) The parent component can use the Apex controller class to send data to the child component,
F ieeaieliahdiielies
Em i
qP”
vA. by ORAKE INTERNATIONAL
BlestAids~ ?Sup
41 0f60. A Primaryld_c 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.
As 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 id as @ data point. Universal Containers wants to upload this information into Salesforce,
while ensunng all date rows are correctly mapped to 2 candidate in the system.
Which technique should the developer implement to streamline the dats upload?
BlestAids~ ?Sup
F ieeaieliahdiielies
Em zs =e = w]e
by ORAKE INTERNATIONAL qP”
VA.
BlestAids~ ?Sup
39 of 60. What are three capabilities of the <itng:require> tag when loading JavaScript resources in Aura components?
Choose 3 answers
4. @ Specifying loading order
8. a One-time loading for duplicate scripts
C. @ Loading scripts in parallel
D.| | Loading files from Documents
E.\ | Loading externally hosted scripts
BlestAids~ ?Sup
38 of 60. 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.
How can the developer find the current user's default record type?
A. o Use Opportunity. S0bjectType. yetDescribe(}.getRecordTypeInfos() to get a list of record types, and iterate through
them unb! isDefaul tRecordTypeMapping(| is true,
B. Use the Schema. userInfo. Opportunity. getDefaul tRecordType(} method,
Query the Profile where the 1D equals userInfo.getProfileID() and then use the
profile. Opportunity. yetDefaultRecordType() method,
D, Create the opportunity and check the opportunity. recordType, which will have the record ID of the currant user's default
record type, before inserting.
37 of 60. Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component?
Choose 3 answers
A.\ | Reference the import in the HTML template,
B. a Import the static resource and provide a JavaScript property for it.
€ a Referance the property in the HTML template,
D. @ Unload the SVG as a staticresourca.
E.| | Import the SVG as a content asset file.
Boolean 130K;
integer x;
String the3tring = 'Hello';
35 of 60. A custom Visualforce controller calls the apexPages. addfiessage() method, but no messages are rendering on the page,
Which component should be added to the Visualforce page to display the message?
&. | <apex:fecet name="nessages” />
me . “ mi le
Sm J. =s
= =]. cr aoe
Va by ORAKE INTERNATIONAL qa”
34 0f 60. Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.
32 0f60. What should a developer do to chack the code coverage of a dass after running all tests?
A. View the Code Coverage column in the list view on the Apex Classes page.
B. Select and run the dass on the Apex Test Execution page in the Developer Console.
Cc. o View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.
Bo. View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests
tab.
31 0f 60. A Salesforca 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 cisplay the flow in the component?
A." eure-flow
B.. ) aura: flow
C.@ lignming:tlov
D. lightning-flov
30 of 60. A developer at Universal Containers is tasked with implementing a new Salesforce application that will be maintained completely by
their company’s Salesforce administrator.
Which two options should be considered for building out the business logic layer of the application?
Choose 2 answers
4. @ Validation Rules
B.| | Scheduled Jobs
°.@ Record-Tnggered Flows
0.) | Invocable Actions
— “= =e J
ws
_—~s. _—~s
, = cc
| nie
VA. by ORAKE INTERNATIONAL qa”
29 of 60. How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?
A. Use the ApexTestResult class,
B. Use the Code Coverage Setup page.
C., Use the Flow Properties page.
0.@ Use SOQL and the Tooling API.
28 of 60. Which action causes 2 before trigger to fire by default for Accounts?
A. °o Importing data using the Oata Loader and the Bulk API
B.. Renaming or replacing picklists
€., . Canverting Leads to Contacts
D.. | Updating addresses using the Mass Address update tool
az aE ap =e nap ™=s 8
VA. P DROGE INTERNATIONAL
27 of 60. What are two Use cases for executing Anonymous Apex coda?
Choose 2 answers
4.| | To delete 15,000 inactive Accounts in a singla transaction after a deployment
8. @ To schedule an Agex class to run periodically
C. @ Tun a baten Agex class to update all Contacts
0.) | To add unit test code coverage bo an org
26 of 60. Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to
search on Name, Descnption, and 4 custom comments field,
Which consideration should the developer be aware of when deciding between SOQL and SOSL?
Choose 2 answers
4. SOSL ts able to retum more records.
8. o SOSL ts faster for text searches.
c.g SOQL is able to return more records,
BlestAids~ ?S
25 0f60. What are two ways for a developer to execute tests in an org?
Choose 2 answers
A.| | Bulk API
B.| | Metadata API
c.g Developer Console
D. a Tooling API
BlestAids~ ?S
24 of 60. How should a developer write unit tests for a private method in an Apex dass?
A. Use the SeeAliData annotation.
B. Mark the Apex class as global.
C.@ Use the Testvisible annotation.
0, Add a test method in the Apex class.
BlestAids~ ?S
23 0f 60. A lead developer creates an Apex interface called Laptop. Consider the following code snippet:
How can a developer use the Laptop interface within the SiiverLaptop class?
A. GExcends (clesz="Lapcop”)
public class SilverLaptop
B. public class SilverLoptop extends Laptop
ie BInterface (class-"Laptop")
public class SilverLaptop
uO public class SilverLaptop implements Laptop
220f60. 4 developer must craate a drevliat class that provides capabilities defined in tha sortable and Drawable intarfaces,
Why should the developer choose to use Data Loader instead of Data Import Wizard?
Ae Data Import Wizard can not import all 500 records.
200f 60. A developer ywants to imarove runtime performance of Apex calls by caching results on the cient.
Whatis the most efficient way to implement this and follaw bast practicas?
Ae Set a cookie in the browser for use upon return to the page.
19 0f 60. A company wants to implament anew call canter process for handling customer service calls, It requires service reps bo ask for the
callers account number before proceeding with the rest of their call ecript.
Follawing best practices, what is the optimal approach to satisfy this requirement?
180f60. 4 developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Capartunity Status to Closed
Lost if the lost reason is blank.
Whech automation allows the develaper to satisfy this requirement in the most efficient manner?
17 of 60. In the following example, which sharing context will wytethed execute when it is invoked?
}
As Sharing rules will not be enforced for the running user.
16 0f 60. 4 developer wants to mark each Account in a Last<Account> as either Active or Inactive, based on the value in the Laathodifiedbate
field of each Account being greater than 90 days in the past,
15 0f60. Which two are phases in the Aura application event propagation framework?
Choose 2 answers
A. @ Default
B. a Bubble
c. Control
Oo. Ernit
14 0f 60. When a user adits tha Postal Code on an Account, 4 custom Account text field named "Timezone" must be updated based on the values
in another custom object called PostalCadeToTimezone c.
140f60. When auser adits the Postal Coda on an Account, a custom Account text field namad "Timezone" must be updated based on the values
in another custom object called PostalCadeToTimezone¢.
sedback Were...
13 0f60. If Agex code executes inside the execute () method of an Apex class when implementing the Batchable interface, which two statements
are true regerding governor limits?
Choose 2 answers
a. The Apes governor limits cannot be exceeded due to the asynchronous nature of the transaction,
B. o The Apex governor limits are omitted while calling the constructor of the Apex class.
iG: The 4pex governor limits will use the asynchronous limit levels.
oD. a The Apex governor limits are reset for aach iteration of the exeeure|) method.
10 of 60, Universal Containers has implemented an order management application. Each Order can have one or more Order Ling items, The Order
Line object is related to the Order wia @ master-detail relationship. For each Order Line tem, the total price is calculated by multiplying
the Order Line item price with the quantity orderad.,
Whatis tha bast practice to get the sum of all Order Ling itern totals on the Order record?
4. Apex trigger
B. Quick action
© Roll-up summary field
C. Formula flald
9 of 60. A custom picklist fiaid, rood_Preterence__c, 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.
What is the optmal way to ensure a value is selected every tme a record is saved?
A. Set "Use the first value in the fist as the default value” to True,
B. Mark the field as Required on the object’s page layout.
C. ” Write an Apex trigger to ensure a value is selected.
oO Mark the field as Required on the field definition.
Bof60. Adevelopar reeds to hava records with specific field values in order to bast a ew Apex dass,
What should the developer do to ensure the data is available to the test?
A oO Use Test, losddata() and reference = CSV file ina static resource.
B. Use Anonymous Apex to create the required data.
Do. Use SOOL to query the org far the required data.
7 of 60. A developer must modify the following code snippet to prayent the number of SOQL queries issued from excaeding the platform
governor limit.
The above method might be called during a tngger execution via a Lightning component.
6 of 60. A developer must create a Lightning component that allows users to input Contact record information to create a Contact record,
including a Sslary__¢ custom field.
What should the developer use, along with a lightning-record-edit-form, so that Selary__e field funcbons as a currency input and is only
viewable and editable by users that have the correct field level permissions on Selary__c?
Soféd. Adevelopar crated anew atter insert rigger on the Lead object that weates Task records for aach Lead,
After danloying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting
total batch failures being caused by the Task insert statement. This causes the integration process ih the outside system to stop,
requiring 4 manual restart.
Which change should the developer make to allaw the integration ta continue when some records in a batch cause failures due ta the
Task insert statement, so that manual restarts are not needed?
A@ Use the Database method with «ll0rNone set to false,
B, Use atry-catch black after the insert statement.
4 Deactivate the trigger before the integration runs.
D. Remove the Apex class from the integration user's profile,
4o0f60. Universal Containers wants to back up all of the data and attachments in its Salesforce ong once a morith,
BIestAMs™ ysuppc
30f 60. Which two events need to happen when deploying to a production ong?
Choose 2 answers
A. (@) All Aoex code must have at least 75% test coverage.
B. All Visual flaws must have atleast 1% best coverage.
Cc. All tiggers must have some test coverage.
0.) All Workflow rules must have at laast 1% test coverage.
20f60. Which Agey dass contains methods to return the amount of resources that have been used for a partiqular governor, such as the
number of DML statements?
AL Massaging
Bu Limits
le OrgLimits
D. Exception
1of6d. What can be used to override the Account’s standard Edit button for Lightning Experienca?
AL Lightning flow
B, Lightning action
iS Lighting page
ng Lightning component
Congratulations! You have successfully completed the certification exam to become a Salesfr
Salesforce worldwide community of Certfied Professionals!