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

Exact2Pass Menu

Salesforce Certified Platform Developer 1 Exam

Last Update 18 hours ago Total Questions : 204

The Salesforce Certified Platform Developer 1 Exam content is now fully updated, with all current exam questions added 18 hours ago. Deciding to include CRT-450 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our CRT-450 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these CRT-450 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Salesforce Certified Platform Developer 1 Exam practice test comfortably within the allotted time.

Question # 51

(Full question statement)

A developer must create a CreditCardPayment class that provides an implementation of an existing Payment class.

public virtual class Payment {

public virtual void makePayment(Decimal amount) {

// implementation

}

}

Which is the correct implementation?

A.

public class CreditCardPayment extends Payment { public virtual void makePayment(Decimal amount) { /* implementation */ } }

B.

public class CreditCardPayment implements Payment { public virtual void makePayment(Decimal amount) { /* implementation */ } }

C.

public class CreditCardPayment implements Payment { public override void makePayment(Decimal amount) { /* implementation */ } }

D.

public class CreditCardPayment extends Payment { public override void makePayment(Decimal amount) { /* implementation */ } }

Question # 52

Provide question feedback here (optional):

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

A.

4

B.

1

C.

2

D.

3

Question # 53

In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce?

Choose 2 answers

A.

Rich component ecosystem

B.

Leg capturing via the Debug Logs Setup page

C.

Built-in standard and custom set controllers

D.

Self-contained and reusable units of an application

Question # 54

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

apex

Copy

public class CustomerOrder {

// code implementation

}

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

A.

extends (class= " OrderRequest " )public class CustomerOrder

B.

public class CustomerOrder implements Order

C.

public class CustomerOrder extends OrderRequest

D.

@Implements (class= " OrderRequest " )public class CustomerOrder

Question # 55

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

Which method allows access to the price book?

A.

Use Test .getStandardPricebookid() to get the standard price book ID.

B.

Use @isTest [SeeAllData=true| and delete the existing standard price book.

C.

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

D.

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

Question # 56

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

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.

Lightning Data Service ignores field-level security.

B.

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

C.

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

D.

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

Question # 57

A developer considers the following snippet of code:

Boolean isOK;

Integer x;

String theString = ' Hello ' ;

if (isOK == false & & theString == ' Hello ' ) {

x = 1;

} else if (isOK == true & & theString == ' Hello ' ) {

x = 2;

} else if (isOK == null & & theString == ' Hello ' ) {

x = 3;

} else {

x = 4;

}

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

A.

1

B.

2

C.

3

D.

4

Question # 58

Flow Builder uses an Apex action to provide additional information about multiple Contacts, stored in a custom class ContactInfo.

Which is the correct definition of the Apex method that gets the additional information?

A.

@InvocableMethod(label= ' Additional Info ' ) public ContactInfo getInfo(Id contactId) { /* implementation */ }

B.

@InvocableMethod(label= ' Additional Info ' ) public static List < ContactInfo > getInfo(List < Id > contactIds) { /* implementation */ }

C.

@InvocableMethod(label= ' Additional Info ' ) public static ContactInfo getInfo(Id contactId) { /* implementation */ }

D.

@InvocableMethod(label= ' Additional Info ' ) public List < ContactInfo > getInfo(List < Id > contactIds) { /* implementation */ }

Question # 59

A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

A.

SFDX CLI

B.

Developer Console

C.

Change Sets

D.

Ant Migration Tool

Question # 60

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 of 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 outbound message

B.

An Apex REST class

C.

An Apex controller

D.

An invocable method

Go to page: