New Year Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

CRT-450 Questions and Answers

Question # 6

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

A.

Renderer

B.

Controller

C.

style

D.

Helper

E.

Design

Full Access
Question # 7

A developer deployed a trigger to update the status__c of Assets related to an Account when the Account’s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.

What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?

A.

Add List assets = [SELECT Id, Status_c FROM Asset WHERE AccountId = :acctId) to line 14 and iterate over the assets list in the for loop on line 15.

B.

Move all of the logic to a gueueabs class that queries for and updates the Assets and call it from the trigger.

C.

Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.

D.

Change the getAssecsTspdace method to process all Accounts in one call and call it outside of the £ox loop that starts on line 03.

Full Access
Question # 8

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

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.

Full Access
Question # 9

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:

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

A.

5

B.

6

C.

10

D.

15

Full Access
Question # 10

Which scenario is valid for execution by unit tests?

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.

Full Access
Question # 11

A company decides to implement a new process where every time an Opportunity is created, a follow up Task should be created and assigned to the Opportunity Owner.

What is the most efficient way for a developer to implement this?

A.

Apex trigger on Task

B.

Record-triggered flow on opportunity

C.

Auto-launched flow on Task

D.

Task actions

Full Access
Question # 12

A developer is implementing an Apex class for a financial system, Within the class, the variables ‘creditAmount’ and "debitAmount' should not be able to change once a value Is assigned.

In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers

A.

Use the static keyword and assign its value in the class constructor,

B.

Use the final keyword and assign its value in the class constructor.

C.

Use the static keyword and assign its value in a static initializer.

D.

Use the final keyword and assign its value when declaring the variable.

Full Access
Question # 13

Which three statements are accurate about debug logs?

Choose 3 answers

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.

Full Access
Question # 14

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

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.

Full Access
Question # 15

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 a picklist value for the status__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

A.

Apex trigger

B.

validation rule

C.

After record-triggered flow

D.

Before record-triggered flow

Full Access
Question # 16

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of tests 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 @TestSetup with a void method.

B.

Create test data before Test.startTest {} in the unit test,

C.

Add @TsTest (seeAllData=true) at the start of the unit test class.

D.

Create a mock using the Stub API.

Full Access
Question # 17

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

Choose 3 answers

A.

Specifying loading order

B.

One-time loading for duplicate scripts

C.

Loading files from Documents

D.

Loading externally hosted scripts

E.

Loading scripts in parallel

Full Access
Question # 18

Which exception type cannot be caught?

A.

NoAccessException

B.

LimitException

C.

CalloutException

D.

A custom exception

Full Access
Question # 19

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?

A.

Partner Developer Edition

B.

Developer Edition

C.

Developer Sandbox

D.

Full Sandbox

Full Access
Question # 20

A developer must implement a checkpaymentpbrocaessox class that provides check processing payment capabilities that adhere to what is defined for payments in the paymentProcsssor Interface.

Which implementation is correct to use the paymenterocesscr interface class?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 21

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

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?

A.

Controller extension

B.

Custom controller

C.

Apex trigger

D.

Validation rule

Full Access
Question # 22

What are two use cases for executing Anonymous Apex code?

Choose 2 answers

A.

To run a batch Apex class to update all Contacts

B.

To delete 15,000 inactive Accounts in a single transaction after a deployment

C.

To add unit test code coverage to an org

D.

To schedule an Apex class to run periodically

Full Access
Question # 23

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?

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.

Full Access
Question # 24

A developer considers the following snippet of code:

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

A.

1

B.

2

C.

4

D.

3

Full Access
Question # 25

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

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

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

Full Access
Question # 26

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 # 27

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?

A.

Quick Actions

B.

Validation rules

C.

Record triggered flows

D.

Apex triggers

Full Access
Question # 28

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?

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.

Full Access
Question # 29

A developer is asked to write helper methods that create test data for unit tests.

What should be changed in the TestUtils class so that its methods are only usable by unit test methods?

A.

