Labour Day - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

CRT-450 Questions and Answers

Question # 6

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?

A.

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

B.

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

C.

Use Test,getStandardPricebookid ( ) to get the standard price book ID.

D.

Use @IsTest (SeeAllData=True) and delete the existing standard price book

Full Access
Question # 7

A developer Is Integrating with a legacy on-premise SQL database.

What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?

A.

Lookup field

B.

External ID field

C.

Formula field

D.

External Object

Full Access
Question # 8

A develop completed modification 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?

A.

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

B.

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

C.

All methods in the test classes must use @isTest.

D.

Test methods must be declared with the testMethod keyword.

Full Access
Question # 9

A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?

A.

Write a class that extends HTTPCalloutMock.

B.

Write a class that implements the HTTPCalloutMock interface.

C.

Write a class that implements the WebserviceMock interface.

D.

Write a class that extends WebserviceMock

Full Access
Question # 10

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

A.

Roll-Up Summaries

B.

Triggers

C.

Relationships

D.

Flow

E.

Custom Objects and Fields

Full Access
Question # 11

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?

A.

An Apex controller

B.

An Apex REST class

C.

An outbound message

D.

An invocable method

Full Access
Question # 12

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

A.

Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() | |method. ] |

B.

Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until [ J

isDefaultRecordTypeMapping() is true. Pencil & Paper |

C.

Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. <

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

Full Access
Question # 13

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?

A.

AppExchange

B.

Salesforce CLI

C.

Visual Studio Core IDE

D.

Developer Console

Full Access
Question # 14

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?

A.

Create a flow to execjte the query and invoke from the Lightning component

B.

Write the query in a custom Lightning web component wrapper ana invoke from the Lightning component,

C.

Invoke an Apex class with the method annotated as &AuraEnabled to perform the query.

D.

Use the Salesforce Streaming API to perform the SOQL query.

Full Access
Question # 15

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?

A.

Standard list controller

B.

Standard controller

C.

Lightning controller

D.

Custom controller

Full Access
Question # 16

A developer created this Apex trigger that calls Myclass.myStaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage.

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

A.

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

B.

The deployment fails because no assertions were made in the test method.

C.

The deployment passes because the Apex code has the required >75% code coverage.

D.

The deployment fails because the Apex trigger has no code coverage.

Full Access
Question # 17

Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job.

What should a developer implement to represent that an applicant has applied for a job?

A.

Master-detail field from Applicant to Job

B.

Formula field on Applicant that references Job

C.

Junction object between Applicant and Job

D.

Lookup field from Applicant to Job

Full Access
Question # 18

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

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.

Full Access
Question # 19

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

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

Full Access
Question # 20

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

A.

ernit()

B.

fireEvent()

C.

fire()

D.

registerEvent()

Full Access
Question # 21

What are three ways for a developer to execute tests in an org? Choose 3.

A.

Bulk API

B.

Tooling API

C.

Setup Menu

D.

Salesforce DX

E.

Metadata API.

Full Access
Question # 22

Assuming that naze is 8 String obtained by an tag on 8 Visualforce page, which two SOQL queries performed are safe from SOQL injection?

‘Choose 2 answers

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 23

Which code displays the contents of a Visualforce page as a PDF?

A.

B.

C.

D.

Full Access
Question # 24

A business has a proprietary Order Management System (OMS) that creates orders from their 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. It is noticed that each update from the OMS creates a new order record in Salesforce.

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

Choose 2 answers

A.

Ensure that the order number in the OMS is unique.

B.

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

C.

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

D.

Write a before trigger on the order object to delete any duplicates.

Full Access
Question # 25

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

A.

Approval process

B.

Fast field Updates record-triggered flow

C.

Quick actions

D.

Account trigger

Full Access
Question # 26

A developer has the following requirements:

• Calculate the total amount on an Order.

• Calculate the line amount for each Line Item based on quantity selected and price.

• Move Line Items to a different Order if a Line Item is not in stock.

Which relationship implementation supports these requirements on its own7

A.

Line Item has a re-parentable master-detail field to Order.

B.

Order has a re-parentable master-detail field to Line Item.

C.

Line Item has a re-parentable lookup field to Order.

D.

Order has a re-parentable lookup field to Line Item.

Full Access
Question # 27

Which code in a Visualforce page and/or controller might present a security vulnerability?

A.

B.

C.

D.

Full Access
Question # 28

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

A.

Renclerer

B.

Style

C.

Helper

D.

Controller

E.

Design

Full Access
Question # 29

Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers

A.

Apex Flex Queue

B.

Apex Jobs

C.

Paused Flow Interviews component

D.

Time-Based Workflow Monitor

Full Access
Question # 30

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?

A.

An Apex controller

B.

An Apex REST class

C.

An outbound message

D.

An invocable method

Full Access
Question # 31

which statement is true regarding execution order when triggers are associated to the same object and event?

A.

Trigger execution order cannot be guaranteed.

B.

executed In the order they are modified.

C.

Triggers are executed alphabetically by trigger name.

D.

Triggers are executed in the order they are created.

Full Access
Question # 32

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?

A.

Lightning-flow

B.

Aura:flow

C.

Lightning:flow

D.

Aura:flow

Full Access
Question # 33

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?

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'

Full Access
Question # 34

Which two sfdx commands can be used to add testing data to a Developer sandbox?

A.

Forced: data:bulk:upsert

B.

Forced: data: object :upsert

C.

Forced: data: tree: upsert

D.

Forced: data:async:upsert

Full Access
Question # 35

A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug__c.

As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able t

report multiple bugs and bugs can also be reported by multiple companies.

What is needed to allow this reporting?

A.

Roll-up summary field of Bug__c on Account

B.

Junction object between Bug__c and Account

C.

Lookup field on Bug__c to Account

D.

Master-detail field on Bug__c to Account

Full Access
Question # 36

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?

A.

Use the Data Loader command line.

B.

Create a Schedulable Apex class.

C.

Schedule a report.

D.

Define a Data Export scheduled job.

Full Access
Question # 37

A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.

When creating the Apex method, which annotation should a developer use to ensure the method

Can be used within the flow?

A.

@future

B.

@RemoteAction

C.

@InvocableMethod

D.

@AuraEnaled

Full Access
Question # 38

For which three items can a trace flag be configured?

Choose 3 answers

A.

Process Builder

B.

Visualforce

C.

Apex Class

D.

Apex Trigger

E.

User

Full Access
Question # 39

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?

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

Full Access
Question # 40

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?

A.

A record trigger flow on the Opportunity object

B.

An Apex trigger on the Opportunity object

C.

approval process on the Opportunity object

D.

An error condition formula on a validation rule on Opportunity

Full Access
Question # 41

What are two benefits of using External IDs?

Choose 2 answers

A.

An External ID field can be used Co reference an ID from another external system.

B.

An External ID can be a formula field to help create a unique key from two fields in Salesforce.

C.

An External ID can be used with Salesforce Mobile to make external data visible.

D.

An External ID is indexed and can improve the performance of SOQl quenes.

Full Access
Question # 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?

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 43

A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated.

What is the most appropriate debugging approach to troubleshoot the issue?

A.

Disable the trigger m production and test to see If the issue still occurs.

B.

Use the Apex Interactive Debugger to step through the code and Identify the issue.

C.

Review the Historical Event logs to Identify the source of the issue.

D.

Add system.debug statements to the code to track the execution flow and identify the issue.

Full Access
Question # 44

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: "Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required" What should the developer do to successfully deploy the new Apex trigger and helper class?

A.

Create a test class and methods to cover the Apex trigger

B.

Run the tests using the 'Run All Tests' method.

C.

Remove the falling test methods from the est class.

D.

Increase the test class coverage on the helper class

Full Access
Question # 45

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?

A.

Workflow Rules

B.

Scheduled job

C.

Record-Triggered Flow

D.

Process Builder

Full Access
Question # 46

Refer to the following Apex code:

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

A.

0

B.

1

C.

2

D.

3

Full Access
Question # 47

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

Choose 2 answer

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

Full Access
Question # 48

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?

A.

Flow

B.

Lightning Web Components

C.

Visualforce

D.

VUE JavaScript framework

Full Access
Question # 49

Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV’s package namespace.

Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?

A.

Declare the class and method using the public access modifier.

B.

Declare the class as global and use the public access modifier on the method.

C.

Declare the class as public and use the global access modifier on the method.

D.

Declare the class and method using the global access modifier.

Full Access
Question # 50

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?

A.

Fire a notification.

B.

Update a property on the parent.

C.

Call a method in the Apex controller.

D.

Create a custom event.

Full Access
Question # 51

A developer is tasked with building a custom Lightning web component to collect Contact information.

The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users.

What should the developer use in their Lightning Web Component to support the security requirements?

A.

force-input-field

B.

ui-input-field

C.

aura-input-field

D.

lightning-input-field

Full Access
Question # 52

What should be used to create scratch orgs?

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Full Access
Question # 53

Universal Container wants Opportunities to no longer be editable when itreaches the Closed/Won stage. Which two strategies can a developer use to accomplish this?

Choose2 answer

A.

Use a validation

B.

Use a trigger

C.

Use an after-save flow.

D.

Use the Process Automation settings.

Full Access
Question # 54

What is the value of the Trigger.old context variable in a before insert trigger?

A.

A list of newly created sObjects without IDs

B.

null

C.

Undefined

D.

An empty list of sObjects

Full Access
Question # 55

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

A.

VS Code

B.

SFDX CLI

C.

Change Sets

D.

Developer Console

Full Access
Question # 56

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

A.

Upload the SVG as a static resource.

B.

Import the static resource and provide a getter for it in JavaScript.

C.

Reference the getter in the HTML template.

D.

Reference the import in the HTML template.

E.

Import the SVG as a content asset file.

Full Access
Question # 57

Universal Containers has a Visualforce page that displays a table of every Container_c. being ……. Is falling with a view state limit because some of the customers rent over 10,000 containers.

What should a developer change about the Visualforce page to help with the page load errors?

A.

Use Lazy loading and a transient List variable.

B.

Use JavaScript remoting with SOQL Offset.

C.

Implement pagination with an OffsetController.

D.

Implement pagination with a StandardSetController,

Full Access
Question # 58

A developer is writing tests for a class and needs to insert records to validate functionality.

Which annotation method should be used to create record for every method in the test class?

A.

@isTest (SeeAllData-true)

B.

@FreTest

C.

@TestSetup

D.

@StartTest

Full Access
Question # 59

Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers

A.

Use if (Schema, sobjectType, Contact, isUpdatable ( ) )

B.

Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )

