Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Salesforce CRT-450 Salesforce Certified Platform Developer I (SP23) Exam Practice Test

Page: 1 / 24
Total 235 questions

Salesforce Certified Platform Developer I (SP23) Questions and Answers

Question 1

Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI).

What should the UC development team use to automatically run tests as part of their CI process?

Options:

A.

Force.com Toolkit

B.

Salesforce CLI

C.

Visual Studio Code

D.

Developer Console

Question 2

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?

Options:

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.

Question 3

While developing an Apex class with custom search functionality that will be launched from a Lightning Web Component, how can the developer ensure only records accessible to the currently logged in user are displayed?

Options:

A.

Option A3

B.

Option B3

C.

Option C3

D.

Option D3

Question 4

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?

Options:

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*/ }

}

Question 5

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List getOpportunityProducts(Set opportunityIds){ List oppLineItems = new List(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll([Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } }

The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

Options:

A.

Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.

B.

Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100.

C.

Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.

D.

Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds.

Question 6

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.

Question 7

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

Question # 7

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

Question 8

What are two considerations for deploying from a sandbox to production?

Choose 2 answers

Options:

A.

Should deploy during business hours to ensure feedback can be Quickly addressed

B.

All triggers must have at least one line of test coverage.

C.

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

D.

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

Question 9

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

Custom controller code:

Question # 9

Visualforce page snippet:

Question # 9

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.

Question 10

The following automations already exist on the Account object;

• A workflow rule that updates a field when a certain criteria is met

• A custom validation on a field

• A How that updates related contact records

A developer created a trigger on the Account object.

What should the developer consider while testing the trigger code?

Options:

A.

The flow may be launched multiple times.

B.

Workflow rules will fire only after the trigger has committed all DML operations to the database.

C.

A workflow rule field update will cause the custom validation to run again.

D.

The trigger may fire multiple times during a transaction.

Question 11

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)

Question # 11

B)

Question # 11

C)

Question # 11

D)

Question # 11

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 12

AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object.

The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations.

What should a developer add to fulfill this requirement?

Options:

A.

Order_shipment_Group_c object and master-detail field on order_Line_c

B.

Order_shipment_Group_c object and master-detail field on order_c

C.

Order_shipment_Group_c object and master-detail field to order_c and Order Line_c

D.

Order_shipment_Group_c object and master-detail field on order_shipment_Group_c

Question 13

Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry:

Question # 13

When the code execution, which two events occur as a result of the Apex transaction?

When the code executes, which two events occur as a result of the Apex transaction?

Choose 2 answers

Options:

A.

If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit

B.

The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated.

C.

The Apex transaction fails with the following message. "SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech__c''.

D.

If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit.

Question 14

Refer to the code snippet below:

Question # 14

When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user.

Which three Considerations must the developer implement to make the Question # 14method available within the Lightning web component?

Choose 3 answer

Options:

A.

The method must specify the (cacheable-trun) attribute

B.

The method must specify the (continuation-true) attribute

C.

The method must be annotaled with true Invocablemethod annolation

D.

The method cannot mutate the result set retrieved from the database.

E.

The method must be annotated with the AureEnabled annolation

Question 15

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.

Auto-launched flow on Task

B.

Apex trigger on Task

C.

Task actions

D.

Record-trigger flow on Opportunity

Question 16

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)

Question # 16

B)

Question # 16

C)

Question # 16

D)

Question # 16

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 17

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

Question 18

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

Question 19

Which two settings must be defined in order to update a record of a junction object? Choose 2 answers

Options:

A.

Read access on the primary relationship

B.

Read/Write access on the secondary relationship

C.

Read/Write access on the primary relationship

D.

Read/Write access on the junction object

Question 20

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

Choose 3 answers

Options:

A.

Loading files from Documents

B.

One-time loading for duplicate scripts

C.

Specifying loading order

D.

Loading scripts In parallel

E.

Loading externally hosted scripts

Question 21

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.

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

C.

Test data is inserted once for all test methods in a class.

D.

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

Question 22

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?

Options:

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.

Question 23

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 Anonymous Apex to create the required data.

