Weekend Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

CRT-450 Salesforce Certified Platform Developer I (SU24) Questions and Answers

Questions 4

developer must provide custom user interfaces when users edit a Contact either Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this functionality?

Options:

A.

A Lightning component in Salesforce Classic and a Lightning component in Lightning Experience

B.

A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience

C.

A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

D.

A Visualforce page in Salesforce Classic and a Lightning page In Lightning Experience

Buy Now
Questions 5

Which two statements are true about using the @testSetup annotation in an Apex test class?

Choose 2 answers

Options:

A.

a method defined with the @tetestSetup annotation executes once for each test method in the test class and counts towards system limits.

B.

Records created in the test setup method cannot be updated in individualtest methods.

C.

In a test setup method, test data is inserted once and made available for all test methods in the test class.

D.

The ©testSetup annotation is not supported when the cg5lsTest(SeeAIIData=True) annotation is used.

Buy Now
Questions 6

A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided that the trigger should be tested with 200 account records with unique names.

What two things should be done to create the test data within the unit test with the least amount of code?

Choose 2 answers

Options:

A.

Use Test.loadData to populate data in your test methods.

B.

Create a static resource containing test data.

C.

Use the @isTest (isParallel=true) annotation in the test class.

D.

Use the @isTest (seeAllData=true) annotation in the test class.

Buy Now
Questions 7

Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.

What are two characteristics of declarative development over programmatic customization?

Choose 2 answers

Options:

A.

Declarative code logic does not require maintenance or review.

B.

Declarative development has higher design limits and query limits.

C.

Declarative development does not require Apex test classes.

D.

Declarative development can be done using the Setup menu.

Buy Now
Questions 8

Considering the following code snippet:

CRT-450 Question 8

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Options:

A.

Implement Change Data Capture,

B.

Implement a try/catch block for the DML.

C.

Implement the upsert DML statement.

D.

Remove null items from the list of Accounts.

Buy Now
Questions 9

Which two actions may cause triggers to fire?

Choose 2 answers

Options:

A.

Cascading delete operations

B.

Changing a user's default division when the transfer division option is checked

C.

Updates to FeedItem

D.

Renaming or replacing a picklist entry

Buy Now
Questions 10

A developer wants to import 500 Opportunity records into a sandbox.

Why should the developer choose to use Data Loader instead of Data Import Wizard?

Options:

A.

Data Import Wizard does not support Opportunities.

B.

Data Loader automatically relates Opportunities to Accounts.

C.

Data Loader runs from the developer's browser,

D.

Data Import Wizard can not import all 500 records.

Buy Now
Questions 11

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

Options:

A.

VS Code

B.

Developer Console

C.

Execute Anonymous

D.

Salesforce CLI

Buy Now
Questions 12

What is an example of a polymorphic lookup field in Salesforce?

Options:

A.

The Parentld field on the standard Account object

B.

The Leadld and Contactld fields on the standard Campaign Member object

C.

The Whatld field on the standard Event object

D.

A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign

Buy Now
Questions 13

Given the following Apex statement:

CRT-450 Question 13

What occurs when more than one Account is returned by the SOQL query?

Options:

A.

The query fails and an error is written to the debug log.

B.

An unhandled exception is thrown and the code terminates.

C.

The variable, myaccount, is automatically cast to the List data type.

D.

The first Account returned is assigned to myAccount,

Buy Now
Questions 14

Which two are best practices when it comes to Aura component and application event handling?

Choose 2 answers

Options:

A.

Try to use application events as opposed to component events.

B.

Use component events to communicate actions that should be handled at the application level.

C.

Handle low-level events in the event handler and re-fire them as higher-level events.

D.

Reuse the event logic in a component bundle, by putting the fogic in the helper.

Buy Now
Questions 15

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.

Which three statements are useful inside the unit test to effectively test the custom controller? Choose 2 answers

A)

CRT-450 Question 15

B)

CRT-450 Question 15

C)

CRT-450 Question 15

D)

CRT-450 Question 15

E)

CRT-450 Question 15

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Buy Now
Questions 16

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat:

CRT-450 Question 16

What are two ways the developer can update the method to prevent a SOQL injection attack?

Choose 2 answers

Options:

A.

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

B.

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

C.

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

D.

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

Buy Now
Questions 17

A Salesforce administrator used Flow Builder to create a flow named "accountOnboarding". The flow must be used inside an Aura component.

Which tag should a developer use to display the flow in the component?

Options:

A.

lightning:flow

B.

aura-flow

C.

aura:flow

D.

lightning-flow

Buy Now
Questions 18

A developer wants to improve runtime performance of Apex calls by caching results on the client.

What is the most efficient way to implement this and follow best practices?

Options:

A.

Call the setStorable () method on the action in the JavaScript client-side code.

B.

Set a cookie in the browser for use upon return to the page.

C.

Decorate the server-side method with @AuraEnsbled(storable=true).

D.

Decorate the server-side method with @AuraZnabled(cacheable=true).

Buy Now
Questions 19

What Is the result of the following code snippet?

CRT-450 Question 19

