Black Friday Biggest Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

Salesforce CRT-450 Dumps

Page: 1 / 17
Total 174 questions

Salesforce Certified Platform Developer I (SU24) Questions and Answers

Question 1

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces.

as

Which is the correct implementation?

A)

as

B)

as

Options:

A.

Option A

B.

Option B

Question 2

What are two characteristics related to formulas?

Choose 2 answers

Options:

A.

Formulas are calculated at runtime and are not stored in the database.

B.

Formulas can reference themselves.

C.

Formulas can reference values in related objects.

D.

Fields that are used in a formula field can be deleted or edited without editing the formula.

Question 3

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

Options:

A.

By providing change history and version control

B.

By providing an Agile process with default steps

C.

By providing device-awareness for mobile and desktops

D.

By providing code review standards and processes

Question 4

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.

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

D.

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

Question 5

A developer must write an Apex 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 deletions?

Options:

A.

Account,iaDelecable ()

B.

accountRec.a0biectType.iaDeletable()

C.

accountRec.islCelezable()

D.

Schema.sObjectType.Account,isDeletetable() Account,isDelecable ()

Question 6

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

Options:

A.

Use SOQL and the Tooling APL.

B.

Use the Flow Properties page.

C.

Use the Code Coverage Setup page.

D.

Use the ApextestResult class.

Question 7

Which scenario is valid for execution by unit tests?

Options:

A.

Load data from a remote site with a callout.

B.

Execute anonymous Apex as a different user,

C.

Generate a Visualforce PDF with getContentASPDF

D.

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

Question 8

Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 9

Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce.

How should the Order Number field be defined in Salesforce?

Options:

A.

Direct Lookup

B.

Lookup

C.

External ID and Unique

D.

Indirect Lookup

Question 10

team of developers is working on a source-driven project that allows them to work independently, with many different org configurations.

Which type of Salesforce orgs should they use for their development?

Options:

A.

Full Copy sandboxes

B.

Developer orgs

C.

Developer sandboxes

D.

Scratch orgs

Question 11

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.

Lightning Web Components

B.

Visualforce

C.

Flow

D.

VUE JavaScript framework

Question 12

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

Choose 3 answers

Options:

A.

All external libraries

B.

SVG resources

C.

Third-party web components

D.

Content asset files

E.

Static resources

Question 13

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.

Question 14

A business has a proprietary Order Management System (QMS) that creates orders from Its website and fulfills the orders. When the order Is created in the OMS, an integration also creates an order record In Salesforce and relates It to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates it in Salesforce.

The business notices that each update from the OMS creates a new order record in Salesforce.

Which two actions should prevent the duplicate order records from being created in Salesforce?

Options:

A.

Use the email on the contact record as an external ID.

B.

Use the order number from the OMS as an external ID.

C.

Write a trigger on the Order object to delete the duplicates.

D.

Ensure that the order number in the OMS is unique.

Question 15

Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross the Shadow DOM boundary?

Options:

A.

bubbles: true, composed: true

B.

bubbles: true, composed: false

C.

bubbles: false, composed: false

D.

bubbles: false, composed: true

Question 16

A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.

What should a developer do to allow their code to move some existing Orderltem records to a new Order record?

Options:

A.

Create a junction object between OrderItem and Order.

B.

Select the Allow reparenting option on the master-detail relationship.

C.

Change the master-detail relationship to an external lookup relationship.

D.

Add without sharing to the Apex class declaration.

Question 17

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 PoataliCodeToTimezcone o custom object.

Which two automation tools can be used to implement this feature?

Choose 2 answers

Options:

A.

Quick actions

B.

Account trigger

C.

Approval process

D.

Fast Field Updates record-triggered flow

Question 18

A developer wants to send an outbound message when a record meets a specific criteria.

Which two features satisfy this use case?

Choose 2 answers

Options:

A.

Entitlement Process can be used to check the record criteria and send an outbound message without Apex code.

B.

Approval Process can be used to check the record criteria and send an outbound message without Apex code.

C.

Next Best Action can be used to check the record criteria and send an outbound message.

D.

Flow Builder can be used to check the record criteria and send an outbound message.

Question 19

If Apex code executes inside the =x=cuz=() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?

Choose 2 answers

Options:

A.

The Apex governor limits are reset for each iteration of the execute () method.

B.

The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.

C.

The Apex governor limits will use the asynchronous limit levels.

D.

The Apex governor limits are omitted while calling the constructor of the Apex class.

Question 20

The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist:

Roll-up summary fields

Custom validation rules

Duplicate rules

developer created a trigger on the Account object.

Which two things should the developer consider while testing the trigger code?

Choose 2 answers

Options:

A.

Rollup summary fields can cause the parent record to go through Save.

B.

The validation rules will cause the trigger to fire again,

C.

Duplicate rules are executed once all DML operations commit to the database.

D.

The trigger may fire multiple times during a transaction.

Question 21

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:

as

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

Question 22

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.

Question 23

Considering the following code snippet:

as

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.

Question 24

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.

Question 25

A company has a custom object, order__ ¢, that has a required, unique external ID field called crder_number_c.

Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of order_c records using the external ID field?

Options:

A.

merge orders;

B.

merge orders Order_Number_ c;

C.

upsert orders:

D.

upserrc orders Order Number_c;

Question 26

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

Options:

A.

Lightning component

B.

Lightning action

C.

Lightning flow

D.

Lightning page

Question 27

A developer completed modifications to a customized feature that is comprised of two elements:

* Apex trigger

* Trigger handler Apex class

What are two factors that the developer must take into account to properly deploy the modification to the production environment?

Choose 2 answers