B.

Use Test.loadData < > and reference a CSV file in a static resource.

C.

Use SOQL to query the org for the required data.

D.

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

Question 24

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

Options:

A.

All triggers must have at least 1% test coverage.

B.

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

C.

All triggers must have at least 75% test coverage.

D.

All test and triggers must have at least 75% test coverage combined

Question 25

A company has been adding data to Salesforce and has not done a good Job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together.

Which two statements are valid considerations when using merged?

Choose 2 answers

Options:

A.

The field values on the master record are overwritten by the records being merged.

B.

Merge is supported with accounts, contacts, cases, and leads.

C.

External ID fields can be used with the merge method.

D.

The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record.

Question 26

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

Options:

A.

Option A26

B.

Option B26

C.

Option C26

D.

Option D26

Question 27

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.

Question 28

Which statement describes the execution order when trigger are associated to the same object and event?

Options:

A.

Triggers are executed in the order they are created..

B.

Trigger execution order cannot be guaranteed.

C.

Triggers are executed in the order they are modified

D.

Triggers are executed alphabetically by trigger name.

Question 29

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?

Options:

A.

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

B.

Check the debug logs for the batch job.

C.

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

D.

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

Question 30

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?

Options:

A.

@future

B.

@RemoteAction

C.

@InvocableMethod

D.

@AuraEnaled

Question 31

Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?

Options:

A.

Exception

B.

Messaging

C.

OrgLimits

D.

Limits

Question 32

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

Question 33

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

Options:

A.

Renclerer

B.

Style

C.

Helper

D.

Controller

E.

Design

Question 34

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?

Options:

A.

Standard list controller

B.

Standard controller

C.

Lightning controller

D.

Custom controller

Question 35

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

Question # 35

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

Question 36

Refer to the following Apex code:

Question # 36

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

Options:

A.

0

B.

1

C.

2

D.

3

Question 37

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

Options:

A.

Forced: data:bulk:upsert

B.

Forced: data: object :upsert

C.

Forced: data: tree: upsert

D.

Forced: data:async:upsert

Question 38

A company has a custom object, Order__c, that has a required, unique external ID field called OrderNumber__c.

Which statement should be used to perform the DML necessary to insert new records and update existing records in a list of order__c records

using the external ID field?

Options:

A.

Option A38

B.

Option B38

C.

Option C38

D.

Option D38

Question 39

A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

Options:

A.

Add a System.debug() statement before the insert method

B.

Add a try/catch around the insert method

C.

Set the second insert method parameter to TRUE

D.

Collect the insert method return value a Saveresult variable

Question 40

A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names.

What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers

A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names.

What two things should be done to create the test data within the unit test with the least amount of code?

Choose 2 answers

Options:

A.

Use the @isTest(isParallel=true) annotation in the test class.

B.

Use Test.loadData to populate data in your test methods.

C.

Use the @isTest(seeAllData=true) annotation in the test class.

D.

Create a static resource containing test data.

Question 41

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

Choose 3 answers

Options:

A.

Process Flows

B.

Workflow Rules

C.

Criteria-based Sharing calculations

D.

Email messages

E.

Roll-Up Summary fields

Question 42

How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?

Options:

A.

Use the Flow properties page.

B.

Use the code Coverage Setup page

C.

Use the Apex testresult class

D.

Use SOQL and the Tooling API

Question 43

Cloud kicks has a muli-screen flow 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 number and dates that are retrieved from an external odrer management system in real time and displayed on the screen.

What shuold a developer use to satisfy this requirement?

Options:

A.

An invocae method

B.

An apex REST class

C.

An outbound message

D.

An Apex Controller

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?

Options:

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

Question 45

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 ()

Question 46

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?

Options:

A.

Add cuatom controller attributes to display the message.

B.

Include on the Visualforce page.

C.

Use a try/catch with a custom exception class.

D.

Perform the DML using the Database.upsert() method.

Question 47

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

Question 48

A developer wants to invoke on outbound message when a record meets a specific criteria.

Which three features satisfy this use case?

Choose 3 answer

Options:

A.

Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code

B.