Options:

A.

Accounts are inserted.

B.

Account is inserted.

C.

200 Accounts are inserted,

D.

201 Accounts are inserted.

Buy Now
Questions 20

A developer needs to have records with specific field values in order to test a new Apex class.

What should the developer do to ensure the data is available to the test?

Options:

A.

Use test.loadData() and reference a JSON file in Documents.

B.

Use Test.loadData() and reference a CSV file in a static resource.

C.

Use Anonymous Apex to create the required data.

D.

Use SOQL to query the org for the required data.

Buy Now
Questions 21

Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI).

What should the UC development team use to automatically run tests as part of their CI process?

Options:

A.

Developer Console

B.

Visual Studio Code

C.

Salesforce CLI

D.

Force.com Toolkit

Buy Now
Questions 22

Universal Containers hires a developer to build a custom search page to help users find the Accounts they want. Users will be able to search on Name, Description,

and a custom comments field.

Which consideration should the developer be aware of when deciding between SOQL and SOSL?

Choose 2 answers

Options:

A.

SOSL is faster for text searches.

B.

SOQL is faster for text searches.

C.

SOSL is able to return more records.

D.

SOQL is able to return more records.

Buy Now
Questions 23

What should a developer do to check the code coverage of a class after running all tests?

Options:

A.

View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.

B.

View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab,

C.

View the Code Coverage column in the list view on the Apex Classes page.

D.

Select and run the class on the Apex Test Execution page in the Developer Console.

Buy Now
Questions 24

Which three statements are accurate about debug logs?

Choose 3 answers

Options:

A.

A System debug logs are retained for 24 hours.

B.

Only the 20 most recent debug logs for a user are kept.

C.

Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

D.

Debug logs can be set for specific users, classes, and triggers.

E.

The maximum size of 3 debug log is 5 MB.

Buy Now
Questions 25

Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.

CRT-450 Question 25

When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce

page.

What can the developer use to meet this business requirement?

Options:

A.

Controller extension

B.

Custom controller

C.

Apex trigger

D.

Validation rule

Buy Now
Questions 26

Universal Containers (UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.

UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.

Which method should be used to calculate the estimated ship date for an Order?

Options:

A.

Use a MAX Roll-Up Summary field on the latest availability date fields.

B.

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

C.

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

D.

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

Buy Now
Questions 27

A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?

Options:

A.

Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.

B.

Wrap the Lightning Web Component in an Aura Component and surface the Aura Component as a Visualforce tab.

C.

Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.

D.

Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.

Buy Now
Questions 28

Refer to the following Apex code:

CRT-450 Question 28

What is the value of x when it is written to the debug log?

Options:

A.

0

B.

1

C.

2

D.

3

Buy Now
Questions 29

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 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?

Options:

A.

An Apex controller

B.

An invocable method

C.

An outbound message

D.

An Apex REST class

Buy Now
Questions 30

When using Salesforce DX, what does a developer need to enable to create and manage scratch orgs?

Options:

A.

Dev Hub

B.

Production

C.

Environment Hub

D.

Sandbox

Buy Now
Questions 31

Assuming that name is a String obtained by an tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers

A)

CRT-450 Question 31

B)

CRT-450 Question 31

C)

CRT-450 Question 31

D)

CRT-450 Question 31

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 32

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

Which method allows access to the price book?

Options:

A.

Use @IaTest (SeeAllData=true) and delete the existing standard price book,

B.

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

C.

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

D.

Use Teat.getStandardPricebookId() to get the standard price book 1D.

Buy Now
Questions 33

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

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

A)

CRT-450 Question 33

B)

CRT-450 Question 33

C)

CRT-450 Question 33

D)

CRT-450 Question 33

Options:

A.

Option A

B.

Option

C.

Option

D.

Option

Buy Now
Questions 34

An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.

How can this be achieved?

Options:

A.

Use the Streaming API to create real-time roll-up summaries.

B.

Write a trigger on the child object and use an agaregate function to sum the amount for all related child objects under the Opportunity.

C.

Use the Metadata API to create real-time roll-up summaries,

D.

Write a trigger on the Opportunity object and use tree sorting to sum the amount for all related child objects under the Opportunity.

Buy Now
Questions 35

What can be easily developed using the Lightning Component framework?

Options:

A.

Salesforce Classic user Interface pages

B.

Lightning Pages

C.

Salesforce integrations

D.

Customized JavaScript buttons

Buy Now
Questions 36

A software company uses the following objects and relationships:

* Case: to handle customer support issues

* Defect__c: a custom object to represent known issues with the company's software

* Case_Defect__c: a junction object between Case and Defect__c to represent that a defect is a cause of a customer issue

Case and Defect__c have Private organization-wide defaults.

What should be done to share a specific Case_Defect__c record with a user?

Options:

A.

share the parent Defect__c record.

B.

Share the parent Case record.

C.

Share the parent Case and Defect_c records.

D.

Share the Case_Defect_c record.

Buy Now
Questions 37

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

A)

CRT-450 Question 37

B)

CRT-450 Question 37

C)

CRT-450 Question 37

