Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Salesforce > Developers > CRT-450

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

Question # 4

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?

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.

Full Access
Question # 5

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?

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.

Full Access
Question # 6

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?

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

Full Access
Question # 7

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

A.

Scheduled Flow

B.

Einstein Next Best Action

C.

Record_Triggered Flow

D.

Process Builder

Full Access
Question # 8

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

A.

Metadata APT

B.

Bulk API

C.

Setup Menu

D.

SalesforceDX

E.

Tooling API

Full Access
Question # 9

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?

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

Full Access
Question # 10

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?

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.

Full Access
Question # 11

A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors.

Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

A.

Deactivate the trigger before the integration runs.

B.

Use a try-catch block after the insert statement.

C.

Remove the Apex class from the integration user's profile.

D.

Use the Database method with all or None set to false

Full Access
Question # 12

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

Choose 2 answers

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.

Full Access
Question # 13

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?

A.

An invocae method

B.

An apex REST class

C.

An outbound message

D.

An Apex Controller

Full Access
Question # 14

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?

A.

1

B.

3

C.

4

D.

2

Full Access
Question # 15

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

Choose 2 answers

A.

VS Code

B.

SFDX CLI

C.

Change Sets

D.

Developer Console

Full Access
Question # 16

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?

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.

Full Access
Question # 17

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

A.

Validation Rules

B.

Record-Triggered flows

C, Scheduled

C.

Unvocable ActionsMoorche2023-06-13T14:55:00.63

Full Access
Question # 18

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?

A.

Account custom trigger

B.

Account approval process

C.

Account assignment rule

D.

Account workflow rule

Full Access
Question # 19

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?

A.

Flow Builder

B.

Approvals

C.

Apex trigger

D.

Einstein Next Best Action

Full Access
Question # 20

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?

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,

Full Access
Question # 21

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)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 22

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?

A.

Flux (view, action, dispatcher, and store)

B.

Waterfall Model

C.

Agile Development

D.

Model-View-Controller (MVC)

Full Access
Question # 23

Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field.

Which consideration should the developer be aware of when deciding between SOQL and SOSL?

Choose 2 answers

A.

SOSL is able to return more records.

B.

SOQL is faster for text searches.

C.

SOSL is faster for tent searches.

D.

SOQL is able to return more records.

Full Access
Question # 24

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

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

Full Access
Question # 25

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

Choose 3 answers

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

Full Access
Question # 26

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

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

Full Access
Question # 27

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

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.

Full Access
Question # 28

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

What should a developer use to satisfy this requirement?

A.

An Apex controller

B.

An Apex REST class

C.

An outbound message

D.

An invocable method

Full Access
Question # 29

Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.

What is the best practice to get the sum of all Order Line item totals on the Order record?

A.

Roll-up summary field

B.

Quick action

C.

Apex trigger

D.

Formula field

Full Access
Question # 30

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?

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.

Full Access
Question # 31

Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment.

What is the recommended process for deploying the code and configurations to Production?

A.

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

Full Access
Question # 32

A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.

Which annotation should the developer add to the Apex method to achieve this?

A)

B)

C)

D)

A.

Option

B.

Option

C.

Option

D.

Option

Full Access
Question # 33

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?

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

Full Access
Question # 34

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

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.

Full Access
Question # 35

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

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.

Full Access
Question # 36

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?

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.

Full Access
Question # 37

A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.

The following code is executed in the Developer Console using the Execute Anonymous window:

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

A.

5

B.

6

C.

10

D.

15

Full Access
Question # 38

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

A.

Production

B.

Dev Hub

C.

Environment Hub

D.

Sandbox

Full Access
Question # 39

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

A.

View the apex status Page

B.

View the apex flex Queue

C.

View the apex Jobs page

D.

Query the AsyncApexJobe object

Full Access
Question # 40

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?

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

Full Access
Question # 41

Universal Containers decides to use exclusively declarative development to build out a new

Salesforce application. Which three options should be used to build out the database layer

for the application? Choose 3 answers

A.

Roll-Up Summaries

B.

Triggers

C.

Relationships

D.

Flow

E.

Custom Objects and Fields

Full Access
Question # 42

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

A.

B.

C.

D.

Full Access
Question # 43

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?

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

}

Full Access
Question # 44

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

A.

A list of newly created sObjects without IDs

B.

null

C.

Undefined

D.

An empty list of sObjects

Full Access
Question # 45

In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers

A.

Self-contained and reusable units of an application

B.

Rich component ecosystem

C.

Automatic code generation

D.

Server-side run-time debugging

Full Access
Question # 46

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

Choose 3 answers

A.

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

B.

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

C.

