Winter Special Discount 60% Offer - Ends in 0d 00h 00m 00s - Coupon code: brite60

ExamsBrite Dumps

Salesforce Certified Platform Developer I (SU24) Question and Answers

Salesforce Certified Platform Developer I (SU24)

Last Update Nov 5, 2024
Total Questions : 174

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 Salesforce Certified Platform Developer I (SU24) test questions that will help you more.

PDI pdf

PDI PDF

$40  $99.99
PDI Engine

PDI Testing Engine

$48  $119.99
PDI PDF + Engine

PDI PDF + Testing Engine

$64  $159.99
Questions 1

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.

Which is the correct implementation?

A)

B)

Options:

A.  

Option A

B.  

Option B

Discussion 0
Questions 2

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

Options:

A.  

Renderer

B.  

Controller

C.  

style

D.  

Helper

E.  

Design

Discussion 0
Questions 3

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 PoataliCodeToTimezcone o custom object.

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

Choose 2 answers

Options:

A.  

Quick actions

B.  

Account trigger

C.  

Approval process

D.  

Fast Field Updates record-triggered flow

Discussion 0
Questions 4

Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.

When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce

page.

What can the developer use to meet this business requirement?

Options:

A.  

Controller extension

B.  

Custom controller

C.  

Apex trigger

D.  

Validation rule

Discussion 0
Questions 5

What are two use cases for executing Anonymous Apex code?

Choose 2 answers

Options:

A.  

To run a batch Apex class to update all Contacts

B.  

To delete 15,000 inactive Accounts in a single transaction after a deployment

C.  

To add unit test code coverage to an org

D.  

To schedule an Apex class to run periodically

Discussion 0
Questions 6

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

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 7

While writing an Apex class, a developer wants to make sure that 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 to specifications?

Options:

A.  

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

B.  

Run the code in an Execute Anonymous block in the Developer Console.

C.  

Include a savepoint and Database.rollback().

D.  

Include a try/catch block to the Apex class.

Discussion 0
Questions 8

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 this component available?

Choose 2 answers

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 9

How should a developer write unit tests for a private method in An Apex class?

Options:

A.  

Add a test method in the Apex class,

B.  

Use the SeeAllData annotation.

C.  

Use the @TestVisible annotation.

D.  

Mark the Apex class as global.

Discussion 0
Questions 10

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, 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 faster for text searches.

B.  

SOQL is faster for text searches.

C.  

SOSL is able to return more records.

D.  

SOQL is able to return more records.

Discussion 0
Questions 11

A business has a proprietary Order Management System (QMS) 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?

Options:

A.  

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

B.  

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

C.  

Write a trigger on the Order object to delete the duplicates.

D.  

Ensure that the order number in the OMS is unique.

Discussion 0
Questions 12

What should a developer use to fix a Lightning web component bug in a sandbox?

Options:

A.  

Execute Anonymous

B.  

Developer Console

C.  

Force.com IDE

D.  

VS Code

Discussion 0
Questions 13

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?

Options:

A.  

Lookup field from Opportunity to Engineering_Support__c

B.  

Master-detail field from Engine=ring Support__c to Opportunity

C.  

Master-detail field from Opportunity to Engineering_Supports__c

D.  

Lookup field from Engineering Support__c to Opportunity

Discussion 0
Questions 14

Which two are best practices when it comes to Aura component and application event handling?

Choose 2 answers

Options:

A.  

Try to use application events as opposed to component events.

B.  

Use component events to communicate actions that should be handled at the application level.

C.  

Handle low-level events in the event handler and re-fire them as higher-level events.

D.  

Reuse the event logic in a component bundle, by putting the fogic in the helper.

Discussion 0
Questions 15

A developer deployed a trigger to update the status__c of Assets related to an Account when the Account’s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.

What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?

Options:

A.  

Add List assets = [SELECT Id, Status_c FROM Asset WHERE AccountId = :acctId) to line 14 and iterate over the assets list in the for loop on line 15.

B.  

Move all of the logic to a gueueabs class that queries for and updates the Assets and call it from the trigger.

C.  

Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.

D.  

Change the getAssecsTspdace method to process all Accounts in one call and call it outside of the £ox loop that starts on line 03.

Discussion 0
Questions 16

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?

Options:

A.  

Quick Actions

B.  

Validation rules

C.  

Record triggered flows

D.  

Apex triggers

Discussion 0
Questions 17

A custom object Trainer_ < has a lookup field to another custom object cym__ c.

Which SOQL query will get the record for the Viridian City Gym and all it's trainers?

Options:

A.  

SELECT Id; (SELECT Id FROM Trainers_r) 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 ¢ WHERE Gym__r.Name = 'Viridian City Gym'

