Weekend Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Platform Developer I (SP23) Question and Answers

Platform Developer I (SP23)

Last Update Sep 24, 2023
Total Questions : 167

We are offering FREE PDI Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare PDI free exam questions and then go for complete pool of Platform Developer I (SP23) test questions that will help you more.

PDI pdf

PDI PDF

$35  $99.99
PDI Engine

PDI Testing Engine

$42  $119.99
PDI PDF + Engine

PDI PDF + Testing Engine

$56  $159.99
Questions 1

A developer created a Lightning web component called statusComponent to be inserted into the Account record page.

Which two things should the developer do to make the component available?

Options:

A.  

Add true to the statusComponent.js-meta ml file.

B.  

Add lighting _RecordPage to the statusComponent.js-meta ml file.

C.  

Add < masterLabel>Account to the statusComponent.js-meta ml file.

D.  

Add Lightning_RecordPage to the statusComponent.js file.

Discussion 0
Questions 2

A developer is implementing an Apex class for a financial system. Within the class, the

variables ‘creditAmount’ and ‘debtAmount’ 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

Options:

A.  

Use the static keyword and assign its value in the class constructor.

B.  

Use the final keyword and assign its value in the class constructor.

C.  

Use the static keyword and assign its value in a static initializer.

D.  

Use the final keyword and assign its value when declaring the variable.

Discussion 0
Questions 3

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?

Options:

A.  

An Apex controller

B.  

An Apex REST class

C.  

An outbound message

D.  

An invocable method

Discussion 0
Questions 4

What is the result of the following code?

Options:

A.  

The record will not be created and a exception will be thrown.

B.  

The record will be created and a message will be in the debug log.

C.  

The record will not be created and no error will be reported.

D.  

The record will be created and no error will be reported.

Discussion 0
Questions 5

A developer created these three Rollup Summary fields in the custom object, Project__c:

The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.

Which should the developer use to implement the business requirement in order to minimize maintenance overhead?

Options:

A.  

Record-triggered flow

B.  

Formula field

C.  

Apex trigger

D.  

Field Update actions

Discussion 0
Questions 6

Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?

Options:

A.  

Add a Master-Detail field on the Account object to the Global Address object

B.  

Add a Master-Detail field on the Global Address object to the Account object.

C.  

Add a Lookup field on the Account object to the Global Address object.

D.  

Add a Lookup field on the Global Address object to the Account object

Discussion 0
Questions 7

A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:

How can a developer use the Laptop Interface within the Silvertaptop class?

Options:

A.  

@Extends(class=Laptop'')

public class SilverLaptop

B.  

public calss SilverLaptop extends Laptop

C.  

@Interface (class=''Laptop'')

public class SilverLaptop

D.  

public class Silverlaptop implements Laptop

Discussion 0
Questions 8

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.

In which two ways can this be accomplished?

Choose 2 answers

Options:

A.  

The parent component can use a custom event to pass the data to the child component,

B.  

The parent component can use the Apex controller class to send data to the child component.

C.  

The parent component can invoke a method in the child component

D.  

The parent component can use a public property to pass the data to the child component.

Discussion 0
Questions 9

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

Options:

A.  

Production

B.  

Dev Hub

C.  

Environment Hub

D.  

Sandbox

Discussion 0
Questions 10

The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.

What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

Options:

A.  

Use a formula field.

B.  

Use a validation rule.

C.  

Use Lead Conversation field mapping.

D.  

Create an after trigger on Lead.

Discussion 0
Questions 11

A developer needs to have records with specific field values in order to test a new Apex class.

What should the developer do to ensure the data is available to the test?

Options:

A.  

Use Anonymous Apex to create the required data.

B.  

Use Test.loadDataO < > and reference a CSV file in a static resource.

C.  

Use SOQL to query the org for the required data.

D.  

Use Test.loadDataO and reference a JSON file in Documents.

Discussion 0
Questions 12

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.

Which approach should the developer use to be sure that the Apex class is working according tospecification?

Options:

A.  

Create a test class to execute the business logic and run the test in the Developer Console.

B.  

Include a savepoint and Database,rollback.

C.  

Include a try/catch block to the Apex class.

D.  

Run the code in an Execute Anonymous block n the Deceloper Consider.

Discussion 0
Questions 13

Which three operations affect the number of times a trigger can fire?

Choose 3 answers

Options:

A.  

Process Flows

B.  

Workflow Rules

C.  

Criteria-based Sharing calculations

D.  

Email messages

E.  

Roll-Up Summary fields

Discussion 0
Questions 14

A business has a proprietary Order Management System (OMS) that creates orders from their 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. It is noticed that each update from the OMS creates a new order record in Salesforce.

Which two actions will prevent the duplicate order records from being created in Salesforce?

Choose 2 answers

Options:

A.  

Ensure that the order number in the OMS is unique.