Options:

A.

All methods in the test classes must use @isTest.

B.

Apex classes must have at least 75% code coverage org-wide.

C.

Test methods must be declared with the testMethod keyword.

D.

At least one line of code must be executed for the Apex trigger.

Question 28

Universal Containers (UC) processes orders in Salesforce in a custom object, ord=xr <. They also allow sales reps to upload CSV files with thousands of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC’s enterprise resource planning (ERP) system.

After the status for an order__ c is first set to 'Placed’, the order information must be sent to a REST endpoint in the ERP system that can process one order at a time.

What should the developer implement to accomplish this?

Options:

A.

Callout from an Qfuture method called from a trigger

B.

Callout from a Batchable class called from a scheduled job

C.

Flow with a callout from an invocable method

D.

Callout from a Queueable class called from a trigger

Question 29

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application.

Which three options should be used to build out the database layer for the application?

Choose 3 answers

Options:

A.

Roll-up summaries

B.

Flows

C.

Custom objects and fields

D.

Relationships

E.

Triggers

Question 30

A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank.

Which automation allows the developer to satisfy this requirement in the most efficient manner?

Options:

A.

An approval process on the Opportunity object

B.

A record trigger flow on the Opportunity object

C.

An Apex trigger on the Opportunity object

D.

An error condition formula on a validation rule on Opportunity

Question 31

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

Choose 3 answers

Options:

A.

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

B.

A method using the @InvocableMathod annotation must define a return value,

C.

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

D.

A method using the @InvocablsMethod annotation must be declared as static.

E.

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

Question 32

A developer considers the following snippet of code:

as

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

Options:

A.

1

B.

2

C.

4

D.

3

Question 33

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.

Question 34

In the following example, which sharing context will myMethod execute when it is invoked?

as

Options:

A.

Sharing rules will be inherited from the calling context.

B.

Sharing rules will not be enforced for the running user.

C.

Sharing rules will be enforced by the instantiating class.

D.

Sharing rules will be enforced for the running user.

Question 35

A developer created a trigger on a custom object. This custom object also has some dependent pick lists.

According to the order of execution rules, which step happens first?

Options:

A.

Old values are overwritten with the new record values.

B.

JavaScript validation is run in the browser,

C.

System validation is run for maximum field lengths,

D.

The original record Is loaded from the database.

Question 36

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

Options:

A.

Renderer

B.

Controller

C.

style

D.

Helper

E.

Design

Question 37

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

as

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

Options:

A.

public class Silverlaptop extends Lapctop

B.

public class Silverlaprop implementa Laptop

C.

Extends (class="Laptop”) publiic claas Silverlaptcp

D.

Interface (class="Laptop") public class Silverlaptop

Question 38

Which annotation exposes an Apex class as a RESTful web service?

Options:

A.

@HttpInvocable

B.

@RemoteAction

C.

@RestResource (urlMapping="'/mySexrvice/*')

D.

@AuraEnabled(cacheable=true)

Question 39

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

Question 40

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

Choose 2 answers

Options:

A.

After-save record-triggered flow

B.

Criteria-based sharing calculations

C.

Email messages

D.

Roll-up summary fields

Question 41

The Job_application_ c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is the master.

As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is 'Technology', while also retrieving the Contact's Job_Application__c records.

Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 42

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.

Question 43

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.

Question 44

A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record.

How can the developer find the current user's default record type?

Options:

A.

Use Opportunity.SObjectType.gethescribe () .getRaecordlypaInsos () to get a list of record types, and iterate through them until 2sDefaultRecordTypeMapping () is true.

B.

Query the Profile where the ID equals uzexInfo.getProfilelD () and then use the profile.Cpportunity.gesDefaultRecordTyp= () method.

C.

Use the Schema.userInfo.Cpportunity.getlefaultRecordIype () method.

D.

Create the opportunity and check the opportunity. recordTyp=, which will have the record ID of the current user's default record type, before inserting.

Question 45

The following Apex method is part of the Contactservice class that is called from a trigger:

as

How should the developer modify the code to ensure best practices are met?

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 46

A developer identifies the following triggers on the Expense__c object:

as

The triggers process before delete, before insert, and before update events respectively.

Which two techniques should the developer implement to ensure trigger best practices are followed?

Choose 2 answers

Options:

A.

Unify all three triggers in a single trigger on the expense__c object that includes all events.

B.

Create helper classes to execute the appropriate logic when a record is saved.

C.

Maintain all three triggers on the expense__c object, but move the Apex logic out of the trigger definition.

D.

Unify the before insert and before update triggers and use Flow for the delete action.

Question 47

A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.

In which two ways can this be accomplished?

Choose 2 answers

Options:

A.

The parent component can use a public property to pass the data to the child component.

B.

The parent component can invoke a public method in the child component.

C.

The parent component can use a custom event to pass the data to the child component.

D.

The parent component can use the Apex controller class to send data to the child component.

Question 48

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)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 49

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.

Question 50

How should a developer write unit tests for a private method in An Apex class?

Options:

A.

Add a test method in the Apex class,

B.

Use the SeeAllData annotation.

C.

Use the @TestVisible annotation.

D.

Mark the Apex class as global.

Question 51

A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.

The following code is executed in the Developer Console using the Execute Anonymous window:

as

How many total accounts will be in the org after this code Is executed?

Options:

A.

5

B.

6

C.

10

D.

15

Question 52

A developer created a Lightning web component called statusComponent to be inserted into the Account record page.

Which two things should the developer do to make this component available?

Choose 2 answers

A)

as

B)

as

C)

as

D)

as

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 1 / 17
Total 174 questions