Black Friday Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dm70dm

Hot Vendors

PDI Salesforce Certified Platform Developer I (SU24) Questions and Answers

Questions 4

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.

Buy Now
Questions 5

A developer creates a custom exception as shown below:

public class ParityException extends Exception. {}

What are two ways the developer can fire the exception in Apex? Choose 2 answers

Options:

A.

throw new ParityException() ;

B.

new parityException. ('parity does not match');

C.

throw new ParityException ('parity docs not match');

D.

new ParityExcaption () ;

Buy Now
Questions 6

Since Aura application events follow the traditional publish- subscribe model, which method is used to fire an event?

Options:

A.

registerEvent

B.

fireEvent ()

C.

emit{)

D.

fire()

Buy Now
Questions 7

A developer is creating a Lightning web component to show a list of sales records.

The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field.

How should this be enforced so that the component works for both users without showing any errors?

Options:

A.

Use with 8ECTOITYJ2WFORCED in the SOQL that fetches the data for the component.

B.

Use Lightning Locker Service to enforce sharing rules and field-level security.

C.

Use Lightning Data Service to get the collection of sales records.

D.

Use security.stripinaccessible to remove fields inaccessible to the current user.

Buy Now
Questions 8

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional

layer of validation using automation.

What would be the best solution for this requirement?

Options:

A.

Use an Approval Process to enforce the completion of a valid email address using an outbound message action,

B.

Submit a REST API Callout with a JSON payload and validate the fields on a third party system

C.

Use a custom Lightning Web component to make a callout to validate the fields on a third party system.

D.

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid

Buy Now
Questions 9

Which three Salesforce resources can be accessed from a Lightning web component?

Choose 3 answers

Options:

A.

All external libraries

B.

SVG resources

C.

Third-party web components

D.

Content asset files

E.

Static resources

Buy Now
Questions 10

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:

PDI Question 10

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

Options:

A.

5

B.

6

C.

10

D.

15

Buy Now
Questions 11

Which statement describes the execution order when triggers are associated to the same object and event?

Options:

A.

Triggers are executed in the order they are modified.

B.

Triggers are executed alphabetically by trigger name.

C.

Triggers are executed in the order they are created.

D.

Trigger execution order cannot be guaranteed.

Buy Now
Questions 12

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?

Options:

A.

The test method is calling an @future method.

B.

The test method relies on existing data in the sandbox.

C.

The test method has a syntax error in the code.

D.

The test method does not use Sysetem.runas= to execute as a specific user.

Buy Now
Questions 13

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:

PDI Question 13

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

Buy Now
Questions 14

Which two actions may cause triggers to fire?

Choose 2 answers

Options:

A.

Cascading delete operations

B.

Changing a user's default division when the transfer division option is checked

C.

Updates to FeedItem

D.

Renaming or replacing a picklist entry

Buy Now
Questions 15

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 salarv < field functions as a currency Input and is only viewable and editable by users that have the correct field level permissions on salary _c?

A)

PDI Question 15

B)

PDI Question 15

C)

PDI Question 15

D)

PDI Question 15

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 16

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?

A)

PDI Question 16

B)

PDI Question 16

C)

PDI Question 16

D)

PDI Question 16

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 17

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

Buy Now
Questions 18

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 1D.

Buy Now
Questions 19

A developer identifies the following triggers on the Expense__c object:

PDI Question 19

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.

Buy Now
Questions 20

Which code displays the contents of a Visualforce page as a PDF?

A)

PDI Question 20

B)

PDI Question 20

C)

PDI Question 20

D)

PDI Question 20

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 21

What does the Lightning Component framework provide to developers?

Options:

A.

Prebuilt components that can be reused

B.

Support for Classic and Lightning Uls

C.

Extended governor limits for applications

D.

Templates to create custom components

Buy Now
Questions 22

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?

Options:

A.

Add a new Update Records element.

B.

Add a new Get Records element.

C.

Add a new Roll Back Records element.

D.

Add a new Create Records element.

Buy Now
Questions 23

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

Buy Now
Questions 24

A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable.

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

Options:

A.

Account,iaDelecable ()

B.

accountRec.a0biectType.iaDeletable()

C.

accountRec.islCelezable()

D.

Schema.sObjectType.Account,isDeletetable() Account,isDelecable ()

Buy Now
Questions 25

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

A)

PDI Question 25

B)

PDI Question 25

C)

PDI Question 25

D)

PDI Question 25

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 26

What are three capabilities of the tag when loading JavaScript resources in Aura components?

Choose 3 answers

Options:

A.

Specifying loading order

B.

One-time loading for duplicate scripts

C.

Loading files from Documents

D.

Loading externally hosted scripts

E.

Loading scripts in parallel

Buy Now
Questions 27

Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.

Which two strategies can a developer use to accomplish this?

Options:

A.

Use a validation rule.

B.

Use a before-save Apex trigger.

C.

Use an automatically launched Approval Process.

D.

Use an auto-response rule.

Buy Now
Questions 28

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

Options:

A.

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

B.

Create a static resource containing test data.

C.

Use the @isTest (isParallel=true) annotation in the test class.

D.

Use the @isTest (seeAllData=true) annotation in the test class.

