March Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Salesforce Certified Platform Developer I (SP23) Question and Answers

Salesforce Certified Platform Developer I (SP23)

Last Update Mar 28, 2024
Total Questions : 235

We are offering FREE CRT-450 Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare CRT-450 free exam questions and then go for complete pool of Salesforce Certified Platform Developer I (SP23) test questions that will help you more.

CRT-450 pdf

CRT-450 PDF

$35  $99.99
CRT-450 Engine

CRT-450 Testing Engine

$42  $119.99
CRT-450 PDF + Engine

CRT-450 PDF + Testing Engine

$56  $159.99
Questions 1

A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.

What to do now?

Options:

A.  

The method must be decorated with (cacheable=true).

B.  

The method must be decorated with @AuraEnabled.

C.  

The method must return a JSON Object.

D.  

The method must return a String of a serialized JSON Array.

Discussion 0
Questions 2

What are two benefits of using External IDs?

Choose 2 answers

Options:

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.

Discussion 0
Questions 3

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?

Options:

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

Discussion 0
Questions 4

A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?

Options:

A.  

Data Loader runs from the developer's browser.

B.  

Data Import Wizard does not support Opportunities.

C.  

Data Loader automatically relates Opportunities to Accounts.

D.  

Data Import Wizard cannot import all 500 records.

Discussion 0
Questions 5

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 getting executed multiple times.

C.  

The trigger is a a helper class.

D.  

The trigger does not have sufficient code coverage.

Discussion 0
Questions 6

What are two ways for a developer to execute tests in an org?

Options:

A.  

Tooling API

B.  

Developer console

C.  

Bulk API

D.  

Matadata API

Discussion 0
Questions 7

What is the result of the following code?

Options:

A.  

The record will not be created and a exception will be thrown.

B.  

The record will be created and a message will be in the debug log.

C.  

The record will not be created and no error will be reported.

D.  

The record will be created and no error will be reported.

Discussion 0
Questions 8

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

Options:

A.  

Database.insert (records, false)

B.  

insert records

C.  

insert (records, false)

D.  

Database.insert (records, true)

Discussion 0
Questions 9

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.  

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

B.  

Add without sharing to the Apex class declaration.

C.  

Create a junction object between Orderltem and Order.

D.  

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

Discussion 0
Questions 10

A developer considers the following snippet of code:

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

Options:

A.  

3

B.  

1

C.  

4

D.  

2

Discussion 0
Questions 11

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?

Options:

A.  

@isTest (SeeAllData-true)

B.  

@FreTest

C.  

@TestSetup

D.  

@StartTest

Discussion 0
Questions 12

Which action may cause triggers to fire?

Options:

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

Discussion 0
Questions 13

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.  

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

C.  

formulas can reference themselves.

D.  

Formulas can reference vaues m reiatea objects.

Discussion 0
Questions 14

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

Options:

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.

Discussion 0
Questions 15

When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values another custom object object called.

What is the optimal way to Implement this feature?

Options:

A.  

Build a flow with flow Builder.

B.  

Build an account assignment rule.

C.  

Create a formula field.

D.  

Create an account approval process.

Discussion 0
Questions 16

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

Options:

A.  

Use the SeeAllData annotation.

B.  

Add a test method in the Apex class.

C.  

Use the TestVisible annotation.

D.  

Mark the Apex class as global.

Discussion 0
Questions 17

A developer is implementing an Apex class for a financial system. Within the class, the

variables ‘creditAmount’ and ‘debtAmount’ 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

Options:

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.

Discussion 0
Questions 18

A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C.

A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity.

What should the developer use to implement this?

Options:

A.  

A roll-up summary field on the sales Help_Request__c object

B.  

A trigger on the Opportunity object

C.  

A roll-up summary field on the Opportunity object

D.  

A record-triggered flow on the Sales Help Request__c object

Discussion 0
Questions 19

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

Options:

A.  

The Parentid field on the standard Account object

B.  

The LeadId and ContactId fields on the standard Campaign Member object

C.  

A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign

D.  

The Whatld field on the standard Event object

Discussion 0
Questions 20

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

Options:

A.  

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

B.  

View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.

C.  

View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.

D.  

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

Discussion 0
Questions 21

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

Options:

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.

Discussion 0
Questions 22

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

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

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

Options:

A.  

Change TotalJob_o to a roll-up summary field.

B.  

Create a record-triggered flow on ServiceJob_o.

C.  

Create an Apex trigger on ServiceJob_o.

D.  

Create a schedule-triggered flow on ServiceJob_o.

Discussion 0
Questions 23

A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght 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 member variable on the trigger definition.

B.  

Declare maxattempts as a private static variable on a helper class

C.  

Declare maxattempts as a constant using the static and final keywords

D.  

Declare maxattempts as a variable on a helper class

Discussion 0
Questions 24

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 the component available?

Options:

A.  