B.  

Use the order number from the OMS as an external ID.

C.  

Use the email on the contact record as an external ID.

D.  

Write a before trigger on the order object to delete any duplicates.

Discussion 0
Questions 15

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 it's trainers?

Options:

A.  

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'

B.  

SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'

C.  

SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'

D.  

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'

Discussion 0
Questions 16

A primaryid_c custom field exists on the candidate_c custom object. The filed 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 a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.

Which technique should the developer implement to streamline the data upload?

Options:

A.  

Create a Process Builder on the Candidate_c object to map the records.

B.  

Create a before Insert trigger to correctly map the records.

C.  

Update the primaryid__c field definition to mark it as an External Id

D.  

Upload the CSV into a custom object related to Candidate_c.

Discussion 0
Questions 17

The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?

Options:

A.  

Create the Picklist on each object and use a Global Picklist Value Set containing the Values.

B.  

Create the Picklist on each object as a required field and select "Display values alphabeticaly, not in the order entered".

C.  

Create the Picklist on each object and select "Restrict picklist to the values defined in the value set".

D.  

Create the Picklist on each and add a validation rule to ensure data integrity.

Discussion 0
Questions 18

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.

Which two actions should the developer take to fix the code segment shown above?

Choose 2 answers

Options:

A.  

Check if all the required fields for Opportunity are being added on creation.

B.  

Use Database.query to query the opportunities.

C.  

Move the DML that saves opportunities outside the for loop.

D.  

Query for existing opportunities outside the for loop.

Discussion 0
Questions 19

A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.

What to do now?

Options:

A.  

The method must be decorated with (cacheable=true).

B.  

The method must be decorated with @AuraEnabled.

C.  

The method must return a JSON Object.

D.  

The method must return a String of a serialized JSON Array.

Discussion 0
Questions 20

For which three items can 2 trace flag be configured?

Choose 3 answers

Options:

A.  

Flow

B.  

Apex Class

C.  

User

D.  

Apex Trager

E.  

Visualforce

Discussion 0
Questions 21

Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.

Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to ‘’;Waiting on customer’’ The …. Administrator wants to ensure the solution used is bulk safe.

Which two automation tools should a developer recommend to meet these business requirements?

Choose 2 answers

Options:

A.  

Scheduled Flow

B.  

Einstein Next Best Action

C.  

Record_Triggered Flow

D.  

Process Builder

Discussion 0
Questions 22

A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?

Options:

A.  

Developer sandboxes

B.  

Scratch orgs

C.  

Full Copy sandboxes

D.  

Developer orgs

Discussion 0
Questions 23

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

Which approach can efficiently generate the required data for each unit test?

Options:

A.  

Use &TestSteup with a void method.

B.  

Create test data before Test.startTest in the unit test.

C.  

Create a mock using the Stub APL.

D.  

Add $ IsTest (seeAllDatatrue) at the start of the unit test class.

Discussion 0
Questions 24

Which two sfdx commands can be used to add testing data to a Developer sandbox?

Options:

A.  

Forced: data:bulk:upsert

B.  

Forced: data: object :upsert

C.  

Forced: data: tree: upsert

D.  

Forced: data:async:upsert

Discussion 0
Questions 25

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?

Options:

A.  

Public class CreditcardPayment extends Payment {

public override void makePayment(Decimal amount) { /*implementation*/ }

}

B.  

Public class CreditCardPayment implements Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

C.  

Public class CreditCardPayment extends Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

D.  

Public class CreditCardPayment implements Payment {

public override void makePayment(Decimal amount) { /*Implementation*/ }

}

Discussion 0
Questions 26

A developer must create a lightning component that allows users to input contact record

information to create a contact record, including a salary__c custom field. what 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 have the correct field levelpermissions on salary__C?

Options:

A.  

B.  

C.  

D.  

Discussion 0
Questions 27

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?

Options:

A.  

Use a CEILING formula on each of the Latest availability date fields.

B.  

Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.

C.  

Use a LATEST formula on each of the latest availability date fields.

D.  

Use a Max Roll-Up Summary field on the Latest availability date fields.

Discussion 0
Questions 28

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.

What should be built to implement this feature?

Options:

A.  

Account custom trigger

B.  

Account approval process

C.  

Account assignment rule

D.  

Account workflow rule

Discussion 0
Questions 29

A developer wants to improve runtime performance of Apex calls by caching result on the client.

What is the most efficient way to implement this and follow best practices?

Options:

A.  

Decorate the server-side method with @AuraEnabled (total-true).

B.  

Call the setStoeable () method on the action in the javaScript client-sidecode.

C.  