Buy Now
Questions 29

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

Options:

A.

Aura Components

B.

Visualforce Pages

C.

Lightning Web Components

D.

Visualforce Components

Buy Now
Questions 30

Which two characteristics are true for Lightning Web Component custom events? Choose 2 answers

Options:

A.

Data may be passed in the payload of a custom event using a property called detail.

B.

By default a custom event only propagates to its immediate container and to its immediate child component.

C.

Data may be passed in the payload of a custom event using @wire decorated properties.

D.

By default a custom event only propagates to its immediate container.

Buy Now
Questions 31

Considering the following code snippet:

PDI Question 31

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.

Buy Now
Questions 32

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.

Buy Now
Questions 33

What are two benefits of using declarative customizations over code? Choose 2 answers

Choose 2 answers

Options:

A.

Declarative customization* automatically generate test classes.

B.

Declarative customizations cannot generate run time errors.

C.

Declarative customizations automatically update with each Salesforce release.

D.

Declarative customizations generally require less maintenance.

Buy Now
Questions 34

What is an example of a polymorphic lookup field in Salesforce?

Options:

A.

The Parentld field on the standard Account object

B.

The Leadld and Contactld fields on the standard Campaign Member object

C.

The Whatld field on the standard Event object

D.

A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign

Buy Now
Questions 35

A developer must perform a complex SOQL query that joins two objects in a Lightning component.

How can the Lightning component execute the query?

Options:

A.

Create a flow to execute the query and invoke from the Lightning component.

B.

Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

C.

Invoke an Apex class with the method annotated as @AuraEnabled to perform the query.

D.

Use the Salesforce Streaming API to perform the SOQL query.

Buy Now
Questions 36

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

Buy Now
Questions 37

A developer wrote Apex code that calls out to an external system using REST API.

How should a developer write the test to prove the code is working as intended?

Options:

A.

Write a class that implements WebServiceMock.

B.

Write a class that extends HTTPCalloutMock.

C.

Write a class that extends WerServiceMack.

D.

write a class that implements HTTPCalloutMock.

Buy Now
Questions 38

What should a developer use to script the deployment and unit test execution as part of continuous integration?

Options:

A.

VS Code

B.

Developer Console

C.

Execute Anonymous

D.

Salesforce CLI

Buy Now
Questions 39

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

Options:

A.

Dev Hub

B.

Production

C.

Environment Hub

D.

Sandbox

Buy Now
Questions 40

What are three ways for a developer to execute tests in an org?

Choose 3 answers

Options:

A.

Setup Menu

B.

Tooling API

C.

Metadata API

D.

Salesforce DX

E.

Bulk APL

Buy Now
Questions 41

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

Buy Now
Questions 42

A developer is migrating a Visualforce page into a Lightning web component.

Salesforce Certified Platform Developer I

The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data.

Which security consideration should the developer be aware of?

Options:

A.

The isaccessisle() method must be used for field-level access checks.

B.

Lightning Data Service ignores field-level security.

C.

The with sharing keyword must be used to enforce sharing rules.

D.

Lightning Data Service handles sharing rules and field-level security.

Buy Now
Questions 43

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.

Which Visualforce feature supports this requirement?

Options:

A.

Controller Extension and tag

B.

Standard Controller with Custom List Controller extension

C.

Standard controller and the recordsetzvar page attribute

D.

Custom List Controller with recordSetvar page attribute

Buy Now
Questions 44

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 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 invocable method

C.

An outbound message

D.

An Apex REST class

Buy Now
Questions 45

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

Buy Now
Questions 46

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?

Options:

A.

Use the inherited sharing keyword.

B.

Use the WITH SECURITY_ENFORCED clause within the SOQL.

C.

Use the with sharing keyword.

D.

Use the without sharing keyword.

Buy Now
Questions 47

Where are two locations a developer can look to find information about the status of batch or future methods?

Choose 2 answers

Options:

A.

Developer Console

B.

Apex Flex Queue

C.

Apex Jobs

D.

Paused Flow Interviews component

Buy Now
Questions 48

A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth exceeded’.

What could be the possible causes?

Options:

A.

The developer does not have the correct user permission.

B.

The trigger is too long and should be refactored into a helper class.

C.

The trigger is getting executed multiple times.

D.

The trigger does not have sufficient code coverage.

Buy Now
Questions 49

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.

Buy Now
Questions 50

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

Buy Now
Questions 51

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.

Change Set deployment to production fails with the test coverage warning:

"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required."

What should the developer do to successfully deploy the new Apex trigger and helper class?

Options:

A.

Create a test class and methods to cover the Apex trigger.

B.

Increase the test class coverage on the helper class.

C.

Remove the failing test methods from the test class.

D.

Run the tests using the 'Run All Tests’ method.

Buy Now
Questions 52

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.

Buy Now
Exam Code: PDI
Exam Name: Salesforce Certified Platform Developer I (SU24)
Last Update: Nov 17, 2024
Questions: 174

PDF + Testing Engine

$49.5  $164.99

Testing Engine

$37.5  $124.99
buy now PDI testing engine

PDF (Q&A)

$31.5  $104.99
buy now PDI pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 23 Nov 2024