C.

Use if (Schema.sObjectType.Contact.isAccessible ( ) )

D.

Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Full Access
Question # 60

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?

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.

Full Access
Question # 61

How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?

A.

B.

C.

D.

Full Access
Question # 62

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?

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.

Full Access
Question # 63

A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.

Which design framework should the developer consider to ensure scalability and maintainability?

A.

Flux (view, action, dispatcher, and store)

B.

Waterfall Model

C.

Agile Development

D.

Model-View-Controller (MVC)

Full Access
Question # 64

Which exception type cannot be caught?

A.

B.

C.

D.

Full Access
Question # 65

A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?

A.

Public class CreditcardPayment extends Payment {

public override void makePayment(Decimal amount) { /*implementation*/ }

}

B.

Public class CreditCardPayment implements Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

C.

Public class CreditCardPayment extends Payment {

public virtual void makePayment(Decimal amount) { /*implementation*/ }

}

D.

Public class CreditCardPayment implements Payment {

public override void makePayment(Decimal amount) { /*Implementation*/ }

}

Full Access
Question # 66

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

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

A.

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

B.

A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience

C.

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

D.

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

Full Access
Question # 67

Which action may cause triggers to fire?

A.

Updates to Feed Items

B.

Renaming or replacing a picklist entry

C.

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

D.

Cascading delete operations

Full Access
Question # 68

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?

A.

B.

C.

D.

Full Access
Question # 69

A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or updated. The field update in the workflow rule is configured to not re-evaluate workflow rules.

What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?

A.

1

B.

3

C.

4

D.

2

Full Access
Question # 70

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

A.

Developer Console

B.

VS Code

C.

Force.com IDE

D.

Execute Anonymous

Full Access