Add true to the statusComponent.js-meta ml file.

B.  

Add lighting _RecordPage to the statusComponent.js-meta ml file.

C.  

Add < masterLabel>Account to the statusComponent.js-meta ml file.

D.  

Add Lightning_RecordPage to the statusComponent.js file.

Discussion 0
Questions 25

A developer created a Visualforce page and custom controller to display the account type field as shown below.

Custom controller code:

Visualforce page snippet:

The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?

Options:

A.  

Convert theAcccunt, type to a String.

B.  

Change theAccount attribute to public.

C.  

Add with sharing to the custom controller.

D.  

Add a getter method for the actType attribute.

Discussion 0
Questions 26

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

Which type of org is best suited for this scenario?

Options:

A.  

Full Sandbox

B.  

Developer Edition

C.  

Partner Developer Edition

D.  

Developer Sandbox

Discussion 0
Questions 27

A developer wants to mark each Account in a List as either or Inactive based on the LastModified field value being more than 90 days.

Which Apex technique should the developer use?

Options:

A.  

A for loop, with a switch statement inside

B.  

A Switch statement, with a for loop inside

C.  

An If/else statement, with a for loop inside

D.  

A for loop, with an if/else statement inside

Discussion 0
Questions 28

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.  

System validation is run for maximum field lengths.

B.  

The original record is loaded from the database.

C.  

Old values are overwritten with the new record values,

D.  

JavaScript validation is run In the browser.

Discussion 0
Questions 29

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

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

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

Options:

A.  

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

B.  

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

C.  

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

D.  

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

Discussion 0
Questions 30

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

Options:

A.  

Bulk API

B.  

Tooling API

C.  

Setup Menu

D.  

Salesforce DX

E.  

Metadata API.

Discussion 0
Questions 31

A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?

Options:

A.  

@BeforeTest

B.  

@isTest(SeeAllData=True)

C.  

@TestSetup

D.  

@PreTest

Discussion 0
Questions 32

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

Options:

A.  

Developer Console

B.  

VS Code

C.  

Force.com IDE

D.  

Execute Anonymous

Discussion 0
Questions 33

Consider the following code snippet:

Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful execution of the method?

Options:

A.  

Avoid executing queries without a limit clause.

B.  

Avoid returning an empty List of records.

C.  

Avoid using variables as query filters.

D.  

Avoid performing queries inside for loops.

Discussion 0
Questions 34

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

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

Options:

A.  

accountRec., isDeletable()

B.  

Account, isDeletable ()

C.  

AccountRec, ObjecType, ieDeletable ()

D.  

Schena, sobjectType, Account, isDeletetable ()

Discussion 0
Questions 35

A Next Best Action strategy uses an Enhance element that invokes an Apex method to determine a discount level for a Contact, based on a

number of factors.

What is the correct definition of the Apex method?

Options:

A.  

B.  

C.  

D.  

Discussion 0
Questions 36

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

Discussion 0
Questions 37

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.  

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.

Discussion 0
Questions 38

A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page.

Which component should be added to the Visualforce page to display the message?

Options:

A.  

B.  

C.  

D.  

Discussion 0
Questions 39

When importing and exporting data into Salesforce, which two statements are true?

Choose 2 answers

Options:

A.  

Bulk API can be used to import large data volumes in development environments without bypassing the storage limits.

B.  

Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.

C.  

Developer and Developer Pro sandboxes have different storage limits.

D.  

Data import wizard is a client application provided by Salesforce.

Discussion 0
Questions 40

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

Options:

A.  

new ParityException();:

B.  

throw new ParityException("parity does not match");

C.  

new ParityException('parity does not match');

D.  

throw new ParityException();

Discussion 0
Questions 41

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

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

Chosse 2 answer

Options:

A.  

Validation Rules

B.  

Record-Triggered flows

C, Scheduled

C.  

Unvocable ActionsMoorche2023-06-13T14:55:00.63

Discussion 0
Questions 42

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

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

Choose 2 answers

Options:

A.  

Validation rule

B.  

After record-triggered flow

C.  

Apex trigger

D.  

Before record-triggered flow

Discussion 0
Questions 43

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

Options:

A.  

$Lightning.createComponent

B.  

C.  

$Lightning.useComponent

D.  

$Lightning.use

E.  

Discussion 0
Questions 44

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?

Options:

A.  

Flux (view, action, dispatcher, and store)

B.  

Waterfall Model

C.  

Agile Development

D.  

Model-View-Controller (MVC)

Discussion 0
Questions 45

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.

What should be built to implement this feature?

Options:

A.  

Account custom trigger

B.  

Account approval process

C.  

Account assignment rule

D.  

Account workflow rule

Discussion 0
Questions 46

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?

Options:

A.  

5

B.  

6

C.  

10

D.  

15

Discussion 0
Questions 47

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

Components to use.

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

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 48

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?

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 49

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?

Options:

A.  