D)

CRT-450 Question 37

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 38

A developer wrote Apex code that calls out to an external system using REST API.

How should a developer write the test to prove the code is working as intended?

Options:

A.

Write a class that implements WebServiceMock.

B.

Write a class that extends HTTPCalloutMock.

C.

Write a class that extends WerServiceMack.

D.

write a class that implements HTTPCalloutMock.

Buy Now
Questions 39

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

A)

CRT-450 Question 39

B)

CRT-450 Question 39

C)

CRT-450 Question 39

D)

CRT-450 Question 39

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Buy Now
Questions 40

A developer needs to prevent the creation of Request__c records when certain conditions exist in the system. A RequestLogic class exists that checks the conditions.

What is the correct implementation?

A)

CRT-450 Question 40

B)

CRT-450 Question 40

C)

CRT-450 Question 40

D)

CRT-450 Question 40

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 41

Universal Containers wants to back up all of the data and attachments in its Salesforce org once a month.

Which approach should a developer use to meet this requirement?

Options:

A.

Schedule a report.

B.

Define a Data Export scheduled

C.

Use the Data Loader command line.

D.

Create a Schedulable Apex class.

Buy Now
Questions 42

Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment.

What is the recommended process for deploying the code and configurations to Production?

Options:

A.

Use the Force.com IDE to deploy the Apex code and Lightning Components.

B.

Use the Ant Migration Tool to deploy the Apex code and Lightning Components.

C.

Use a change set to deploy the Apex code and Lightning Components.

D.

Use Salesforce CLI to deploy the Apex code and Lightning Components.

Buy Now
Questions 43

Where are two locations a developer can look to find information about the status of batch or future methods?

Choose 2 answers

Options:

A.

Developer Console

B.

Apex Flex Queue

C.

Apex Jobs

D.

Paused Flow Interviews component

Buy Now
Questions 44

A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors.

What is the correct definition of the Apex method?

A)

CRT-450 Question 44

B)

CRT-450 Question 44

C)

CRT-450 Question 44

D)

CRT-450 Question 44

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 45

Which code statement includes an Apex method named updateaccounts in the class accountcontreoller for use in a Lightning web component?

Options:

A.

import updatelccounts from '@aalesforce/apeax/AccountController':

B.

import updateiccounta from 'AccountConctroller':

C.

import updatelccounta from ‘RAccountContraller,updateiccounta’;

D.

import updase’Accounts from

'@=salesforce/apex/AccountController ., updateaccounts’;

Buy Now
Questions 46

What does the Lightning Component framework provide to developers?

Options:

A.

Prebuilt components that can be reused

B.

Support for Classic and Lightning Uls

C.

Extended governor limits for applications

D.

Templates to create custom components

Buy Now
Questions 47

A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth exceeded’.

What could be the possible causes?

Options:

A.

The developer does not have the correct user permission.

B.

The trigger is too long and should be refactored into a helper class.

C.

The trigger is getting executed multiple times.

D.

The trigger does not have sufficient code coverage.

Buy Now
Questions 48

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

Salesforce Certified Platform Developer I

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?

Options:

A.

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

B.

Lightning Data Service ignores field-level security.

C.

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

D.

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

Buy Now
Questions 49

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

CRT-450 Question 49

Which governor limit will likely be exceeded within the Apex transaction?

Options:

A.

Total number of SOQL queries issued

B.

Total number of DML statements issued

C.

Total number of records processed as a result of DML statements

D.

Total number of records retrieved by SOQL queries

Buy Now
Questions 50

What are two considerations for running a flow in debug mode? Choose 2 answers

Options:

A.

Clicking Pause or executing a Pause element closes the flow and ends debugging.

B.

Input variables of type record cannot be passed into the flow.

C.

DML operations will be rolled back when the debugging ends.

D.

Callouts to external systems are not executed when debugging a flow.

Buy Now
Questions 51

A developer created a Visualforce page and custom controller to display the account type field as shown below.

Custom controller code:

CRT-450 Question 51

Visualforce page snippet:

CRT-450 Question 51

what should the developer do to correct the problem?

Options:

A.

Add a getter method for the attribute.

B.

Convert theAccount.Type to a String.

C.

Change theAccount attribute to public.

D.

Add with sharing to the custom controller.

Buy Now
Questions 52

A developer needs to allow users to complete a form on an Account record that will create record for a custom object.

The form needs to display different fields depending on the user’s job role. The functionality should only be available to a small group of users.

Which three things should the developer do to satisfy these requirements?

Choose 3 answers

Options:

A.

Create a Custom Permission for the users.

B.

Create a Lightning web component,

C.

Add a Dynamic Action to the Account Record Page.

D.

Add a Dynamic Action to the Users' assigned Page Layouts,

E.

Create a Dynamic Form.

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SU24)
Last Update: Dec 8, 2024
Questions: 235

PDF + Testing Engine

$57.75  $164.99

Testing Engine

$43.75  $124.99
buy now CRT-450 testing engine

PDF (Q&A)

$36.75  $104.99
buy now CRT-450 pdf