Decorate the server-side method with @AuraEnabled (cacheable-true.

D.  

Set a ciikie in the browser for use upon return to the page.

Discussion 0
Questions 30

A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?

Options:

A.  

The test method has a syntax error in the code.

B.  

The test method relies on existing data in the sandbox.

C.  

The test method is calling an @future method.

D.  

The test method does not use System.runAs to execute as a specific user.

Discussion 0
Questions 31

When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values another custom object object called.

What is the optimal way to Implement this feature?

Options:

A.  

Build a flow with flow Builder.

B.  

Build an account assignment rule.

C.  

Create a formula field.

D.  

Create an account approval process.

Discussion 0
Questions 32

What does the Lightning Component framework provide to developers?

Options:

A.  

Extended governor limits for applications

B.  

Prebuilt component that can be reused.

C.  

Templates to create custom components.

D.  

Support for Classic and Lightning UIS.

Discussion 0
Questions 33

In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers

Options:

A.  

Self-contained and reusable units of an application

B.  

Rich component ecosystem

C.  

Automatic code generation

D.  

Server-side run-time debugging

Discussion 0
Questions 34

AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object.

The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations.

What should a developer add to fulfill this requirement?

Options:

A.  

Order_shipment_Group_c object and master-detail field on order_Line_c

B.  

Order_shipment_Group_c object and master-detail field on order_c

C.  

Order_shipment_Group_c object and master-detail field to order_c and Order Line_c

D.  

Order_shipment_Group_c object and master-detail field on order_shipment_Group_c

Discussion 0
Questions 35

For which three items can a trace flag be configured?

Choose 3 answers

Options:

A.  

Process Builder

B.  

Visualforce

C.  

Apex Class

D.  

Apex Trigger

E.  

User

Discussion 0
Questions 36

In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?

Options:

A.  

On the Paused Row Interviews related List for a given record

B.  

In the Paused Interviews section of the Apex Flex Queue

C.  

In the system debug log by Altering on Paused Row Interview

D.  

On the Paused Row Interviews component on the Home page

Discussion 0
Questions 37

Which two statements are true about using the @testSetup annotation in an Apex test class?

Choose 2 answers

Options:

A.  

Records created in the test setup method cannot be updated in individual test methods.

B.  

Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used.

C.  

Test data is inserted once for all test methods in a class.

D.  

A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.

Discussion 0
Questions 38

Which two are phases in the Aura application event propagation framework? Choose 2 answers

Options:

A.  

Emit

B.  

Control

C.  

Default

D.  

Bubble

Discussion 0
Questions 39

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 click a button called.. component, the parent component must be alerted so it can navigate to the next page.

How should this be accomplished?

Options:

A.  

Fire a notification.

B.  

Update a property on the parent.

C.  

Call a method in the Apex controller.

D.  

Create a custom event.

Discussion 0
Questions 40

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.

What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

Options:

A.  

1

B.  

3

C.  

4

D.  

2

Discussion 0
Questions 41

Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.

Which consideration should the developer be aware of when deciding between SOQL and SOSL?

Choose 2 answers

Options:

A.  

SOSL is able to return more records.

B.  

SOQL is faster for text searches.

C.  

SOSL is faster for tent searches.

D.  

SOQL is able to return more records.

Discussion 0
Questions 42

A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script.

Following best practices, what is the optimal approach to satisfy this requirmrnt?

Options:

A.  

Flow Builder

B.  

Approvals

C.  

Apex trigger

D.  

Einstein Next Best Action

Discussion 0
Questions 43

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 permission for the currently logged-in user while using the custom search tool?

Options:

A.  

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

B.  

Use the without sharing keyword on the class declaration.

C.  

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

D.  

Use the with sharing keyword on the class declaration.

Discussion 0
Questions 44

How does the Lightning Component framework help developers implement solutions faster?

Options:

A.  

By providing an Agile process with default steps

B.  

By providing code review standards and processes

C.  

By providing device-awareness for mobile and desktops

D.  

By providing change history and version control

Discussion 0
Questions 45

Given the following Anonymous Block:

Which one do you like?

What should a developer consider for an environment that has over 10,000 Case records?

Options:

A.  

The transaction will fail due to exceeding the governor limit.

B.  

The try/catch block will handle any DML exceptions thrown.

C.  

The transaction will succeed and changes will be committed.

D.  

The try/catch block will handle exceptions thrown by governor limits.

Discussion 0
Questions 46

Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV’s package namespace.

Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

Options:

A.  

Declare the class and method using the public access modifier.

B.  

Declare the class as global and use the public access modifier on the method.

C.  

Declare the class as public and use the global access modifier on the method.

D.  

Declare the class and method using the global access modifier.

Discussion 0
Questions 47

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

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

Options:

A.  

VS Code

B.  

SFDX CLI

C.  

Change Sets

D.  

Developer Console

Discussion 0
Questions 48

A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?

Options:

A.  

ApexPages.currentPage() .getParameters() .get('url_param')

B.  

ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()

C.  

String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))

D.  

String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))

Discussion 0