0% found this document useful (0 votes)
282 views

PD1 Set3

Uploaded by

alaa1993
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
282 views

PD1 Set3

Uploaded by

alaa1993
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

Time Remaining: 00:55:00

1 of 65. Universal Containers (UC) processes orders in Salesforce in a custom object, Order___c. They also allow sales reps to upload CSV files
with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system.

After the status for an order


__c is first set to ‘Placed’, the order information must be sent to a REST endpoint in the ERP system that can
process one order at a time.

What should the developer implement to accomplish this?


A oO Callout from a Queueable class called from a trigger
B. O Callout from a Batchable class called from a scheduled job

C. ©) Flow with a callout from an invocable method


B: Ce) Callout from an @future method called from a trigger
Time Remaining: 00:54:40

1 of 65. Universal Containers (UC) processes orders in Salesforce in a custom object, Order___c. They also allow sales reps to upload CSV files
with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system.

After the status for an order


__c is first set to ‘Placed’, the order information must be sent to a REST endpoint in the ERP system that can
process one order at a time.

What should the developer implement to accomplish this?


A oO Callout from a Queueable class called from a trigger
B. O Callout from a Batchable class called from a scheduled job

C. ©) Flow with a callout from an invocable method


B: Ce) Callout from an @future method called from a trigger
Time Remaining: 00:54:15

1 of 65. Universal Containers (UC) processes orders in Salesforce in a custom object, Order __c. They also allow sales reps to upload CSV files
with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system.

After the status for an order __c is first set to ‘Placed’, the order information must be sent to a REST endpoint in the ERP system that can
process one order at a time.

What should the developer implement to accomplish this?


4©) Callout from a Queueable class called from a trigger
B. O Callout from a Batchable class called from a scheduled job

C. ©) Flow with a callout from an invocable method


D. O Callout from an @future method called from a trigger
Time Remaining: 00:53:45

2 of 65. When a user edits the Postal Code on an Account, a custom Account text field named "Timezone" must be updated based on the
values in a PostalCodeToTimezone_c custom object.

Which two automation tools can be used to implement this feature?

Choose 2 answers
4O Quick actions
B. O Approval process
Cc. Account trigger
D. Fast Field Updates record-triggered flow

O Mark this item for later review.


Time Remaining: 00:53:16

3 of 65. As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that
will be executed on stateful clients.

Which two technologies are built on a framework that fully supports the business requirement?
Choose 2 answers
A. Lightning Web Components
B. 0 Visualforce Components
iC. O Visualforce Pages
0g Aura Components

O Mark this item for later review.


Time Remaining: 00:52:53

4 of 65. A developer has the following requirements:


* Calculate the total amount on an Order.
¢ Calculate the line amount for each Line Item based on quantity selected and price.
¢ Move Line Items to a different Order if a Line Item is not in stock.

Which relationship implementation supports these requirements on its own?


A. o Line Item has a re-parentable master-detail field to Order.
B. oO Line Item has a re-parentable lookup field to Order.
Ec. O Order has a re-parentable lookup field to Line Item.
D. O Order has a re-parentable master-detail field to Line Item.

O Mark this item for later review,

Provide question feedback here (optional):


Time Remaining: 00:52:42

5 of 65. A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to
include helper methods that are not used by the Web Application in the implementation of the Web Service Class.

Which code segment shows the correct declaration of the class and methods?
AC global class WebServiceClass {

private static Boolean helperMethod() { /* implementation ... */ }


global String updateRecords() { /* implementation ... */ }
}
B.C) webservice class WebServiceClass {

private static Boolean helperMethod() { /* implementation ... */ }


global static String updateRecords() { /* implementation ... */ }

}
rt @) webservice class WebServiceclass {
private static Boolean helperMethed() { /* implementation ... */ }

webservice static String updateRecords() { /* implementation ... */ }


}
pe @ | global class WebServiceClass {
private static Boolean helperMethod() { /* implementation ... */ }
The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the
Visualforce page, what should the developer do to correct the problem?
A. oO Add a getter method for the acttType attribute.
B. O Change theAccount attribute to public.
G @ Add with sharing to the custom controller.

D. © Convert theAccount.Type to a String.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


ee em ee ee oe

Time Remaining: 00:51:59

7 of 65. A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface.

Which approach can be used to accomplish this?


A. O Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.
B. o Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.
Gi oO Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.

D. O Wrap the Lightning Web Component in an Aura Component and surface the Aura Component as a Visualforce tab.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:51:51

8 of 65.
What can be used to override the Account's standard Edit button for Lightning Experience?

A O Lightning action
B. oO Lightning page

Gi fe) Lightning component