Use the schema describe calls to determine if the logged-in users has access to the Account object.

B.  

Use the without sharing keyword on the class declaration.

C.  

Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.

D.  

Use the with sharing keyword on the class declaration.

Discussion 0
Questions 50

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

Options:

A.  

Use a validation

B.  

Use a trigger

C.  

Use an after-save flow.

D.  

Use the Process Automation settings.

Discussion 0
Questions 51

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

Options:

A.  

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

B.  

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

C.  

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

D.  

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

Discussion 0
Questions 52

A developer created these three Rollup Summary fields in the custom object, Project_ct,

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.  

Record-triggered Flow

B.  

Formula field

C.  

Apex Trigger

D.  

Process Builder

Discussion 0
Questions 53

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

Choose 2 answer

Options:

A.  

Calling a method that makes a web service callout

B.  

Calling a method that is not annotated with cacheable-true

C.  

Calling a method with the click of a button

D.  

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

Discussion 0
Questions 54

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

Which governor limit will likely be exceeded within the Apex transaction?

Options:

A.  

Total number of DML statement issued

B.  

Total number of SOQL queries issued

C.  

Total number of records retrieved by SOQL queries

D.  

Total number of records processed as a result of DML statements

Discussion 0
Questions 55

Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c.

Users should be able to associate multiple engineering_Support__c records to a single Opportunity record.

Additionally, aggregate Information about the Engineering_support__c records should be shown on the

Opportunity record.

What should a developer Implement to support these requirements?

Options:

A.  

Master-detail field from Engineering_Support__c to Opportunity.

B.  

Master-detail field from Opportunity to Engineering_Support__c

C.  

Lookup field from Engineering_support__c to Opportunity

D.  

Lookup field from Opportunity to Engineering_Support__c

Discussion 0
Questions 56

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?

Options:

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

Discussion 0
Questions 57

Which aspect of Apex programming is limited due to multitenancy?

Options:

A.  

The number of active Apex classes

B.  

The number of methods in an Apex Class

C.  

The number of records processed in a loop

D.  

The number of records returned from database queries

Discussion 0
Questions 58

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

Which update must the developer make in the flow?

Options:

A.  

Add a new Get Records element.

B.  

Add a new Create Records element.

C.  

Add a new Update Records element.

D.  

Add a new Roll back Records element

Discussion 0
Questions 59

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?

Options:

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,

Discussion 0
Questions 60

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?

Options:

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

Discussion 0
Questions 61

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 Defector to represent that a defect Is a

customer issue

What should be done to share a specific Case-Defect_c record with a user?

Options:

A.  

Share the Case_Defect_c record.

B.  

Share the parent Case record.

C.  

Share the parent Defect_c record.

D.  

Share the parent Case and Defect_c records.

Discussion 0
Questions 62

Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.

Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.

Which two actions should the developer take to fix the code segment shown above?

Choose 2 answers

Options:

A.  

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

B.  

Use Database.query to query the opportunities.

C.  

Move the DML that saves opportunities outside the for loop.

D.  

Query for existing opportunities outside the for loop.

Discussion 0
Questions 63

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

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

Which two should a developer implement to satisfy the requirements?

Choose2 answer

Options:

A.  

Flow

B.  

Future method

C.  

Trigger

D.  

Invocable method

Discussion 0
Questions 64

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

What would be the best solution for this requirement?

Options:

A.  

Submit a REST API Callojt with a JSON payload and validate the f elds on a third patty system

B.  

Use an Approval Process to enforce tne completion of a valid email address using an outbound message action.

C.  

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message If it Is invalid

D.  

Use a custom Lightning web component to make a callout to validate the fields on a third party system.

Discussion 0
Questions 65

Which scenario is valid for execution by unit tests?

Options:

A.  

Load data from a remote site with a callout.

B.  

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

C.  

Execute anonymous Apex as a different user.

D.  

Generate a Visualforce PDF with geccontentAsPDF ().

Discussion 0
Questions 66

Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this

page is failing 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?

Options:

A.  

Use JavaScript remotlng with SOQL Offset.

B.  

Implement pagination with a StandardSetController.

C.  

Implement pagination with an OffaetController.

D.  

Use lazy loading and a transient List variable.

Discussion 0
Questions 67

Which code statement includes an Apex method named updateaccounts in the Class AccountCont rolles for use in a Lightning web component?

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 68

What should be used to create scratch orgs?

Options:

A.  

Developer Console

B.  

Salesforce CLI

C.  

Workbench

D.  

Sandbox refresh

Discussion 0
Questions 69

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?

Options:

A.  

Record triggered flows

B.  

Apex triggers

C.  

Validation rules

D.  

Quick Actions

Discussion 0
Questions 70

A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?

Options:

A.  

The test method has a syntax error in the code.

B.  

The test method relies on existing data in the sandbox.

C.  

The test method is calling an @future method.

D.  

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

Discussion 0