Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netbudy65

CRT-450 Salesforce Certified Platform Developer I (SP23) Questions and Answers

Questions 4

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.

Buy Now
Questions 5

Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?

Options:

A.

Use the Data Loader command line.

B.

Create a Schedulable Apex class.

C.

Schedule a report.

D.

Define a Data Export scheduled job.

Buy Now
Questions 6

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 a change set to deploy the Apex code and Lightning Components.

B.

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

C.

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

D.

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

Buy Now
Questions 7

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

Buy Now
Questions 8

In the following example, which starting context will mymethod execute it is invoked?

Options:

A.

Sharig rules will be inherited from the calling context.

B.

Sharig rules will be enforced for the running user.

C.

Sharig rules will be enforced by the instartiating class.

D.

Sharig rules will not be enforced for the running user.

Buy Now
Questions 9

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.

Buy Now
Questions 10

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.

Buy Now
Questions 11

Which annotation exposes an Apex class as a RESTful web service?

Options:

A.

B.

C.

D.

Buy Now
Questions 12

Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?

Options:

A.

Use a CEILING formula on each of the Latest availability date fields.

B.

Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.

C.

Use a LATEST formula on each of the latest availability date fields.

D.

Use a Max Roll-Up Summary field on the Latest availability date fields.

Buy Now
Questions 13

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

Buy Now
Questions 14

What are two benefits of using declarative customizations over code?

Choose 2 answers

Options:

A.

Declarative customizations automatically update with each Salesforce release.

B.

Declarative customizations generally require less maintenance.

C.

Declarative customizations automatically generate test classes.

D.

Declarative customizations cannot generate run time errors.

Buy Now
Questions 15

Given the following Apex statement:

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

Options:

A.

The query falls and an error Is written to the debug log.

B.

The variable, nvAccount, Is automatically cast to the List data type.

C.

The first Account returned Is assigned to myAccour.t.

D.

An unhandled exception is thrown and the code terminates.

Buy Now
Questions 16

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.

A record trigger flow on the Opportunity object

B.

An Apex trigger on the Opportunity object

C.

approval process on the Opportunity object

D.

An error condition formula on a validation rule on Opportunity

Buy Now
Questions 17

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.

Buy Now
Questions 18

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

Buy Now
Questions 19

What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers

Options:

A.

View the apex status Page

B.

View the apex flex Queue

C.

View the apex Jobs page

D.

Query the AsyncApexJobe object

Buy Now
Questions 20

What are two use cases for executing Anonymous Apex code? Choose 2 answers

Options:

A.

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

B.

To schedule an Apex class to run periodically

C.

To run a batch Apex class to update all Contacts

D.

To add unit test code coverage to an org

Buy Now
Questions 21

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.

Buy Now
Questions 22

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

Buy Now
Questions 23

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.

Buy Now
Questions 24

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

Options:

A.

A list of newly created sObjects without IDs

B.

null

C.

Undefined

D.

An empty list of sObjects

Buy Now
Questions 25

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

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

Options:

A.

1

B.

3

C.

4

D.

2

Buy Now
Questions 26

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

Options:

A.

B.

C.

D.

Buy Now
Questions 27

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.

Buy Now
Questions 28

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

Options:

A.

Metadata APT

B.

Bulk API

C.

Setup Menu

D.

SalesforceDX

E.

Tooling API

Buy Now
Questions 29

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

When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to

another Visualforce page.

What can the developer use to meet this business requirement?

Options:

A.

Custom controller

B.

Controller extension

C.

Validation rule

D.

Apex trigger

Buy Now
Questions 30

What can be easily developed using the Lightning Component framework?

Options:

A.

Customized JavaScript buttons

B.

Salesforce Classic user Interface pages

C.

Lightning Pages

D.

Salesforce integrations

Buy Now
Questions 31

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.

Buy Now
Questions 32

Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage.

How should a develoiper accomplish this?

Options:

A.

Use the Process Automation setting.

B.

Mark fields as read-only on the page layout.

C.

Use flow Builder

D.

Use a validation rule.

Buy Now
Questions 33

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

Buy Now
Questions 34

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

Buy Now
Questions 35

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.

Buy Now
Questions 36

A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?

Options:

A.

AppExchange

B.

Salesforce CLI

C.

Visual Studio Core IDE

D.

Developer Console

Buy Now
Questions 37

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

Buy Now
Questions 38

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

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

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

Options:

A.

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

B.

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

C.

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

D.

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

Buy Now
Questions 39

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

Buy Now
Questions 40

A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller’s account number before proceeding with the rest of their call script.

Following best practices, what is the optimal approach to satisfy this requirmrnt?

Options:

A.

Flow Builder

B.

Approvals

C.

Apex trigger

D.

Einstein Next Best Action

Buy Now
Questions 41

The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?

Options:

A.

