New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

CRT-450 Exam Dumps - Salesforce Certified Platform Developer I (SU24)

Go to page:
Question # 41

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 # 42

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 # 43

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

After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.

Which change should the developer make to allow the integration to continue when some records in a batch cause failure due to the Task insert statement, so that manual restarts are not needed?

A.

Deactivate the trigger before the integration runs.

B.

Remove the Apex class from the integration user's profile,

C.

Use a try-catch block after the insert statement,

D.

Use the Database method with allOrNone set to false.

Full Access
Question # 44

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

Which tool should the developer use to troubleshoot query performance?

A.

Setup Menu

B.

Developer Console

C.

Visual Studio Code IDE

D.

AppExchange

Full Access
Question # 45

A developer has the following requirements:

Calculate the total amount on an Order.

Calculate the line amount for each Line Item based on quantity selected and price.

Move Line Items to a different Order if a Line Item Is not In stock.

Which relationship implementation supports these requirements on its own?

A.

Order has a re-parentable lookup field to Line Item,

B.

Order has a re-parentable master-detail field to Line Item.,

C.

Line Item has a re-parentable lookup field to Order.

D.

Line Item has a re-parentable master-detail field to Order.

Full Access
Question # 46

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 # 47

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
Question # 48

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

Which governor limit will likely be exceeded within the Apex transaction?

A.

Total number of SOQL queries issued

B.

Total number of DML statements issued

C.

Total number of records processed as a result of DML statements

D.

Total number of records retrieved by SOQL queries

Full Access
Go to page: