Pre-Winter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

CRT-450 Sample Questions Answers

Questions 4

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 5

A developer is creating an app that contains multiple Lightning web components.

One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page.

How should this be accomplished?

Options:

A.

Fire a notification.

B.

Update a property on the parent.

C.

Call a method in the Apex controller.

D.

Create a custom event.

Buy Now
Questions 6

A developer considers the following snippet of code:

Based on this code, what is the value of x?

Options:

A.

3

B.

1

C.

4

D.

2

Buy Now
Questions 7

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 of 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 Apex REST class

C.

An outbound message

D.

An invocable method

Buy Now
Questions 8

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

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.

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

B.

Lightning Data Service ignores field-level security.

C.

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

D.

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

Buy Now
Questions 9

What does the Lightning Component framework provide to developers?

Options:

A.

Extended governor limits for applications

B.

Prebuilt component that can be reused.

C.

Templates to create custom components.

D.

Support for Classic and Lightning UIS.

Buy Now
Questions 10

Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.

The component should be able to validate the user input before saving the information to the database.

What is the best technology to create this component?

Options:

A.

Flow

B.

Lightning Web Components

C.

Visualforce

D.

VUE JavaScript framework

Buy Now
Questions 11

While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.

Why did the method fail in the sandbox test framework but succeed in the Developer Console?

Options:

A.

The test method has a syntax error In the code.

B.

The test method does not use System. rurAs to execute as a specific user.

C.

The test method Is calling an future method.

D.

The test method relies on existing data in the sandbox.

Buy Now
Questions 12

The following automations already exist on the Account object;

• A workflow rule that updates a field when a certain criteria is met

• A custom validation on a field

• A How that updates related contact records

A developer created a trigger on the Account object.

What should the developer consider while testing the trigger code?

Options:

A.

The flow may be launched multiple times.

B.

Workflow rules will fire only after the trigger has committed all DML operations to the database.

C.

A workflow rule field update will cause the custom validation to run again.

D.

The trigger may fire multiple times during a transaction.

Buy Now
Questions 13

Which two scenarios require an Apex method to be called imperatively from a Lightning web component?

Choose 2 answer

Options:

A.

Calling a method that makes a web service callout

B.

Calling a method that is not annotated with cacheable-true

C.

Calling a method with the click of a button

D.

Calling a method that is external to the main controller for the Lightning web component

Buy Now
Questions 14

Which action causes a before trigger to fire by default for Accounts?

Options:

A.

Renaming or replacing picklist

B.

Importing data using the Data Loader and the Bulk API

C.

Converting Leads to Contact accounts

D.

Updating addresses using the Mass Address update tool

Buy Now
Questions 15

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 16

In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers

Options:

A.

Self-contained and reusable units of an application

B.

Rich component ecosystem

C.

Automatic code generation

D.

Server-side run-time debugging

Buy Now
Questions 17

Which three statements are true regarding custom exceptions in Apex? (Choose three.)

Options:

A.

A custom exception class must extend the system Exception class.

B.

A custom exception class can implement one or many interfaces.

C.

A custom exception class cannot contain member variables or methods.

D.

A custom exception class name must end with “Exception”.

E.

A custom exception class can extend other classes besides the Exception class.

Buy Now
Questions 18

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.

Log capturing via the Debug Logs Setup page

B.

Built-in standard and custom set controllers

C.

Self-contained and reusable units of an application

D.

Rich component ecosystem

Buy Now
Questions 19

Which three data types can a SOQL query return?

Choose 3 answers

Options:

A.

List

B.

Long

C.

Integer

D.

sObJect

E.

Double

Buy Now
Questions 20

Which scenario is valid for execution by unit tests?

Options:

A.

Load data from a remote site with a callout.

B.

Set the created date of a record using a system method.

C.

Execute anonymous Apex as a different user.

D.

Generate a Visualforce PDF with geccontentAsPDF ().

Buy Now
Questions 21

What are two considerations for deploying from a sandbox to production?

Choose 2 answers

Options:

A.

Should deploy during business hours to ensure feedback can be Quickly addressed

B.

All triggers must have at least one line of test coverage.

C.

At least 75% of Aptx code must be covered by unit tests.

D.

Unit tests must have calls to the System.assert method.

Buy Now
Questions 22

Which three operations affect the number of times a trigger can fire?

Choose 3 answers

Options:

A.

Process Flows

B.

Workflow Rules

C.

Criteria-based Sharing calculations

D.

Email messages

E.

Roll-Up Summary fields

Buy Now
Questions 23

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 can be done using the setup menu.

D.

Declarative development does not require Apex test classes.

Buy Now
Questions 24

An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web

Components to use.

What is the correct definition of a Lightning Web Component property that uses the getAccounts method?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 25

A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition.

As part of a data enrichment process. Universal Containers has a CSV file that contains updated data for all candidates in the system, the file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.

Which technique should the developer implement to streamline the data upload?

Options:

A.

Create a Process Builder on the Candidate_c object to map the records.

B.

Create a before Insert trigger to correctly map the records.

C.

Update the primaryid__c field definition to mark it as an External Id

D.

Upload the CSV into a custom object related to Candidate_c.

Buy Now
Questions 26

Universal Container* decides to use purely declarative development to build out a new Salesforce application.

Which two options can be used to build out the business logic layer for this application?

Choose 2 answer

Options:

A.

Validation Rules

B.

Remote Actions

C.

Record- Triggered flow

D.

Batch Jobs

Buy Now
Questions 27

The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.

What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

Options:

A.

Use a formula field.

B.

Use a validation rule.

C.

Use Lead Conversation field mapping.

D.

Create an after trigger on Lead.

Buy Now
Questions 28

Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds "Decommissioned" as ipicklist value for the Statu3__c custom field within the Container__c object.

Which two approaches could a developer use to enforce only Container records with a status of "Decommissioned" can be deleted?

Choose 2 answers

Options:

A.

Validation rule

B.

After record-triggered flow

C.

Apex trigger

D.

Before record-triggered flow

Buy Now
Questions 29

How does the Lightning Component framework help developers implement solutions faster?

Options:

A.

By providing an Agile process with default steps

B.

By providing code review standards and processes

C.

By providing device-awareness for mobile and desktops

D.

By providing change history and version control

Buy Now
Questions 30

Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c.

The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related.

What is the most efficient way to ensure that the Total job_o field kept up to data?

Options:

A.

Change TotalJob_o to a roll-up summary field.

B.

Create a record-triggered flow on ServiceJob_o.

C.

Create an Apex trigger on ServiceJob_o.

D.

Create a schedule-triggered flow on ServiceJob_o.

Buy Now
Questions 31

Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.

In the first steps of collecting information, UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce.

Which two should a developer implement to satisfy the requirements?

Choose2 answer

Options:

A.

Flow

B.

Future method

C.

Trigger

D.

Invocable method

Buy Now
Questions 32

A team of many developers work in their own individual orgs that have the same configuration as the production org.

Which type of org is best suited for this scenario?

Options:

A.

Full Sandbox

B.

Developer Edition

C.

Partner Developer Edition

D.

Developer Sandbox

Buy Now
Questions 33

What are three characteristics of change set deployments?

Choose 3 answers

Options:

A.

Change sets can only be used between related organizations.

B.

Change sets can be used to transfer records.

C.

Sending a change set between two orgs requires a deployment connection.

D.

Change sets can deploy custom settings data.

E.

Deployment is done in a one-way, single transaction.

Buy Now
Questions 34

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 Anonymous Apex to create the required data.

B.

Use Test.loadData < > and reference a CSV file in a static resource.

C.

Use SOQL to query the org for the required data.

D.

Use Test.loadData and reference a JSON file in Documents.

Buy Now
Questions 35

What are three capabilities of the tag when loading JavaScript resources in Aura components?

Choose 3 answers

Options:

A.

Loading files from Documents

B.

One-time loading for duplicate scripts

C.

Specifying loading order

D.

Loading scripts In parallel

E.

Loading externally hosted scripts

Buy Now
Questions 36

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?

Options:

A.

Add cuatom controller attributes to display the message.

B.

Include on the Visualforce page.

C.

Use a try/catch with a custom exception class.

D.

Perform the DML using the Database.upsert() method.

Buy Now
Questions 37

A developer created this Apex trigger that calls MyClass,myStartmethod:

The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code coverage.

What happens wtier the developer tries to deploy the ... and two classes to production, assuming no other code exists?

Options:

A.

The deployment fails because the Apr- MgQM has no code coverage.

B.

The deployment tails because no assertions mett made in the lest method.

C.

The deployment passes became the Apex code has the requited 75% code coverage.

D.

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

Buy Now
Questions 38

n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a ‘Contact and store the created Contact's 1D on the Opportunity.

Which update must the developer make in the flow?

Options:

A.

Add a new Get Records element.

B.

Add a new Create Records element.

C.

Add a new Update Records element.

D.

Add a new Roll back Records element

Buy Now
Questions 39

A developer at Universal Containers is taked with implementing a new Salesforce application that bwill be maintained completely by their company’s Salesforce admiknistrator.

Which two options should be considered for buildig out the business logic layerof the application?

Chosse 2 answer

Options:

A.

Validation Rules

B.

Record-Triggered flows

C, Scheduled

C.

Unvocable ActionsMoorche2023-06-13T14:55:00.20

Buy Now
Questions 40

Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?

Options:

A.

Use the Data Loader command line.

B.

Create a Schedulable Apex class.

C.

Schedule a report.

D.

Define a Data Export scheduled job.

Buy Now
Questions 41

Which three Salesforce resources can be accessed from a Lightning web component?

Choose 3 answers

Options:

A.

SVG resources

B.

Third-party web components

C.

Content asset files

D.

Static resources

E.

All external libraries

Buy Now
Questions 42

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 ogject.

Which two automationtools can be used to implement this feature?

Choose 2 answers

Options:

A.

Approval process

B.

Fast field Updates record-triggered flow

C.

Quick actions

D.

Account trigger

Buy Now
Questions 43

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
Questions 44

Given the following Anonymous Block:

Which one do you like?

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

Options:

A.

The transaction will fail due to exceeding the governor limit.

B.

The try/catch block will handle any DML exceptions thrown.

C.

The transaction will succeed and changes will be committed.

D.

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

Buy Now
Questions 45

A developer is creating a Lightning web component to showa list of sales records.

The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all

fields on the record except the commission field.

How should this be enforced so that the component works for both users without showing any errors?

Options:

A.

Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.

B.

Use Security. stripInaccessible to remove fields inaccessible to the current user.

C.

Use Lightning Data Service to get the collection of sales records.

D.

Use Lightning Locker Service to enforce sharing rules and field-level security.

Buy Now
Questions 46

Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?

Options:

A.

Database.insert (records, false)

B.

insert records

C.

insert (records, false)

D.

Database.insert (records, true)

Buy Now
Questions 47

While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?

Options:

A.

B.

C.

D.

Buy Now
Questions 48

As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted.

Which automation tool should be used to meet this business requirement?

Options:

A.

Workflow Rules

B.

Scheduled job

C.

Record-Triggered Flow

D.

Process Builder

Buy Now
Questions 49

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.

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 50

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 51

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

Options:

A.

View the code coverage percentage or the class using the Overalll code Coverage panel in the Developer Console Test tab.

B.

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

C.

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

D.

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

Buy Now
Questions 52

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 53

Universal Containers hires a developer to build a custom search page to help user- 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 able to return more records.

B.

SOQL is faster for text searches.

C.

SOSL is faster for tent searches.

D.

SOQL is able to return more records.

Buy Now
Questions 54

Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:

which three statements are accurate about debug logs?

Choose 3 answers

Options:

A.

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

B.

The maximum size of a debug log is 5 MB.

C.

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

D.

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

E.

System debug logs are retained for 24 hours.

Buy Now
Questions 55

Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers

Options:

A.

Renclerer

B.

Style

C.

Helper

D.

Controller

E.

Design

Buy Now
Questions 56

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

Options:

A.

Metadata APT

B.

Bulk API

C.

Setup Menu

D.

SalesforceDX

E.

Tooling API

Buy Now
Questions 57

How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?

Options:

A.

Use the Flow properties page.

B.

Use the code Coverage Setup page

C.

Use the Apex testresult class

D.

Use SOQL and the Tooling API

Buy Now
Questions 58

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 the upsert DML statement.

B.

Implement Change Data Capture.

C.

Implement a try/catch block for the DML.

D.

Remove null items from the list of Accounts.

Buy Now
Questions 59

Which two are best practices when it comes to component and application event handling? (Choose two.)

Options:

A.

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

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.

Try to use application events as opposed to component events.

Buy Now
Questions 60

A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page.

Without writing unnecessary code, which controller should be used for this purpose?

Options:

A.

Standard list controller

B.

Standard controller

C.

Lightning controller

D.

Custom controller

Buy Now
Questions 61

An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price.

What is the correct implementation?

Options:

A.

Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.

B.

Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.

C.

Implement the Line amount as a currency field and the order amount as a SUM formula field.

D.

Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.

Buy Now
Questions 62

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 63

A developer must create a lightning component that allows users to input contact record

information to create a contact record, including a salary__c custom field. what should the

developer use, along with a lightning-record-edit form, so that salary__c field functions as a

currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?

Options:

A.

B.

C.

D.

Buy Now
Questions 64

A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?

Options:

A.

AppExchange

B.

Salesforce CLI

C.

Visual Studio Core IDE

D.

Developer Console

Buy Now
Questions 65

What can be used to override the Account's standard Edit button for Lightning Experience?

Options:

A.

Lightning action

B.

Lightning component

C.

Lightning page

D.

Lightning flow

Buy Now
Questions 66

What are three considerations when using the @InvocableMethod annotation in Apex?

Choose 3 answers

Options:

A.

A method using the @InvocableMethod annotation must define a return value.

B.

A method using the @InvocableMethod annotation can have multiple input parameters.

C.

A method using the @InvocableMethod annotation must be declared as static

D.

A method using the @InvocableMethod annotation can be declared as Public or Global.

E.

Only one method using the @InvocableMethod annotqation can be defined per Apex class.

Buy Now
Questions 67

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

Options:

A.

100

B.

150

C.

0

D.

500

Buy Now
Questions 68

A developer needs to allow users to complete a form on an Account record that will create a 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 Dynamic Form,

B.

Add a Dynamic Action to the Account Record Page.

C.

Create a Custom Permission for the users.

D.

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

E.

Create a Lightning wet> component.

Buy Now
Questions 69

A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:

How can a developer use the Laptop Interface within the Silvertaptop class?

Options:

A.

@Extends(class=Laptop'')

public class SilverLaptop

B.

public calss SilverLaptop extends Laptop

C.

@Interface (class=''Laptop'')

public class SilverLaptop

D.

public class Silverlaptop implements Laptop

Buy Now
Questions 70

A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable.

Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletion?

Options:

A.

accountRec., isDeletable()

B.

Account, isDeletable ()

C.

AccountRec, ObjecType, ieDeletable ()

D.

Schena, sobjectType, Account, isDeletetable ()

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SU24)
Last Update: Oct 8, 2024
Questions: 235
$64  $159.99
$48  $119.99
$40  $99.99
buy now CRT-450