Remove static from line 03.

B.

Add @IsTest above line 03.

C.

Change public to private on line 01.

D.

Add @1sTest above line 01.

Full Access
Question # 30

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

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.

Full Access
Question # 31

What are two benefits of using declarative customizations over code? Choose 2 answers

Choose 2 answers

A.

Declarative customization* automatically generate test classes.

B.

Declarative customizations cannot generate run time errors.

C.

Declarative customizations automatically update with each Salesforce release.

D.

Declarative customizations generally require less maintenance.

Full Access
Question # 32

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

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

Full Access
Question # 33

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

Choose 2 answers

A.

After-save record-triggered flow

B.

Criteria-based sharing calculations

C.

Email messages

D.

Roll-up summary fields

Full Access
Question # 34

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

A.

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

B.

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

C.

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

D.

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

Full Access
Question # 35

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)

B)

C)

D)

A.

Option

B.

Option

C.

Option

D.

Option

Full Access
Question # 36

A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the 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.

Increase the test class coverage on the helper class.

C.

Remove the failing test methods from the test class.

D.

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

Full Access
Question # 37

Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.

Which two strategies can a developer use to accomplish this?

A.

Use a validation rule.

B.

Use a before-save Apex trigger.

C.

Use an automatically launched Approval Process.

D.

Use an auto-response rule.

Full Access
Question # 38

A developer created these three Rollup Summary fields in the custom object, project_ c:

The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project.

Which should the developer use to implement the business requirement in order to minimize maintenance overhead?

A.

Apex trigger

B.

Roll-up summary field

C.

Formula field

D.

Record-triggered flow

Full Access
Question # 39

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

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

Full Access
Question # 40

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.

Lightning Web Components

B.

Visualforce

C.

Flow

D.

VUE JavaScript framework

Full Access
Question # 41

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

Full Access
Question # 42

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.

Flows

C.

Custom objects and fields

D.

Relationships

E.

Triggers

Full Access
Question # 43

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)

B)

C)

D)

A.

Option A

B.

Option

C.

Option

D.

Option

Full Access
Question # 44

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)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 45

A lead developer creates a virtual class called "OrderRequest". Consider the following code snippet:

How can a developer use the OrderRequest class within the CustomerOrder class?

A.

public class CusctomerOrder implements Order

B.

@Implements (class="OrderRequest”)

public class CusatomaxOrder

C.

Extends (class="OrderRequest”) pubklic

class CuastomerOrder

D.

public class CustomerOrder extends OrderRequest

Full Access
Question # 46

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

A.

100

B.

0

C.

500

D.

150

Full Access
Question # 47

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

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.

Full Access
Question # 48

An org has an existing flow that edits an Opportunity with an Update Records element. A developer must update the flow to also create a Contact and store the created Contact’s ID on the Opportunity.

Which update must the developer make in the flow?

A.

Add a new Update Records element.

B.

Add a new Get Records element.

C.

Add a new Roll Back Records element.

D.

Add a new Create Records element.

Full Access
Question # 49

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?

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.

Full Access
Question # 50

A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.

What is the first step towards troubleshooting the issue?

A.

Disable the batch job and recreate it with a smaller number of records.

B.

Check the debug logs for the batch job.

C.

Decrease the batch size to reduce the load on the system.

D.

Check the asynchronous job monitoring page to view the job status and logs.

Full Access
Question # 51

A developer creates a custom exception as shown below:

public class ParityException extends Exception. {}

What are two ways the developer can fire the exception in Apex? Choose 2 answers

A.

throw new ParityException() ;

B.

new parityException. ('parity does not match');

C.

throw new ParityException ('parity docs not match');

D.

new ParityExcaption () ;

Full Access
Question # 52

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.

Which Visualforce feature supports this requirement?

A.

Controller Extension and tag

B.

Standard Controller with Custom List Controller extension

C.

Standard controller and the recordsetzvar page attribute

D.

Custom List Controller with recordSetvar page attribute

Full Access