D.  

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

Discussion 0
Questions 18

Which three statements are accurate about debug logs?

Choose 3 answers

Options:

A.  

A System debug logs are retained for 24 hours.

B.  

Only the 20 most recent debug logs for a user are kept.

C.  

Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

D.  

Debug logs can be set for specific users, classes, and triggers.

E.  

The maximum size of 3 debug log is 5 MB.

Discussion 0
Questions 19

When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers

Options:

A.  

Developer and Developer Pro sandboxes have different storage limits.

B.  

Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.

C.  

Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.

D.  

Data import wizard is an application that is instalied on your computer.

Discussion 0
Questions 20

Universal Containers (UC) processes orders in Salesforce in a custom object, ord=xr <. 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?

Options:

A.  

Callout from an Qfuture method called from a trigger

B.  

Callout from a Batchable class called from a scheduled job

C.  

Flow with a callout from an invocable method

D.  

Callout from a Queueable class called from a trigger

Discussion 0
Questions 21

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

Options:

A.  

Lightning component

B.  

Lightning action

C.  

Lightning flow

D.  

Lightning page

Discussion 0
Questions 22

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

Choose 2 answers

Options:

A.  

After-save record-triggered flow

B.  

Criteria-based sharing calculations

C.  

Email messages

D.  

Roll-up summary fields

Discussion 0
Questions 23

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?

Options:

A.  

Use the Force.com IDE to deploy the Apex code and Lightning Components.

B.  

Use the Ant Migration Tool to deploy the Apex code and Lightning Components.

C.  

Use a change set to deploy the Apex code and Lightning Components.

D.  

Use Salesforce CLI to deploy the Apex code and Lightning Components.

Discussion 0
Questions 24

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:

What are two ways the developer can update the method to prevent a SOQL injection attack?

Choose 2 answers

Options:

A.  

Use a regular expression expression on the parameter to remove special characters,

B.  

Use the escapeSingleQuotes method to sanitize the parameter before its use.

C.  

Use variable binding and replace the dynamic query with a static SOQL.

D.  

Use the @Readonly annotation and the with sharing keyword on the class

Discussion 0
Questions 25

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?

Options:

A.  

Master-detail field from Applicant to Job

B.  

Junction object between Applicant and Job

C.  

Formula field on Applicant that references Job

D.  

Lookup field from Applicant to Job

Discussion 0
Questions 26

Considering the following code snippet:

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Options:

A.  

Implement Change Data Capture,

B.  

Implement a try/catch block for the DML.

C.  

Implement the upsert DML statement.

D.  

Remove null items from the list of Accounts.

Discussion 0
Questions 27

A developer created a child Lightning web component nested inside a parent Lightning web component. The 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 public property to pass the data to the child component.

B.  

The parent component can invoke a public method in the child component.

C.  

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

D.  

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

Discussion 0
Questions 28

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

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

Options:

A.  

public class Silverlaptop extends Lapctop

B.  

public class Silverlaprop implementa Laptop

C.  