D. O Lightning flow

O Mark this item for later review,

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:51:44

9 of 65. A developer created this Apex trigger that calls Myclass.myStaticMethod:

trigger myTrigger on Contact (before insert)


{ MyClass.myStaticMethod(trigger.new); }

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage.

What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?
A O The deployment passes because both classes and the trigger were included in the deployment.
B, oO The deployment fails because no assertions were made in the test method.
c O The deployment passes because the Apex code has the required >75% code coverage.
D. o The deployment fails because the Apex trigger has no code coverage.

1 Mark this item for later review.


ee em ee ee oe

Time Remaining: 00:51:36

10 of 65. A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing
them to test isolated requirements for various types of Salesforce cases.

Which approach can efficiently generate the required data for each unit test?
A. O Create a mock using the HttpcalloutMock interface.
B. o Use @TestSetup with a void method.

Cc, O Add @IsTest (seeAllData=true) at the start of the unit test class.
D. O Create test data before Test .startTest() in the unit test.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:51:31

11 of 65.
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org.

Which tool should the developer use to troubleshoot query performance?

A. O Setup Menu
B. O Visual Studio Code IDE
oO AppExchange
D. o Developer Console

O Mark this item for later review.

Provide question feedback here (optional):

Dlasea Deaviida Paadhacl hara


Time Remaining: 00:51:24

12 of 65. A company has a custom object, order __c, that has a required, unique external ID field called order Number__c.

Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of Order __c records
using the external ID field?
A. oO merge orders;

B. O merge orders Order Number_c;


c.@ upsert orders Order Number cj;

B: O upsert orders;

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:51:17

13 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.

Which update must the developer make in the flow?

A. O Add a new Update Records element.


B. oO Add a new Roll Back Records element.
C. @ Add @ new Create Records element.
D. oO Add a new Get Records element.

O Mark this item for later review,

Provide question feedback here (optional):


ee em ee ee

Time Remaining: 00:51:07

14 of 65. A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests allowing them to
test independent requirements for various types of Salesforce Cases.

Which approach can efficiently generate the required data for each unit test?
A. oO Create a mock using the Stub API.
B. oO Create test data before Test.startTest() in the unit test.

& o Use @Testsetup with a void method.


D. O Add @isTest (seeAllData=true) at the start of the unit test class.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:51:01

15 of 65. Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross
the Shadow DOM boundary?
A. O bubbles: true, composed: false

B. O bubbles: false, composed: false


c. o bubbles: true, composed: true
D. O bubbles: false, composed: true

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:50:51

16 of 65. Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.
The component should be able to validate the user input before saving the information to the database.

What is the best technology to create this component?


A. O Flow
B. o Lightning Web Components

C.©) Visualforce
D. O VUE JavaScript framework

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:50:42

17 of 65. How should a developer write unit tests for a private method in an Apex class?
A. oO Use the SeeAllData annotation.
B. O Add a test method in the Apex class.

c: O Mark the Apex class as global.


D. o Use the @TestVisible annotation.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:50:34

18 of 65. Assuming that name is a String obtained by an <apex:inputText> tag on a Visualforce page, which two SOQL queries performed are
safe from SOQL injection?
Choose 2 answers
Ag String query = '%' + name + '%';

List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];

B.O) String query = 'SELECT Id FROM Account WHERE Name LIKE \'%' + name.noQuotes() + ‘'S\'';
List<Account> results = Database.query (query) ;

