Labour Day Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Master the Salesforce Certified Platform Developer I (WI24) CRT-450 Exam with Confidence!

Questions 31

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

Options:

A.

Bulk API

B.

Tooling API

C.

Setup Menu

D.

Salesforce DX

E.

Metadata API.

Buy Now
Questions 32

A developer created this Apex trigger that calls Myclass.myStaticMethod:

CRT-450 Question 32

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

Options:

A.

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

B.

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

C.

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

D.

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

Buy Now
Questions 33

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

Options:

A.

Developer Console

B.

Execute Anonymous

C.

Salesforce CLI

D.

VS Code

Buy Now
Questions 34

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

Options:

A.

Use variable binding and replace the dynamic query with a static SOQL.

B.

Use the escapeSingleQuote method to sanitize the parameter before its use.

C.

Use a regular expression on the parameter to remove special characters.

D.

Use the @Readonly annotation and the with sharing keyword on the class.

Buy Now
Questions 35

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:

CRT-450 Question 35

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 36

What are two benefits of using declarative customizations over code?

Choose 2 answers

Options:

A.

Declarative customizations automatically update with each Salesforce release.

B.

Declarative customizations generally require less maintenance.

C.

Declarative customizations automatically generate test classes.

D.

Declarative customizations cannot generate run time errors.

Buy Now
Questions 37

Which two events need to happen when deploying to a production org? Choose 2 answers

Options:

A.

All triggers must have at least 1% test coverage.

B.

All Apex code must have at least 75% test coverage.

C.

All triggers must have at least 75% test coverage.

D.

All test and triggers must have at least 75% test coverage combined

Buy Now
Questions 38

Given the following code snippet, that is part of a custom controller for a Visualforce page:

CRT-450 Question 38

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers

Options:

A.

Use if (Schema, sobjectType, Contact, isUpdatable ( ) )

B.

Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )

C.

Use if (Schema.sObjectType.Contact.isAccessible ( ) )

D.

Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Buy Now
Questions 39

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors.

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

Options:

A.

Deactivate the trigger before the integration runs.

B.

Use a try-catch block after the insert statement.

C.

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

D.

Use the Database method with all or None set to false

Buy Now
Questions 40

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

Options:

A.

Read access on the primary relationship

B.

Read/Write access on the secondary relationship

C.

Read/Write access on the primary relationship

D.

Read/Write access on the junction object

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (WI24)
Last Update: May 17, 2024
Questions: 235

PDF + Testing Engine

$159.99
$64

Testing Engine

$119.99
$48

PDF (Q&A)

$99.99
$40