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

CRT-450 Salesforce Certified Platform Developer 1 Exam Questions and Answers

Questions 4

What are two benefits of using External IDs?

Choose 2 answers

Options:

A.

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

B.

An External ID can be a formula field ta 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 1D is indexed and can improve the performance of SOOL queries.

Buy Now
Questions 5

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

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

Choose 3 answers

Options:

A.

String nextPage = controller.save().getUrl ();

B.

ApexPages.currentPage ().getParametera(}.put{ ' input ' , " TeatValue ' );

C.

insert pageret;

D.

public Extendedcontroller (ApexPages.Standardcontraller entrl) { }

E.

Test. setCurrentPage (pageRef) ;

Buy Now
Questions 6

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.

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

C.

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

D.

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

Buy Now
Questions 7

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

What are two characteristics of declarative development over programmatic customization?

Choose 2 answers

Options:

A.

Declarative development does not require Apex test classes.

B.

Declarative development has higher design limits and query limits,

C.

Declarative development can be done using the Setup menu.

D.

Declarative code logic does not require maintenance or review.

Buy Now
Questions 8

A software company uses the following objects and relationships:

* Case: to handle customer support issues

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

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

Case and Defect__c have Private organization-wide defaults.

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

Options:

A.

Share the parent Cast record Defect_c records.

B.

Share the parent Case and record_c record.

C.

Share the parent Defect__c record.

D.

Share the case_Defect_c record.

Buy Now
Questions 9

Which two events need to happen when deploying to a production org?

Choose 2 answers

Options:

A.

All custom objects must have visibility set to a value other than in Development.

B.

All Apex code must have at least 75% test coverage.

C.

All triggers must have some test coverage

D.

All Visual flows must have at least 1% test coverage.

Buy Now
Questions 10

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

Which Visualforce feature supports this requirement?

Options:

A.

Standard Controller with Custom List Controller extension

B.

Custom List Controller with recorasetvar page attribute

C.

Controller Extension and < spex:listButton > tag

D.

Standard controller and the recordsetvar page attribute

Buy Now
Questions 11

(Full question statement)

Universal Containers recently transitioned fromClassic to Lightning Experience. One of its business processes requirescertain values from the Opportunity objectto be sent via anHTTP REST calloutto itsexternal order management systemwhen the user presses a custom button on the Opportunity detail page.

Example fields:

Name

Amount

Account

Which two methods should the developer implement to fulfill the business requirement?

Choose 2 answers.

Options:

A.

Create a customVisualforce quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page.

B.

Create anafter update triggeron the Opportunity object that calls a helper method using @future(callout=true) to perform the HTTP REST callout.

C.

Create aLightning component quick actionthat performs the HTTP REST callout and use it on the Opportunity detail page.

D.

Create aRemote Actionon the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.

Buy Now
Questions 12

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 SOQL to query the org for the required data.

B.

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

C.

Use Anonymous Apex to create the required data.

D.

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

Buy Now
Questions 13

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:

CRT-450 Question 13

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

Options:

A.

5

B.

6

C.

10

D.

15

Buy Now
Questions 14

A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to include helper methods that are not used by the Web Application in the implementation of the Web Service Class.

Which code segment shows the correct declaration of the class and methods?

Options:

A.

apexCopywebservice class WebServiceClass {private Boolean helperMethod() { /* implementation ... */ }global static String updateRecords() { /* implementation ... */ }}

B.

apexCopyglobal class WebServiceClass {private Boolean helperMethod() { /* implementation ... */ }webservice static String updateRecords() { /* implementation ... */ }}

C.

apexCopywebservice class WebServiceClass {private Boolean helperMethod() { /* implementation ... */ }webservice static String updateRecords() { /* implementation ... */ }}

D.

apexCopyglobal class WebServiceClass {private Boolean helperMethod() { /* implementation ... */ }global String updateRecords() { /* implementation ... */ }}

Buy Now
Questions 15

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.

How can the developer make sure that validation rule violations are displayed?

Options:

A.

Add custom controller attributes to display the message.

B.

Use a try/catch with a custom exception class.

C.

Include < apex:messages > on the Visualforce page.

D.

Perform the DML using the database.unsert() method,

Buy Now
Questions 16

A developer must perform a complex SOQL query that joins two objects in a Lightning component.

How can the Lightning component execute the query?

Options:

A.

Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.

B.

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

C.

Use the Salesforce Streaming APL to perform the SOQL query.

D.

Create a flow to execute the query end invoke from the Lightning component.

Buy Now
Questions 17

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 cade and Lightning Components.

C.

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

D.

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

Buy Now
Questions 18

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

Options:

A.

An empty list of sObjects

B.

Undefined

C.

null

D.

A list of newly created sObjects without IDs

Buy Now
Questions 19

A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable ' s state between trigger executions.

How should the developer declare maxAttempts to meet these requirements?

Options:

A.

Declare maxattempts as a constant using the static and final keywords.

B.

Declare maxattempts as a member variable on the trigger definition.

C.

Declare maxattempts as a variable on a helper class.

D.

Declare maxAttempts as a private static variable on a helper class.

Buy Now
Questions 20

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

Options:

A.

< apex:outputText value= " {!SCurrentPage.parameters.userInput} " / >

B.

< apex:outputText escape= " false " value= " {!sCurrentPage.parameters.userInput} " / >

C.

< apex:outputField value= " {!ctrl.userInput} " rendered= " {!isEditable} " / >

D.

< apex:outputField value= " {!ctrl.userInput} " / >

Buy Now
Questions 21

What are two ways a developer can get the status of an enqueued job for a class that implements the queueable interface?

Choose 2 answers

Options:

A.

View the Apex Status page

B.

View the Apex Jobs page

C.

Query the AsyncApexJob object

D.

View the Apex Flex Queue

Buy Now
Questions 22

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:

ist < Contact > performSearch (String lastName} [

return Database.query( ' SELECT Id, FirstName, LastName FROM Contact WHERE LastName Like

s ' +lastName+ ' s ' " )?;

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 sacapeSingleQuotes method to sanitize the parameter before its use.

C.

Use the ¢Readonly annotation and the with sharing keyword on the class.

D.

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

Buy Now
Questions 23

A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations.

In this implementation scenario, which two options are.. of the Controller according to the MVC architecture?

Choose 2 answers

Options:

A.

HTML file

B.

Apex class

C.

JavaScript file

D.

XML file

Buy Now
Questions 24

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

Choose 2 answers

Options:

A.

Developer Console

B.

Apex Jobs

C.

Paused Flow Interviews component

D.

Apex Flex Queue

Buy Now
Questions 25

Assuming that name is a String obtained by a Visualforce page, which two SOQL queries performed are safe from SOQL injection? (Choose two.)

Options:

A.

apexCopyString query = ' % ' + name + ' % ' ;List < Account > results = [SELECT Id FROM Account WHERE Name LIKE :query];

B.

apexCopyString query = ' SELECT Id FROM Account WHERE Name LIKE \ ' % ' + name.noQuotes() + ' %\ ' ' ;List < Account > results = Database.query(query);

C.

apexCopyString query = ' SELECT Id FROM Account WHERE Name LIKE \ ' % ' + String.escapeSingleQuotes(name) + ' %\ ' ' ;List < Account > results = Database.query(query);

D.

apexCopyString query = ' SELECT Id FROM Account WHERE Name LIKE \ ' % ' + name + ' %\ ' ' ;List < Account > results = Database.query(query);

Buy Now
Questions 26

Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.

What should the developer do to fulfill the business request in the quickest and most effective manner?

Options:

A.

Rewrite all Visualforce pages as Lightning components.

B.

Set the attribute enableLightning to true in the definition.

C.

Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.

D.

Incorporate the Salesforce Lightning Design System CSS stylesheet Into the JavaScript applications.

Buy Now
Questions 27

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.

for (Account a : Trigger.new) {

if (a.AnnualRevenue > 1000000) {

List < Opportunity > oppList = [SELECT Id FROM Opportunity WHERE AccountId = :a.Id];

if (oppList.size() == 0) {

Opportunity oppty = new Opportunity(Name = a.Name, StageName = ' Prospecting ' , CloseDate = System.today().addDays(30));

insert oppty;

}

}

}

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.

Query for existing opportunities outside the for loop.

B.

Check if all the required fields for Opportunity are being added on creation.

C.

Move the DML that saves opportunities outside the for loop.

D.

Use Database query to query the opportunities.

Buy Now
Questions 28

The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:

Public class without sharing orderHelper {// code implementation

}

A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.

How should the developer declare the delivery multiplier constant to meet the business objectives?

Options:

A.

static decimal DELIVERY_MULTIPLIER = 4.15;

B.

constant decimal DELIVERY_MULTIPLIER = 4.15;

C.

static final decimal DELIVERY_MULTIPLIER = 4.15;

D.

decimal DELIVERY_MULTIPLIER = 4.15;

Buy Now
Questions 29

A developer wants to mark each Account in a List < Account > as either Active or Inactive, based on the value in the LastModified each Account being greater than 90 days in the past.

Which Apex technique should the developer use?

Options:

A.

An if-else statement, with a for loop inside

B.

A witch statement, with a for loop inside

C.

A for loop, with an if or if/else statement inside

D.

A for loop, with a switch statement inside

Buy Now
Questions 30

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

Choose 2 answers

Options:

A.

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

B.

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

C.

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

D.

The @testSetup annotation is not supported when the @isTest(SeeAllData=True) annotation is used .

Buy Now
Questions 31

What are two use cases for executing Anonymous Apex code?

Choose 2 answers

Options:

A.

schedule an Apex class to run periodically

B.

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

C.

To run a batch Apex class to update all Contacts

D.

To add unit test code coverage to an org

Buy Now
Questions 32

(Full question statement)

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

Options:

A.

< apex:page renderAs= " application/pdf " >

B.

< apex:page renderAs= " pdf " >

C.

< apex:page contentType= " application/pdf " >

D.

< apex:page contentType= " pdf " >

Buy Now
Questions 33

Which three data types can a SOQL query return?

Choose 3 answers

Options:

A.

Double

B.

O Long

C.

sObject

D.

dg Integer

E.

List

Buy Now
Questions 34

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

Choose 3 answers

Options:

A.

Only one method using the @invecableMethod annotation can be defined per Apex class_

B.

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

C.

A method using the @invocablemethod annotation must be declaredas static,

D.

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

E.

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

Buy Now
Questions 35

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?

Options:

A.

Formula field

B.

Record-triggered flow

C.

Roll-up summary field

D.

Apex trigger

Buy Now
Questions 36

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?

Options:

A.

Apex trigger on Task

B.

Task actions

C.

Auto-launched flow on Task

D.

Record-triggered flow on Opportunity

Buy Now
Questions 37

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing

them to test isolated requirements for various types of Salesforce cases.

Which approach can efficiently generate the required data for each unit test?

Options:

A.

Create a mock using the HttpcalloutMock interface.

B.

Use @TestSetup with a void method.

C.

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

D.

Create test data before Test .startTest() in the unit test.

Buy Now
Questions 38

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 another custom object called PostalCodeToTimezone__c.

What is the optimal way to implement this feature?

Options:

A.

Build a flow with Flow Builder.

B.

Create an account approval process.

C.

Create a formula field.

D.

Build an account assignment rule.

Buy Now
Questions 39

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 all it ' s trainers?

Options:

A.

SELECT ID FROM Trainer_c WHERE Gym_r.Name = ' Viridian City Gym '

B.

SELECT Id, (SELECT Id FROM Trainer_c FROM Gym_c WHERE Name = ‘Viridian City Gym "

C.

SELECT Id, (SELECT Id FROM Trainers _r) FROM Gym_c WHERE Name = ‘Viridian City Gym '

D.

SELECT Id, (SELECT Id FROM Trainers _c) FROM Gym_c WHERE Name = ' Viridian City Gym '

Buy Now
Questions 40

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 to report multiple bugs and bugs can also be reported by multiple companies.

What is needed to allow this reporting?

Options:

A.

Roll-up summary field of Bug_c on Account

B.

Master-detail field on Bug_c to Account

C.

Lookup field on Bug_c to Account

D.

Function object between Bug__c and Account

Buy Now
Questions 41

What are three characteristics of change set deployments?

Choose 3 answers Sending a change set between two orgs requires a deployment connection.

Options:

A.

Change sets can deploy custom settings data.

B.

Change sets can only be used between related organizations.

C.

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

D.

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

E.

Change sets can be used to transfer records.

Buy Now
Questions 42

An Apex method, getAccounts, that returns a List of Accounts given a searchTerm, is available for Lightning Web Components to use.

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

Options:

A.

@wire(getAccounts, { searchTerm: ' $searchTerm ' })

B.

@track(getAccounts, ' $searchTerm ' )

C.

@wire(getAccounts, ' searchTerm: $searchTerm ' )

D.

@wire(getAccounts, ' $searchTerm ' )

Buy Now
Questions 43

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?

Options:

A.

apexCopyEdittrigger RequestTrigger on Request__c (before insert) {RequestLogic.validateRecords(Trigger.new);}

B.

apexCopyEdittrigger RequestTrigger on Request__c (before insert) {RequestLogic.validateRecords(trigger.new);}

C.

apexCopyEdittrigger RequestTrigger on Request__c (before insert) {if (RequestLogic.isValid(Request__c)) {Request.addError( ' Your request cannot be created at this time. ' );}}

D.

apexCopyEdittrigger RequestTrigger on Request__c (after insert) {if (RequestLogic.isValid(Request__c)) {Request.addError( ' Your request cannot be created at this time. ' );}}

Buy Now
Questions 44

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 Apex trigger on the Opportunity object

B.

An error condition formula on a validation rule on Opportunity

C.

A record trigger flow on the Opportunity object

D.

An approval process on the Opportunity object

Buy Now
Questions 45

Given the following Apex statement:

Account myAccount = [SELECT Id, Name FROM Account);

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

Options:

A.

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

B.

An unhandled exception is thrown and the code terminates.

C.

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

D.

The first Account returned is assigned to myAccount.

Buy Now
Questions 46

A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records.

Which two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed?

Choose 2 answers

Options:

A.

Use a Test Date Factory class.

B.

Use the @TsTest (SeeAllData=true) annotation.

C.

Use the Test. leadteat{) method.

D.

Use without sharing on the class declaration.

Buy Now
Questions 47

Refer to the following Apex code:

apex

Copy

Integer x = 0;

do {

x++;

} while (x < 1);

System.debug(x);

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

Options:

A.

0

B.

2

C.

1

D.

3

Buy Now
Questions 48

(Full question statement)

Which statement generates a list ofLeadsandContactsthat have a field containing the phrase " ACME " ?

Options:

A.

List < SObject > searchList = [FIND ' *ACME* ' IN FIELDS RETURNING Contact, Lead];

B.

List < List < SObject > > searchList = [SELECT Name, Id FROM Contact, Lead WHERE Name LIKE ' %ACME% ' ];

C.

List < List < SObject > > searchList = [FIND ' *ACME* ' IN ALL FIELDS RETURNING Contact, Lead];

D.

List < SObject > searchList = [find ' acme ' in all fields returning Contact, Lead];

Buy Now
Questions 49

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-level permissions on Salary__c?

Options:

A.

htmlCopyEdit < lightning-input type= " number " value= " Salary__c " formatter= " currency " > < /lightning-input >

B.

htmlCopyEdit < lightning-formatted-number value= " Salary__c " format-style= " currency " > < /lightning-formatted-number >

C.

htmlCopyEdit < lightning-input-field field-name= " Salary__c " > < /lightning-input-field >

D.

htmlCopyEdit < lightning-input-currency value= " Salary__c " > < /lightning-input-currency >

Buy Now
Questions 50

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.

CRT-450 Question 50

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

Options:

A.

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

B.

Add List < asset > assets = [SELECT id, Status_¢ FROM WHERE AccountId = : acctId] to line 14 and iterate over the assets list in the for loop on line 15.;

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 getAssetsToUpdate method to process all Accounts in one call and call it outside of the for loop that starts on line 03.

Buy Now
Questions 51

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

apex

CopyEdit

public class SilverLaptop {

// code implementation

}

How can a developer use the Laptop interface within the SilverLaptop class?

Options:

A.

Extends (class= " Laptop " ) public class SilverLaptop

B.

public class SilverLaptop implements Laptop

C.

public class SilverLaptop extends Laptop

D.

Interface (class= " Laptop " ) public class SilverLaptop

Buy Now
Questions 52

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

Options:

A.

Use the ApextestResult class.

B.

Use the Flow Properties page.

C.

Use SOQL and the Tooling API.

D.

Use the Code Coverage Setup page,

Buy Now
Questions 53

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

Developer sandboxes.

B.

Full Copy sandboxes

C.

Developer orgs

D.

Scratch orgs

Buy Now
Questions 54

The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

Options:

A.

Create an after trigger on Lead.

B.

Use Lead Conversion field mapping.

C.

Use a formula field.

D.

Use a validation rule.

Buy Now
Questions 55

(Full question statement)

Universal Containers wants Opportunities to no longer be editable when they reach the Closed/Wonstage.

Which two strategies can a developer use to accomplish this?

Choose 2 answers.

Options:

A.

Use an automatically launched Approval Process.

B.

Use a Validation Rule.

C.

Use a before-save Apex Trigger.

D.

Use an Auto-Response Rule.

Buy Now
Questions 56

Which three code lines are required to create a Lightning component on a Visualforce page?

Choose 3 answers.

Options:

A.

$Lightning.use

B.

$Lightning.useComponent

C.

< apex:includeLightning/ >

D.

< apex:slds/ >

E.

$Lightning.createComponent

Buy Now
Questions 57

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

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

Options:

A.

Quick actions

B.

Approval process

C.

Account trigger

D.

Fast Field Updates record-triggered flow

Buy Now
Questions 58

What is the result of the following code snippet?

public word doWork(Account acct) {

for (Integer i = 0; i < = 2007 i++) {

insert acct;

}

Options:

A.

Accounts are inserted.

B.

Account is inserted.

C.

200 Accounts are inserted.

D.

201 Accounts are inserted.

Buy Now
Questions 59

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 60

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

How can this be achieved?

Options:

A.

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

B.

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

C.

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

D.

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

Buy Now
Questions 61

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?

Options:

A.

FIND ‘Universal Conteiners ' IN CompenyName Fields RETURNING leadjid, name), sccount(ad, name}, conteact(id, name)

B.

SELECT Lead.id, Lead.Neme, Account,Id, Account.Neme, Contact.id, Contact.Neame FROM Lead, Account, Contact WHERE CompanyName = " Universal Containers*

C.

PIND ‘Universal Centainers’ IN Name Fields RETURNING lead(id, name), saceount(id, mame), contact (id, name)

D.

SELECT lead(id, name), account (id, name}, contact(id, name) FROM Lead, Account, Contact WHERE Name = " Universal Containers’

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer 1 Exam
Last Update: May 15, 2026
Questions: 204

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now CRT-450 testing engine

PDF (Q&A)

$43.57  $124.49
buy now CRT-450 pdf