Summer Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 28522818

Home > Salesforce > Developers > CRT-450

CRT-450 Salesforce Certified Platform Developer I (SU24) Question and Answers

Question # 4

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

How can a developer use the OrderRequest class within the CustomerOrder class?

A.

public class CusctomerOrder implements Order

B.

@Implements (class="OrderRequest”)

public class CusatomaxOrder

C.

Extends (class="OrderRequest”) pubklic

class CuastomerOrder

D.

public class CustomerOrder extends OrderRequest

Full Access
Question # 5

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?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 6

Given the following Anonymous block:

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

A.

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

B.

The transaction will fail due to exceeding the governor limit.

C.

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

D.

The transaction will succeed and changes will be committed.

Full Access
Question # 7

Universal Containers (UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.

UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.

Which method should be used to calculate the estimated ship date for an Order?

A.

Use a MAX Roll-Up Summary field on the latest availability date fields.

B.

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

C.

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

D.

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

Full Access
Question # 8

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?

A.

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

B.

Declare the class and method using the global access modifier.

C.

Declare the class and method using the public access modifier.

D.

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

Full Access
Question # 9

Universal Containers recently transitioned from Classic to Lightning Experience.

One of its business processes requires certain values from the Opportunity cbject to be sent via an HTTP REST callout to its external order management system when the user presses a custom button

on the Opportunity detail page. Example values are as follows:

* Name

* Amount

* Account

Which two methods should the developer implement to fulfill the business requirement?

Choose 2 answers

A.

Create a Remote Action on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity Is updated.

B.

Create a custom Visualforce quick action that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.

C.

Create a Lightning component quick action that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.

D.

Create an after update trigger on the Opportunity object that calls a helper method using @Future (Callour=true) to perform the HTTP REST callout.

Full Access
Question # 10

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

A.

registerEvent

B.

fireEvent ()

C.

emit{)

D.

fire()

Full Access
Question # 11

A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner.

What is the most efficient way for a developer to implement this?

A.

Apex trigger on Task

B.

Record-triggered flow on opportunity

C.

Auto-launched flow on Task

D.

Task actions

Full Access
Question # 12

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?

A.

Full Copy sandboxes

B.

Developer orgs

C.

Developer sandboxes

D.

Scratch orgs

Full Access
Question # 13

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.

Lightning Web Components

B.

Visualforce

C.

Flow

D.

VUE JavaScript framework

Full Access
Question # 14

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

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

Full Access
Question # 15

A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.

What is the first step towards troubleshooting the issue?

A.

Disable the batch job and recreate it with a smaller number of records.

B.

Check the debug logs for the batch job.

C.

Decrease the batch size to reduce the load on the system.

D.

Check the asynchronous job monitoring page to view the job status and logs.

Full Access
Question # 16

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

A.

Sharing rules will be inherited from the calling context.

B.

Sharing rules will not be enforced for the running user.

C.

Sharing rules will be enforced by the instantiating class.

D.

Sharing rules will be enforced for the running user.

Full Access
Question # 17

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?

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.

Full Access
Question # 18

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?

A.

Account,iaDelecable ()

B.

accountRec.a0biectType.iaDeletable()

C.

accountRec.islCelezable()

D.

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

Full Access
Question # 19

A developer is asked to write helper methods that create test data for unit tests.

What should be changed in the TestUtils class so that its methods are only usable by unit test methods?

A.

Remove static from line 03.

B.

Add @IsTest above line 03.

C.

Change public to private on line 01.

D.

Add @1sTest above line 01.

Full Access
Question # 20

A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug__c.

As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able to report multiple bugs and bugs can also be reported by multiple companies.

What is needed to allow this reporting?

A.

Junction object between Bug_c and Account

B.

Master-detail field on Bug__c to Account

C.

Lookup field on sug_c to Account

D.

Roll-up summary field of Bug__c on Account

Full Access
Question # 21

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?

A.

An Apex controller

B.

An invocable method

C.

An outbound message

D.

An Apex REST class

Full Access
Question # 22

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?

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.

Full Access
Question # 23

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?

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.

Full Access
Question # 24

Universal Containers wants to back up all of the data and attachments in its Salesforce org once a month.

Which approach should a developer use to meet this requirement?

A.

Schedule a report.

B.

Define a Data Export scheduled

C.

Use the Data Loader command line.

D.

Create a Schedulable Apex class.

Full Access
Question # 25

Which exception type cannot be caught?

A.

NoAccessException

B.

LimitException

C.

CalloutException

D.

A custom exception

Full Access
Question # 26

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

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.

Full Access
Question # 27

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

A.

Renderer

B.

Controller

C.

style

D.

Helper

E.

Design

Full Access
Question # 28

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?

A.

Agile Development

B.

Model-View-Controller (MVC)

C.

Flux (view, action, dispatcher, and store)

D.

Waterfall Model

Full Access
Question # 29

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?

A.

Roll-up summary field

B.

Record-triggered flow

C.

Formula field

D.

Apex trigger

Full Access
Question # 30

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.

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.

Full Access
Question # 31

A developer has an integer variable called maxattempts. The developer needs to ensure that once maxattempts is initialized, it preserves its value for the length of

the Apex transaction; while being able to share the variable's state between trigger executions.

How should the developer declare mazattempts to meet these requirements?

A.

Declare maxattempts as a constant using the static and £inal keywords.

B.

Declare maxaztenpts as a member variable on the trigger definition.

C.

Declare maxattenpes as a variable on a helper class.

D.

Declare raxattensts as a private static variable on a helper class.

Full Access
Question # 32

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.

Quick action

B.

Apex trigger

C.

Roll-up summary field

D.

Formula field

Full Access
Question # 33

A developer is tasked with building a custom Lightning web component to collect Contact information.

The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users.

What should the developer use in their Lightning Web Component to support the security requirements?

A.

force-input-field

B.

lightning-input-field

C.

ui-input-field

D.

aura-input-field

Full Access
Question # 34

A developer created this Apex trigger that calls MyClass.myStaticMsthod:

The developer creates a test class with a test method that calls Myclass.myStacicMethod 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?

What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?

A.

The deployment falls because no assertions were made in the test method.

B.

The deployment passes because both classes and the trigger were included in the deployment.

C.

The deployment fails because the Apex trigger has no code coverage.

D.

The deployment passes because the Apex code has the required =75% code coverage.

Full Access
Question # 35

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

A.

VS Code

B.

Developer Console

C.

Execute Anonymous

D.

Salesforce CLI

Full Access
Question # 36

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

A.

Dev Hub

B.

Production

C.

Environment Hub

D.

Sandbox

Full Access
Question # 37

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

Choose 2 answers

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.

Full Access
Question # 38

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.

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.

Full Access
Question # 39

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.

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.

Full Access
Question # 40

A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem 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 Orderltem records to a new Order record?

A.

Create a junction object between OrderItem and Order.

B.

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

C.

Change the master-detail relationship to an external lookup relationship.

D.

Add without sharing to the Apex class declaration.

Full Access
Question # 41

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

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.

Full Access
Question # 42

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?

A.

Use test.loadData() and reference a JSON file in Documents.

B.

Use Test.loadData() and reference a CSV file in a static resource.

C.

Use Anonymous Apex to create the required data.

D.

Use SOQL to query the org for the required data.

Full Access
Question # 43

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

Choose 2 answers

A.

After-save record-triggered flow

B.

Criteria-based sharing calculations

C.

Email messages

D.

Roll-up summary fields

Full Access
Question # 44

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)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 45

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.

Aura Components

B.

Visualforce Pages

C.

Lightning Web Components

D.

Visualforce Components

Full Access
Question # 46

Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.

What are two characteristics of declarative development over programmatic customization?

Choose 2 answers

A.

Declarative code logic does not require maintenance or review.

B.

Declarative development has higher design limits and query limits.

C.

Declarative development does not require Apex test classes.

D.

Declarative development can be done using the Setup menu.

Full Access
Question # 47

A company has a custom object, order__ ¢, that has a required, unique external ID field called crder_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.

merge orders;

B.

merge orders Order_Number_ c;

C.

upsert orders:

D.

upserrc orders Order Number_c;

Full Access
Question # 48

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

A.

Lightning component

B.

Lightning action

C.

Lightning flow

D.

Lightning page

Full Access
Question # 49

If Apex code executes inside the =x=cuz=() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?

Choose 2 answers

A.

The Apex governor limits are reset for each iteration of the execute () method.

B.

The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.

C.

The Apex governor limits will use the asynchronous limit levels.

D.

The Apex governor limits are omitted while calling the constructor of the Apex class.

Full Access
Question # 50

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?

A.

5

B.

6

C.

10

D.

15

Full Access
Question # 51

What Is the result of the following code snippet?

A.

Accounts are inserted.

B.

Account is inserted.

C.

200 Accounts are inserted,

D.

201 Accounts are inserted.

Full Access
Question # 52

An Apex method, getAccounts, that returns a list of Accounts given a searchTerm, is available for Lightning Web Components to use.

What is the correct definition of a Lightning Web Component property that uses the getAccounts method?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access