New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Developers PDI Book

Page: 3 / 15
Total 200 questions

Salesforce Certified Platform Developer 1 (WI25) Questions and Answers

Question 9

What is the result of the following code?

Options:

A.

The record will not be created and an exception will be thrown.

B.

The record will not be created and no error will be reported.

C.

The record will be created and no error will be reported.

D.

The record will be created and a message will be in the debug log.

Question 10

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

Options:

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 11

Given the following Anonymous block:

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

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

Options:

A.

The transaction will succeed and changes will be committed.

B.

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

C.

The transaction will fail due to exceeding the governor limit.

D.

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

Question 12

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the new Apex helper class.

Change Set deployment to production fails with the test coverage warning:

"Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required."

What should the developer do to successfully deploy the new Apex trigger and helper class?

Options:

A.

Run the tests using the Run All Tests' method.

B.

Remove the failing test methods from the test class

C.

Create a test class and methods to cover the Apex trigger.

D.

Increase the test class coverage on the helper class.

Page: 3 / 15
Total 200 questions