om v | String query = 'SELECT Id FROM Account WHERE Name LIKE \‘%' + String.éscapeSingleQuotes
(name) + '%\"';
List<Account> results = Database.query (query) ;

D.C) string query = ‘SELECT Id FROM Account WHERE Name LIKE \"$"' + name + 'S\"";
List<Account> results = Database.query (query) ;
Time Remaining: 00:50:20

19 of 65. Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The
Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying
the Order Line item price with the quantity ordered.

What is the best practice to get the sum of all Order Line item totals on the Order record?

A, o Roll-up summary field


B. O Formula field
Gi oO Apex trigger
D. O Quick action

O Mark this item for later review.

Provide question feedback here (optional):


Time Remaining: 00:50:09

20 of 65. Refer to the following Apex code:

Integer x = 0;

do {
x= 1;

x++;
} while (x < 1);

System. debug (x);

What is the value of » when it is written to the debug log?


AC a
BQ ?t
c.g 2
D.C) 3
Time Remaining: 00:50:04

20 of 65. Refer to the following Apex code:

Integer x = 0;

do {
x= 1;

x++;
} while (x < 1);

System. debug (x);

What is the value of » when it is written to the debug log?


AC a
BQ ?t
c.g 2
D.C) 3
Time Remaining: 00:49:57

21 of 65. While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the
developer ensure only records accessible to the currently logged in user are displayed?
A. @ Use the WITH SECURITY_ENFoRCED clause within the SOQL.
B. O Use the inherited sharing keyword.
c. O Use the with sharing keyword.
D. oO Use the without sharing keyword.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


et oe

Time Remaining: 00:49:32

23 of 65. What can be easily developed using the Lightning Component framework?
A. oO Salesforce Classic user interface pages
B. Ce] Lightning Pages

c. O Customized JavaScript buttons


D. oO Salesforce integrations

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


ee

Time Remaining: 00:49:14

24 of 65.
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous
window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?

A. O The test method does not use system. runAs to execute as a specific user.
B. oO The test method is calling an @future method.
a oO The test method relies on existing data in the sandbox.
D. oO The test method has a syntax error in the code.

O Mark this item for later review,

Provide question feedback here (optional):


es

Time Remaining: 00:49:09

24 of 65.
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous
window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?

A. O The test method does not use System. runAs to execute as a specific user.
B. oO The test method is calling an @future method.
c o The test method relies on existing data in the sandbox.

D. oO The test method has a syntax error in the code.

O Mark this item for later review,

Provide question feedback here (optional):


Time Remaining: 00:49:01

25 of 65. How many Accounts will be inserted by the following block of code?

for(Integer i = 0; 1 < 500; i++) {


Account a = new Account (Name='New Account ' + i);

insert a;

AOC 100

B.C) ie)
cg 150
D. oO 500

O Mark this iter for later review.

Provide auestion feedback here (optional):


Time Remaining: 00:48:34

25 of 65. How many Accounts will be inserted by the following block of code?

for(Integer i = 0; 1 < 500; i++) {


Account a = new Account (Name='New Account ' + i);

insert a;

AOC 100

B.C) ie)
oo ] 150
D. oO 500

O Mark this item for later review.

Provide question feedback here (optional):


Time Remaining: 00:48:28

26 of 65. Which two characteristics are true for Lightning Web Component custom events?
Choose 2 answers
A. O Data may be passed in the payload of a custom event using @wire decorated properties.
B. Data may be passed In the payload of a custom event using a property called detail.

Cs O By default a custom event only propagates to its immediate container and to its immediate child component.
D. By default a custom event only propagates to it’s immediate container.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:48:21

27 of 65. Cloud Kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.

At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order
management system in real time and displayed on the screen.

What should a developer use to satisfy this requirement?


A. O An outbound message
B. O An Apex REST class
G; oOo An Apex controller
D. © An invocable method

O Mark this item for later review.

Provide question feedback here (optional):


Time Remaining: 00:48:13

28 of 65. Where are two locations a developer can look to find information about the status of batch or future methods?
Choose 2 answers
A. O Developer Console
B. Apex Jobs

