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

Developers CRT-450 Release Date

Page: 6 / 12
Question 24

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own.

What should the developer use to enforce sharing permissions for the currently logged in user while using the custom search tool?

Options:

A.

Use the schema describe calls to determine if the logged-in user has access to the Account object,

B.

Use the with sharing keyword on the class declaration.

C.

Use the without sharing keyword on the class declaration.

D.

Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

Question 25

How many Accounts will be inserted by the following block of code?

Options:

A.

100

B.

0

C.

500

D.

150

Question 26

A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.

What should the developer use to satisfy this requirement in the most efficient manner?

Options:

A.

Screen-based flow

B.

Lightning Component

C.

Approval process

D.

Apex trigger

Question 27

A developer has an integer variable called maxattempts. The developer needs to ensure that once maxattempts is initialized, it preserves its value for the length of

the Apex transaction; while being able to share the variable's state between trigger executions.

How should the developer declare mazattempts to meet these requirements?

Options:

A.

Declare maxattempts as a constant using the static and £inal keywords.

B.

Declare maxaztenpts as a member variable on the trigger definition.

C.

Declare maxattenpes as a variable on a helper class.

D.

Declare raxattensts as a private static variable on a helper class.

Page: 6 / 12
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SU24)
Last Update: Dec 22, 2024
Questions: 174
CRT-450 pdf

CRT-450 PDF

$25.5  $84.99
CRT-450 Engine

CRT-450 Testing Engine

$28.5  $94.99
CRT-450 PDF + Engine

CRT-450 PDF + Testing Engine

$40.5  $134.99