Create the Picklist on each object and use a Global Picklist Value Set containing the Values.

B.

Create the Picklist on each object as a required field and select "Display values alphabeticaly, not in the order entered".

C.

Create the Picklist on each object and select "Restrict picklist to the values defined in the value set".

D.

Create the Picklist on each and add a validation rule to ensure data integrity.

Buy Now
Questions 42

Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page.

If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system.

Which three factors should a developer keep Hi mind when implementing the Apex method?

Choose 3 answers

Options:

A.

The method must use the @AuraEnabled annotation.

B.

The method must use the @Future annotation.

C.

The method must use the @invocableMethod annotation.

D.

The method must be defined as static.

E.

The method must be defined as public.

Buy Now
Questions 43

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.

Buy Now
Questions 44

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

Buy Now
Questions 45

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

Buy Now
Questions 46

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.

Buy Now
Questions 47

The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.

What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?

Options:

A.

Use a formula field.

B.

Use a validation rule.

C.

Use Lead Conversation field mapping.

D.

Create an after trigger on Lead.

Buy Now
Questions 48

Which three data types can a SOQL query return?

Choose 3 answers

Options:

A.

List

B.

Long

C.

Integer

D.

sObJect

E.

Double

Buy Now
Questions 49

Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.

What is the best solution to assign the case to the appropriate support representative?

Options:

A.

Use a trigger an the Case object.

B.

Use a formula field on the case object.

C.

Use a validation rule on the Case object.

D.

Use an Assignment Flow element.

Buy Now
Questions 50

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.

Buy Now
Questions 51

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

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.

Buy Now
Questions 52

A custom object Trainer_c has a lookup field to another custom object Gym___c.

Which SOQL query will get the record for the Viridian City gym and it's trainers?

Options:

A.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name . Viridian City Gym'

B.

SELECT Id, (SELECT Id FROM Trainer_c) FROM Gym_c WHERE Name - Viridian City Gym'

C.

SELECT ID FROM Trainer_c WHERE Gym__r.Name - Viridian City Gym'

D.

SELECT Id, (SELECT Id FROM Trainers) FROM Gym_C WHERE Name - Viridian City Gym'

Buy Now
Questions 53

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

Buy Now
Questions 54

Universal Container uses Service Cloud with a custom field, stage_c, on the Case object.

Management wants to send a follow-up email reminder 6 hours after the stage_c field is set to ‘’;Waiting on customer’’ The …. Administrator wants to ensure the solution used is bulk safe.

Which two automation tools should a developer recommend to meet these business requirements?

Choose 2 answers

Options:

A.

Scheduled Flow

B.

Einstein Next Best Action

C.

Record_Triggered Flow

D.

Process Builder

Buy Now
Questions 55

Which action causes a before trigger to fire by default for Accounts?

Options:

A.

Renaming or replacing picklist

B.

Importing data using the Data Loader and the Bulk API

C.

Converting Leads to Contact accounts

D.

Updating addresses using the Mass Address update tool

Buy Now
Questions 56

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

Buy Now
Questions 57

An org has an existing Flow that creates an Opportunity with an Update Records element. A developer update the Flow to also create a Contact and store the created Contact's ID on the Opportunity.

Which update should the developer make in the Flow?

Options:

A.

Add a new Get Records element.

B.

Add a new Update Records element.

C.

Add a new Quick Action element(of type Create).

D.

Add a new Create Records element.

Buy Now
Questions 58

Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow

  • Name
  • Amount
  • Account

Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

Options:

A.

Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.

B.

Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.

C.

Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.

D.

Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.

Buy Now
Questions 59

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.

Buy Now
Questions 60

A developer must create a lightning component that allows users to input contact record

information to create a contact record, including a salary__c custom field. what should the

developer use, along with a lightning-record-edit form, so that salary__c field functions as a

currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?

Options:

A.

B.

C.

D.

Buy Now
Questions 61

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

Buy Now
Questions 62

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

Buy Now
Questions 63

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

Buy Now
Questions 64

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

Buy Now
Questions 65

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.

Buy Now
Questions 66

A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce.

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

Choose 2 answers

Options:

A.

Ensure that the order number in the OMS is unique.

B.

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

C.

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

D.

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

Buy Now
Questions 67

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

Options:

A.

B.

C.

D.

Buy Now
Questions 68

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

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

Options:

A.

Change the gerAssetsToUpdac= method to process all Accounts in one call and call it outside of the for loop that starts on line 03.

B.

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

C.

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

D.

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

Buy Now
Questions 69

A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?

Options:

A.

ApexPages.currentPage() .getParameters() .get('url_param')

B.

ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()

C.

String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))

D.

String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))

Buy Now
Questions 70

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

Buy Now
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SP23)
Last Update: May 3, 2024
Questions: 235

PDF + Testing Engine

$140

Testing Engine

$105

PDF (Q&A)

$90