G3 O Paused Flow Interviews component


D. Apex Flex Queue

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:48:04

29 of 65. A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet:

public class CustomerOrder{


//code implementation

How can a developer use the OrderRequest class within the CustomerOrder class?
A O @Extends (class="OrderRequest"}

public class CustomerOrder

B.C) public class CustomerOrder implements Order

oT © ] public class CustomerOrder extends OrderRequest

D. O @Implements (class="OrderRequest")
public class Customerorder

MO) Marl thie itars far Istar raviaw


Time Remaining: 00:47:47

30 of 65. What is the value of the Trigger.old context variable in a before insert trigger?
A. fe} An empty list of sObjects
B. O Undefined
; oO null

D, O A list of newly created sObjects without IDs

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


public static void insertAccounts(List<Account> theseAccounts) {
for (Account thisAccount : theseAccounts) {
if (thisAccount.website == null) {
thisAccount.website = ‘https://www.demo.com';

}
update theseAccounts;

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?
A. oO Implement the upsert DML statement.
B, O Implement Change Data Capture.
S fe} Implement a try/catch block for the DML.
D. O Remove null items from the list of Accounts.
epee

Time Remaining: 00:46:56

33 of 65. A developer wants to import 500 Opportunity records into a sandbox.

Why should the developer choose to use Data Loader instead of Data Import Wizard?
A. O Data Loader automatically relates Opportunities to Accounts.
B. O Data Loader runs from the developer's browser.
Cc o Data Import Wizard does not support Opportunities.

D. O Data Import Wizard can not import all 500 records,

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


34 of 65.
A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a
number of factors.

What is the correct definition of the Apex method?

AC @InvocableMethod
global List<List<Recommendation>> getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

B. © @InvocableMethod
global Recommendation getLevel(ContactWrapper input)

{ /*implementation*/ }

& o @InvocableMethod
global static ListRecommendation getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

a @) @InvocableMethod
global static List<List<Recommendation>> getLevel (List<ContactWrapper> input)
34 of 65.
A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a
number of factors.

What is the correct definition of the Apex method?

AC @InvocableMethod
global List<List<Recommendation>> getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

B. © @InvocableMethod
global Recommendation getLevel(ContactWrapper input)

{ /*implementation*/ }

& o @InvocableMethod
global static ListRecommendation getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

a @) @InvocableMethod
global static List<List<Recommendation>> getLevel (List<ContactWrapper> input)
34 of 65.
A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a
number of factors.

What is the correct definition of the Apex method?

AC @InvocableMethod
global List<List<Recommendation>> getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

B. © @InvocableMethod
global Recommendation getLevel(ContactWrapper input)

{ /*implementation*/ }

& o @InvocableMethod
global static ListRecommendation getLevel (List<ContactWrapper> input)
{ /*implementation*/ }

a @) @InvocableMethod
global static List<List<Recommendation>> getLevel (List<ContactWrapper> input)
Time Remaining: 00:44:52

35 of 65. Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript
button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?


A. oO Validation rules
B, O Apex triggers

c, O Record triggered flows


D. oO Quick Actions

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:44:37

35 of 65. Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript
button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?


A. oO Validation rules
B, O Apex triggers
c: oO Record triggered flows
D. oOo Quick Actions

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:44:30

36 of 65. Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy
the code and associated configurations to the Production environment.

What is the recommended process for deploying the code and configurations to Production?
A. oO Use the Force.com IDE to deploy the Apex code and Lightning Components.
B. O Use the Ant Migration Tool to deploy the Apex cade and Lightning Components.

ec, O Use a change set to deploy the Apex code and Lightning Components.
D. oOo Use Salesforce CLI to deploy the Apex code and Lightning Components.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Review All @ Submit Exam
es

Time Remaining: 00:44:22

37 of 65. In the following example, which sharing context will myMethod execute when it is invoked?