A method using the @InvocableMethod annotation must be declared as static

D.

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

E.

Only one method using the @InvocableMethod annotqation can be defined per Apex class.

Full Access
Question # 47

In the following example, which sharing context will myMethod execute when it is invoked?

A.

Sharing rules will not be enforced for the running user.

B.

Sharing rules will be Inherited from the calling context.

C.

Sharing rules will be enforced by the instantiating class.

D.

Sharing rules will be enforced for the running user.

Full Access
Question # 48

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

A.

Bulk API

B.

Tooling API

C.

Setup Menu

D.

Salesforce DX

E.

Metadata API.

Full Access
Question # 49

A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.

In which two ways can this be accomplished?

Choose 2 answers

A.

The parent component can use a custom event to pass the data to the child component,

B.

The parent component can use the Apex controller class to send data to the child component.

C.

The parent component can invoke a method in the child component

D.

The parent component can use a public property to pass the data to the child component.

Full Access
Question # 50

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?

A.

@future

B.

@RemoteAction

C.

@InvocableMethod

D.

@AuraEnaled

Full Access
Question # 51

What should a developer use to script the deployment and unit test execution as part of continuous integration?

A.

Developer Console

B.

Execute Anonymous

C.

Salesforce CLI

D.

VS Code

Full Access
Question # 52

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?

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.

Full Access
Question # 53

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?

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.

Full Access
Question # 54

A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the datadase.

Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits?

Choose 2 answers

A.

Use partial DML statements to ensure only valid data is committed.

B.

Use the System,Limit classto monitor the current CPU governor limit consumption.

C.

Use the Database,Savepoint method to enforce database integrity.

D.

D. Use the Reedonly annotation to bypass the number of rows returned by a SOQL.

Full Access
Question # 55

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?

A.

Use the Data Loader command line.

B.

Create a Schedulable Apex class.

C.

Schedule a report.

D.

Define a Data Export scheduled job.

Full Access
Question # 56

A developer is tasked with building a custom Lightning web component to collect Contact information.

The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users.

What should the developer use in their Lightning Web Component to support the security requirements?

A.

force-input-field

B.

ui-input-field

C.

aura-input-field

D.

lightning-input-field

Full Access
Question # 57

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

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

Full Access
Question # 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)

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.

Full Access
Question # 59

Refer to the code snippet below:

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 method available within the Lightning web component?

Choose 3 answer

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

Full Access
Question # 60

niversal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with

of orders at a time.

A developer is tasked with integrating orders placed in Salesforce with UC's enterprise resource planning (ERP) system.

‘After the status for an Craer__c is first set to "Placed’, the order information must be sent to a REST endpoint in the ERP system that can

process ne order at a time.

What should the developer implement to accomplish this?

A.

Callout from an §urare method called from a trigger

B.

Callout from a Sarchabie class called from a scheduled job

C.

Flow with 2 callout from an invocable method

D.

Callout from a queseatie class called from a trigger

Full Access
Question # 61

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

What is the first step towards troubleshooting the issue?

A.

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.

Full Access
Question # 62

A developer needs to allow users to complete a form on an Account record that will create a record for a custom object.

The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.

Which three things should the developer do to satisfy these requirements?

Choose 3 answers

A.

Create a Dynamic Form,

B.

Add a Dynamic Action to the Account Record Page.

C.

Create a Custom Permission for the users.

D.

Add a Dynamic Action to the Users' assigned Page Layouts.

E.

Create a Lightning wet> component.

Full Access
Question # 63

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

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.

Full Access
Question # 64

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?

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

Full Access
Question # 65

A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:

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

A.

@Extends(class=Laptop'')

public class SilverLaptop

B.

public calss SilverLaptop extends Laptop

C.

@Interface (class=''Laptop'')

public class SilverLaptop

D.

public class Silverlaptop implements Laptop

Full Access
Question # 66

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

A.

Tooling API

B.

Developer console

C.

Bulk API

D.

Matadata API

Full Access
Question # 67

What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?

A.

FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)

B.

FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted, name), contacted, name)

C.

SELECT lead(id, name). accountOd, name), contacted, name) FROM Lead, Account, Contact WHERE Name = "universal Containers'

D.

SELECT Lead.id. Lead.Name, Account.Id, AccountName, Contacted, Contact.Name FROM Lead, Account, Contact WHERE CompanvName * Universal Containers'

Full Access
Question # 68

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?

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.

Full Access
Question # 69

A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.

What should the developer use to satisfy this requirement in the most efficient manner?

A.

Apex trigger

B.

Approval process

C.

Screen-based flow

D.

Lightning Component

Full Access
Question # 70

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?

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.

Full Access