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

Free Salesforce CRT-450 Practice Exam with Questions & Answers | Set: 4

Questions 31

(Full question statement)

Universal Containers recently transitioned fromClassic to Lightning Experience. One of its business processes requirescertain values from the Opportunity objectto be sent via anHTTP REST calloutto itsexternal order management systemwhen the user presses a custom button on the Opportunity detail page.

Example fields:

Name

Amount

Account

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

Choose 2 answers.

Options:
A.

Create a customVisualforce quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page.

B.

Create anafter update triggeron the Opportunity object that calls a helper method using @future(callout=true) to perform the HTTP REST callout.

C.

Create aLightning component quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page.

D.

Create aRemote Actionon the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.

Salesforce CRT-450 Premium Access
Questions 32

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?

Options:
A.

@wire(getAccounts, { searchTerm: '$searchTerm' })

B.

@track(getAccounts, '$searchTerm')

C.

@wire(getAccounts, 'searchTerm: $searchTerm')

D.

@wire(getAccounts, '$searchTerm')

Questions 33

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 HTTPcalloutMock.

B.

Write a class that extends webserviceloo.

C.

Write a class that implements webservicemock.

D.

Write a class that extends HTTPcalloutMock.

Questions 34

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 failures due to the Task

insert statement, so that manual restarts are not needed?

Options:
A.

Use the Database method with allow one set to false.

B.

Deactivate the trigger before the integration runs.

C.

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

D.

Use a try-catch block after the insert statement.

Questions 35

A developer is integrating with a legacy on-premise SQL database.

What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?

Options:
A.

External Object

B.

External ID field

C.

Formula field

D.

Lookup field

Questions 36

A Salesforce administrator used Flow Builder to create a flow named "accountOnboarding". The flow must be used inside an Aura component.

Which tag should a developer use to display the flow in the component?

Options:
A.

lightning: flow

B.

lightning-low

C.

sure-flow

D.

aura: flow

Questions 37

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 SOQL to query the org for the required data.

B.

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

C.

Use Anonymous Apex to create the required data.

D.

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

Questions 38

Provide question feedback here (optional):

CRT-450 Question 38

Based on this code, what is the value of x?

Options:
A.

4

B.

1

C.

2

D.

3

Questions 39

Which code in a Visualforce page and/or controller might present a security vulnerability?

Options:
A.

<apex:outputText value="{!SCurrentPage.parameters.userInput}" />

B.

<apex:outputText escape="false" value="{!sCurrentPage.parameters.userInput}" />

C.

<apex:outputField value="{!ctrl.userInput}" rendered="{!isEditable}" />

D.

<apex:outputField value="{!ctrl.userInput}" />

Questions 40

A developer must provide custom user interfaces when users edit a Contact in 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 page in Lightning Experience

D.

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

Exam Code: CRT-450
Certification Provider: Salesforce
Exam Name: Salesforce Certified Platform Developer I (SP25)
Last Update: Jul 12, 2025
Questions: 204