public Class myClass {


public void myMethod() { /* implementation */ }

A. O Sharing rules will be enforced by the instantiating class.


B, O Sharing rules will be enforced for the running user.

: O Sharing rules will not be enforced for the running user.


D. fe} Sharing rules will be inherited from the calling context.

O Mark this item for later review.

Provide question feedback here (optional):


epee

Time Remaining: 00:44:15

38 of 65. What are two considerations for deploying from a sandbox to production?
Choose 2 answers
A. At least 75% of Apex code must be covered by unit tests.
B. O Unit tests must have calls to the System.assert method.

CG; O Should deploy during business hours to ensure feedback can be quickly addressed.
D. All triggers must have at least one line of test coverage.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:44:07

39 of 65. A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
A. vsCode
B. SFDX CLI
[or 0 Developer Console

D.-) Change Sets

O Mark this item for later review,

Provide question feedback here (optional):


Time Remaining: 00:44:00

40 of 65. Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently
this page is failing with a view state limit because some of the customers rent over 10,000 containers.

What should a developer change about the Visualforce page to help with the page load errors?

A. oO Implement pagination with an OffsetController.

B. o Implement pagination with a StandardSetController.


Led O Use JavaScript remoting with SOQL Offset.

D. oO Use lazy loading and a transient List variable.

O Mark this item for later review.

Provide question feedback here (optional):

f
Time Remaining: 00:43:53

41 of 65. Universal Containers decides to use purely declarative development to build out a new Salesforce application.

Which two options can be used to build out the business logic layer for this application?

Choose 2 answers
A. Record-Triggered Flow
B. O Batch Jobs
[or 0 Remote Actions

dg Validation Rules

O Mark this item for later review,

Provide question feedback here (optional):


ee em ee ep

Time Remaining: 00:43:46

42 of 65. A custom object Trainer__c has a lookup field to another custom object Gym__c.

Which SOQL query will get the record for the Viridian City Gym and all it's trainers?
A. (©) SELECT ID FROM Trainer_c WHERE Gym_r.Name = 'Viridian City Gym'
ae) SELECT Id, (SELECT Id FROM Trainer
oc) FROM Gym_c WHERE Name = ‘Viridian City Gym"

°.@ SELECT Id, (SELECT Id FROM Trainers _r) FROM Gym_c WHERE Name = ‘Viridian City Gym'

D.C) SELECT Id, (SELECT Id FROM Trainers _c) FROM Gym_c WHERE Name = 'Viridian City Gym'

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:43:39

43 of 65. Which three resources in an Aura component can contain JavaScript functions?
Choose 3 answers
A. Style
5.@ Renderer
cg Controller
D.1.) Design
E. Helper

O Mark this item for later review.

Provide question feedback here (optional):

Dlasea Deaviida Paadhacl hara


es

Time Remaining: 00:43:32

44 of 65. A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an
OrderlItem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.

What should a developer do to allow their code to move some existing OrderItem records to a new Order record?
A. O Add without sharing to the Apex class declaration.
B. O Change the master-detail relationship to an external lookup relationship.

a O Create a junction object between OrderItem and Order.


D. oO Select the Allow reparenting option on the master-detail relationship.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:43:26

45 of 65. Which three statements are accurate about debug logs?


Choose 3 answers
A. Debug logs can be set for specific users, classes, and triggers.
B. System debug logs are retained for 24 hours.

Cs O Only the 20 most recent debug logs for a user are kept.
D. O Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
E. The maximum size of a debug log is 5 MB.

O Mark this item for later review,

Provide question feedback here (optional):

Dlasea Deaviida Paadhacl hara


ee ee

Time Remaining: 00:43:18

46 of 65. What does the Lightning Component framework provide to developers?


A. oO Support for Classic and Lightning UIs
B. Ce] Prebuilt components that can be reused

G; O Templates to create custom components

D. O Extended governor limits for applications

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:43:10

47 of 65. An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.

How can this be achieved?


A O Write a trigger on the Opportunity object and use tree sorting to sum the amount for all related child objects under the Opportunity.
B. oO Use the Streaming API to create real-time roll-up summaries.
Gi o Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity.

D. O Use the Metadata API to create real-time roll-up summaries.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


if (isOK == false && theString == 'Hello'){
x = 1;

} else if (isOK == true && theString == '"Hello') {


x = 2;
} else if (isOK != null && theString == 'Hello') {
x = 3;
} else {

x = 4;

Based on this code, what is the value of x?

AO 3
B.C 2
on © Tad
nm
et

Time Remaining: 00:42:48

49 of 65. Which two actions may cause triggers to fire?


Choose 2 answers
A. O Changing a user's default division when the transfer division option is checked
B. Updates to FeedItem

Cs Cascading delete operations


D. O Renaming or replacing a picklist entry

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:42:42

50 of 65. Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order
records will be imported into Salesforce.

How should the Order Number field be defined in Salesforce?


A. oO Indirect Lookup
B. @ External ID and Unique

& O Direct Lookup


LT@) Lookup

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:42:36

51 of 65. A developer created a trigger on a custom object. This custom object also has some dependent pick lists.

According to the order of execution rules, which step happens first?


A fe} The original record is loaded from the database.
B. O System validation is run for maximum field lengths.
Cc. oO Old values are overwritten with the new record values.

D. O JavaScript validation is run in the browser,

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


es

Time Remaining: 00:42:28

52 of 65. Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with
Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see
Accounts they do not own.

What should the developer use to enforce sharing permissions for the currently logged in user while using the custom search tool?
A. o Use the with sharing keyword on the class declaration.

B. O Use the without sharing keyword on the class declaration.


& O Use the userInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

D. oO Use the schema describe calls to determine if the logged-in user has access to the Account object.

O Mark this item for later review.

Provide question feedback here (optional):

f
Time Remaining: 00:42:20

53 of 65. Universal Containers has a support process that allows users to request support from its engineering team using a custom object,
Engineering Support c.

Users should be able to associate multiple Engineering Support __c records to a single Opportunity record. Additionally, aggregate information
about the Engineering Support _c records should be shown on the Opportunity record.

Which relationship field should be implemented to support these requirements?


A O Lookup field from Opportunity to Engineering _support__c
B. O Master-detail field from Engineering Support__c to Opportunity

Gc, o Master-detail field from Opportunity to Engineering Support oc


D. O Lookup field from Engineering Support __c to Opportunity

O Mark this item for later review.


Time Remaining: 00:42:14

54 of 65. A developer is creating an app that contains multiple Lightning web components.

One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent
component must be alerted so it can navigate to the next page.

How should this be accomplished?


A. O Update a property on the parent.
B. O Call a method in the Apex controller.

c. oO Fire a notification.
D. o Create a custom event.

O Mark this item for later review.

Provide question feedback here (optional):


et a

Time Remaining: 00:42:08

55 of 65. Which annotation exposes an Apex class as a RESTful web service?


A. O @RemoteAction

B. Ce] @RestResource (urlMapping='/myService/*"')

G. O @HttpInvocable

D. O @Aurabnabled(cacheable=true)

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:42:01

56 of 65. Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job
object that represents a job. Each applicant may apply for more than one job.

What should a developer implement to represent that an applicant has applied for a job?
A. o Junction object between Applicant and Job
B. O Lookup field from Applicant to Job

G O Master-detail field from Applicant to Job


D. O Formula field on Applicant that references Job

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:41:54

57 of 65. A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debitAmount'
should not be able to change once a value is assigned.

In which two ways can the developer declare the variables to ensure their value can only be assigned one time?
Choose 2 answers
A. O Use the static keyword and assign its value in a static initializer.
B. Use the final keyword and assign its value in the class constructor.
Cc; Use the final keyword and assign its value when declaring the variable.
D. O Use the static keyword and assign its value in the class constructor.

O Mark this item for later review.


Spe

Time Remaining: 00:41:48

58 of 65.
Which scenario is valid for execution by unit tests?

A O Execute anonymous Apex as a different user.


B. oO Generate a Visualforce PDF with getcontentaAsPDF ().

Cc, O Load data from a remote site with a callout.