Extends (class="Laptop”) publiic claas Silverlaptcp

D.  

Interface (class="Laptop") public class Silverlaptop

Discussion 0
Questions 29

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

Options:

A.  

Read/Write access on the primary relationship

B.  

Read/Write access on the secondary relationship

C.  

Read/Write access on the junction object

D.  

Read access on the primary relationship

Discussion 0
Questions 30

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?

Options:

A.  

Use @TestSetup with a void method.

B.  

Create test data before Test.startTest {} in the unit test,

C.  

Add @TsTest (seeAllData=true) at the start of the unit test class.

D.  

Create a mock using the Stub API.

Discussion 0
Questions 31

developer must provide custom user interfaces when users edit a Contact either Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this functionality?

Options:

A.  

A Lightning component in Salesforce Classic and a Lightning component in Lightning Experience

B.  

A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience

C.  

A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

D.  

A Visualforce page in Salesforce Classic and a Lightning page In Lightning Experience

Discussion 0
Questions 32

Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, Job_Application__c acting as the detail.

Within the Job__c object, a custom multi-select picklist, Preferred Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.

Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred_Locations_ c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync if changes occur to the Contact's Mailing State.

What is the recommended tool a developer should use to meet the business requirement?

Options:

A.  

Roll-up summary field

B.  

Record-triggered flow

C.  

Formula field

D.  

Apex trigger

Discussion 0
Questions 33

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunitylLineltem trigger.

Which method allows access to the price book?

Options:

A.  

Use @IaTest (SeeAllData=true) and delete the existing standard price book,

B.  

Use Test.loadData() and a static resource to load a standard price book,

C.  

Use @TestVisible to allow the test method to see the standard price book.

D.  

Use Teat.getStandardPricebookId() to get the standard price book 1

D.  

Discussion 0
Questions 34

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?

Options:

A.  

Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.

B.  

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

C.  

Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.

D.  

Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.

Discussion 0
Questions 35

Given the following Apex statement:

What occurs when more than one Account is returned by the SOQL query?

Options:

A.  

The query fails and an error is written to the debug log.

B.  

An unhandled exception is thrown and the code terminates.

C.  

The variable, myaccount, is automatically cast to the List data type.

D.  

The first Account returned is assigned to myAccount,

Discussion 0
Questions 36

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?

Options:

A.  

Lightning Web Components

B.  

Visualforce

C.  

Flow

D.  

VUE JavaScript framework

Discussion 0
Questions 37

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

Options:

A.  

Use SOQL and the Tooling APL.

B.  

Use the Flow Properties page.

C.  

Use the Code Coverage Setup page.

D.  

Use the ApextestResult class.

Discussion 0
Questions 38

What are three characteristics of change set deployments?

Choose 3 answers

Options:

A.  

Change sets can deploy custom settings data.

B.  

Change sets can be used to transfer records.

C.  

Deployment is done in a one-way, single transaction.

D.  

Sending a change set between two orgs requires a deployment connection.

E.  

Change sets can only be used between related organization

Discussion 0
Questions 39

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.  

Apex trigger

B.  

Roll-up summary field

C.  

Formula field

D.  

Record-triggered flow

Discussion 0
Questions 40

What are two considerations for running a flow in debug mode? Choose 2 answers

Options:

A.  

Clicking Pause or executing a Pause element closes the flow and ends debugging.

B.  

Input variables of type record cannot be passed into the flow.

C.  

DML operations will be rolled back when the debugging ends.

D.  

Callouts to external systems are not executed when debugging a flow.

Discussion 0
Questions 41

A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations.

In this implementation scenario, which two options are part of the Controller according to the MVC architecture?

Choose 2 answers

Options:

A.  

HTML file

B.  

XML file

C.  

Apex class

D.  

JavaScript file

Discussion 0
Questions 42

For which three items can a trace flag be configured? Choose 3 answers

Options:

A.  

Visualforce

B.  

Apex Trigger

C.  

Apex Class

D.  

Flow

E.  

User

Discussion 0
Questions 43

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?

Options:

A.  

B.  

C.  

D.  

Discussion 0
Questions 44

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:

How many total accounts will be in the org after this code Is executed?

Options:

A.  

5

B.  

6

C.  

10

D.  

15

Discussion 0
Questions 45

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?

Options:

A.  

bubbles: true, composed: true

B.  

bubbles: true, composed: false

C.  

bubbles: false, composed: false

D.  

bubbles: false, composed: true

Discussion 0
Questions 46

A team of many developers work in their own individual orgs that have the same configuration as the production org.

Which type of org is best suited for this scenario?

Options:

A.  

Partner Developer Edition

B.  

Developer Edition

C.  

Developer Sandbox

D.  

Full Sandbox

Discussion 0
Questions 47

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?

Options:

A.  

Agile Development

B.  

Model-View-Controller (MVC)

C.  

Flux (view, action, dispatcher, and store)

D.  

Waterfall Model

Discussion 0
Questions 48

Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?

Options:

A.  

insert records

B.  

Database.insert (records, false)

C.  

Insert (records, false)

D.  

Database.insert(records, true)

Discussion 0
Questions 49

A developer identifies the following triggers on the Expense__c object:

The triggers process before delete, before insert, and before update events respectively.

Which two techniques should the developer implement to ensure trigger best practices are followed?

Choose 2 answers

Options:

A.  

Unify all three triggers in a single trigger on the expense__c object that includes all events.

B.  

Create helper classes to execute the appropriate logic when a record is saved.

C.  

Maintain all three triggers on the expense__c object, but move the Apex logic out of the trigger definition.

D.  

Unify the before insert and before update triggers and use Flow for the delete action.

Discussion 0
Questions 50

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?

Options:

A.  

Data Import Wizard does not support Opportunities.

B.  

Data Loader automatically relates Opportunities to Accounts.

C.  

Data Loader runs from the developer's browser,

D.  

Data Import Wizard can not import all 500 records.

Discussion 0
Questions 51

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.

Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 52

A developer must implement a checkpaymentpbrocaessox class that provides check processing payment capabilities that adhere to what is defined for payments in the paymentProcsssor Interface.

Which implementation is correct to use the paymenterocesscr interface class?

A)

B)

C)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

Discussion 0