Summer 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 51

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

CRT-450 Question 51

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.

Which two actions should the developer take to fix the code segment shown above?

Choose 2 answers

Options:

A.

Check if all the required fields for Opportunity are being added on creation.

B.

Use Database.query to query the opportunities.

C.

Move the DML that saves opportunities outside the for loop.

D.

Query for existing opportunities outside the for loop.

Buy Now
Questions 52

When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values in a postalCodeToTimezone_c custom object.

What should be built to implement this feature?

Options:

A.

Account custom trigger

B.

Account approval process

C.

Account assignment rule

D.

Account workflow rule

Buy Now
Questions 53

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

What would be the best solution for this requirement?

Options:

A.

Submit a REST API Callojt with a JSON payload and validate the f elds on a third patty system

B.

Use an Approval Process to enforce tne completion of a valid email address using an outbound message action.

C.

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If it Is invalid

D.

Use a custom Lightning web component to make a callout to validate the fields on a third party system.

Buy Now
Questions 54

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?

Options:

A.

Use a CEILING formula on each of the Latest availability date fields.

B.

Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.

C.

Use a LATEST formula on each of the latest availability date fields.

D.

Use a Max Roll-Up Summary field on the Latest availability date fields.

Buy Now
Questions 55

Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?

Options:

A.

Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.

B.

Rewrite all Visualforce pages asLightning components.

C.

Set the attribute enableLightning to true in the definition.

D.

Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.

Buy Now
Questions 56

What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?

Options:

A.

FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)

B.

FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted, name), contacted, name)

C.

SELECT lead(id, name). accountOd, name), contacted, name) FROM Lead, Account, Contact WHERE Name = "universal Containers'

D.

SELECT Lead.id. Lead.Name, Account.Id, AccountName, Contacted, Contact.Name FROM Lead, Account, Contact WHERE CompanvName * Universal Containers'

Buy Now
Questions 57

What should a developer use to fix a Lightning web component bug in a sandbox?

Options:

A.

Developer Console

B.

VS Code

C.

Force.com IDE

D.

Execute Anonymous

Buy Now
Questions 58

Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers

Options:

A.

$Lightning.createComponent

B.

<apex:slds/>

C.

$Lightning.useComponent

D.

$Lightning.use

E.

<apex:includeLightning/>

Buy Now
Questions 59

A custom object Trainer_c has a lookup field to another custom object Gym___c.

Which SOQL query will get the record for the Viridian City gym and it's trainers?

Options:

A.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'

B.

SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'

C.

SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'

D.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'

Buy Now
Questions 60

A developer needs to create a baseline set of data (Account, Contacts, Products, Assets) for an entire suite allowing them to test independent requirements for various types of Salesforce Cases.

Which approach can efficiently generate the required data for each unit test?

Options:

A.

Use &TestSteup with a void method.

B.

Create test data before Test.startTest in the unit test.

C.

Create a mock using the Stub APL.

D.

Add $ IsTest (seeAllDatatrue) at the start of the unit test class.

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

PDF + Testing Engine

$159.99
$64

Testing Engine

$119.99
$48

PDF (Q&A)

$99.99
$40