D. o Set the created date of a record using a system method.

O Mark this item for later review,

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:41:42

59 of 65. Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their
code to different environments they often have failures. They decide to set up Continuous Integration (CI).

What should the UC development team use to automatically run tests as part of their CI process?
A. o Salesforce CLI
B. oO Visual Studio Code

as O Force.com Toolkit
D. O Developer Console

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:41:36

60 of 65. A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed
Lost if the lost reason is blank.

Which automation allows the developer to satisfy this requirement in the most efficient manner?
A. O An Apex trigger on the Opportunity object
B. o An error condition formula on a validation rule on Opportunity

G O A record trigger flow on the Opportunity object


D: O An approval process on the Opportunity object

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


Time Remaining: 00:41:30

61 of 65. A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided
that the trigger should be tested with 200 account records with unique names.

What two things should be done to create the test data within the unit test with the least amount of code?
Choose 2 answers
A. O Use the @isTest (seeAllData=true) annotation in the test class.
B. 0 Use the @isTest (isParallel=true) annotation in the test class.

C. Create a static resource containing test data.


D. Use Test. loadData to populate data in your test methods.

O Mark this item for later review.


Time Remaining: 00:41:24

62 of 65. A business has a proprietary Order Management System (OMS) that creates orders from its website and fulfills the orders. When the
order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on
the order. As the order goes through different stages in the OMS, the integration also updates it in Salesforce.

The business notices that each update from the OMS creates a new order record in Salesforce.

Which two actions should prevent the duplicate order records from being created in Salesforce?
Choose 2 answers
A. Use the order number from the OMS as an external ID.
B. Ensure that the order number in the OMS is unique.
c. O Use the email on the contact record as an external ID.
D. O Write a trigger on the Order object to delete the duplicates.
Time Remaining: 00:41:10

63 of 65. Which three data types can a SOQL query return?


Choose 3 answers
A. O Double
B. O Long

Gi sObject
dg Integer
E. List

O Mark this item for later review,


0) Battery saver

Provide question feedback here (optional):


Battery saver is on
Disses Deda Pasdhes hare Consider plugging in your device.
Time Remaining: 00:40:59

64 of 65. A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.

After deploying 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 in the outside system to stop, requiring a manual
restart.

Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task
insert statement, so that manual restarts are not needed?
A. o Use the Database method with allornone set to false.
B. oO Deactivate the trigger before the integration runs.
Cc. O Remove the Apex class from the integration user's profile.
D. O Use a try-catch block after the insert statement.

O Mark this item for later review,


Time Remaining: 00:40:52

65 of 65. Which two statements are true about using the @testSetup annotation in an Apex test class?
Choose 2 answers
A. O Records created in the test setup method cannot be updated in individual test methods.
B. In a test setup method, test data is inserted once and made available for all test methods In the test class.

Cs O A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.
D. The @testSetup annotation is not supported when the @isTest(SeeAllData=True) annotation is used.

O Mark this item for later review.

Provide question feedback here (optional):

Please Provide Feedback here...


un low (a) rm
I ay Ww

1A
ee
(a) jo io iO FEE BEE
EE Ee
Answers
ASSSSSIICUIL
QUIT

Number of Items Answered:


Number of Items Unanswered:
y

Number of Items Marked for Review:

un wn lu (a) I~ i)
fs iO co i es)
oO
\~]
a4. BEI a) Ma [a] 44 Lg aa i
oO In
65

lua ey ad
ko Gu
iO
5i.A

joo \wJ p>


rd
4a: z EERE aa

(ay BeRPE
oy IS inmm .F
PEPE BBE oO FERRE
Time Taken: 65 minutes of 105 minutes total
Result: Pass

Topic Percentage Correct

Developer Fundamentals 92%

Process Automation and Logic 72%

User Interface 92%

Testing, Debugging, and Deployment 92%

Congratulations! You have successfully completed the certification exam to become a Salesforce Certified Platform Developer I, Welcome to the Salesforce worldwide community of Certified
Professionals!

Exit Test

You might also like