Process builder can be used to check the record criteria and send an outbound message with Apex Code.

C.

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

D.

Process builder can be used to check the record criteria and send an outbound messagewithout Apex Code.

E.

Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.

Question 49

What is the result of the following code snippet?

Question # 49

Options:

A.

Accounts are inserted.

B.

Account Is inserted.

C.

200 Accounts are inserted.

D.

201 Accounts are Inserted.

Question 50

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

Question 51

Universal Containers has 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.

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

B.

Rewrite all Visualforce pages asLightning components.

C.

Set the attribute enableLightning to true in the definition.

D.

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

Question 52

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

A)

Question # 52

B)

Question # 52

C)

Question # 52

D)

Question # 52

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 53

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

Question 54

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.

Question # 54

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.

Question 55

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

Options:

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.

Question 56

A developer wants to improve runtime performance of Apex calls by caching result on the client.

What is the most efficient way to implement this and follow best practices?

Options:

A.

Decorate the server-side method with @AuraEnabled (total-true).

B.

Call the setStoeable () method on the action in the javaScript client-sidecode.

C.

Decorate the server-side method with @AuraEnabled (cacheable-true.

D.

Set a ciikie in the browser for use upon return to the page.

Question 57

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.

Question 58

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 child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity.

B.

Write a Process Builder that links the custom object to the Opportunity.

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 Streaming API to create real-time roll-up summaries.

Question 59

When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?

Options:

A.

Production

B.

Dev Hub

C.

Environment Hub

D.

Sandbox

Question 60

For which three items can 2 trace flag be configured?

Choose 3 answers

Options:

A.

Flow

B.

Apex Class

C.

User

D.

Apex Trager

E.

Visualforce

Question 61

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.

Question 62

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

Options:

A.

List> searchList = [SELECT Name, ID FROM Contact, Lead WHERE Name like "tACME3"];

B.

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

C.

Map searchList = [FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead];

D.

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

Question 63

Question # 63

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Options:

A.

Implement the upsert DML statement.

B.

Implement Change Data Capture.

C.

Implement a try/catch block for the DML.

D.

Remove null items from the list of Accounts.

Question 64

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?

Options:

A.

Workflow Rules

B.

Scheduled job

C.

Record-Triggered Flow

D.

Process Builder

Question 65

Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:

Question # 65

which three statements are accurate about debug logs?

Choose 3 answers

Options:

A.

Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

B.

The maximum size of a debug log is 5 MB.

C.

Only the 20 most recent debug logs for a user are kept.

D.

Debug logs can be set for specific users, classes, and triggers.

E.

System debug logs are retained for 24 hours.

Question 66

Which two characteristics are true for Lightning Web Component custom events?

Choose 2 answers

Options:

A.

Data may be passed In the payload of a custom event using a wire decorated properties.

B.

By default a custom event only propagates to its immediate container and to its immediate child component.

C.

By default a custom event only propagates to it's immediate container.

D.

Data may be passed in the payload of a custom event using a property called detail.

Question 67

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?

Options:

A.

Lookup field

B.

External ID field

C.

Formula field

D.

External Object

Question 68

What are two considerations for running a flow in debug mode?

Choose 2 answers

Options:

A.

Callouts to external systems are not executed when debugging a flow.

B.

Clicking Pause or executing a Pause element closes the flow and ends debugging.

C.

Input variables of type record cannot be passed into the flow,

D.

DML operations will be rolled back when the debugging ends.

Question 69

A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?

Options:

A.

Public class DrawList implements Sortable, Implements Drawable {

public void sort() { /*implementation*/}

public void draw() { /*implementation*/}

]

B.

Public class DrawList extends Sortable, Drawable {

public void sort() { /*implementation*/}

public void draw() { /*implementation*/}

}

C.

Public class DrawList implements Sortable, Drawable {

public void sort() { /*implementation*/}

public void draw() { /*implementation*/}

}

D.

Public class DrawList extends Sortable, extends Sortable, extends Drawable {

public void sort() { /*implementation*/ }

public void draw() { /* implementation */}

Question 70

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.

Page: 1 / 24
Total 235 questions