Pre-Winter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ex2p65

Exact2Pass Menu

Question # 4

What are three characteristics of change set deployments?

Choose 3 answers

A.

Change sets can only be used between related organizations.

B.

Change sets can be used to transfer records.

C.

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

D.

Change sets can deploy custom settings data.

E.

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

Full Access
Question # 5

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?

A.

@isTest (SeeAllData-true)

B.

@FreTest

C.

@TestSetup

D.

@StartTest

Full Access
Question # 6

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 # 7

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?

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.

Full Access
Question # 8

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 # 9

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?

A.

Auto-launched flow on Task

B.

Apex trigger on Task

C.

Task actions

D.

Record-trigger flow on Opportunity

Full Access
Question # 10

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

number of factors.

What is the correct definition of the Apex method?

A.

B.

C.

D.

Full Access
Question # 11

A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?

A.

@AuraEnabled(cacheable=true)

public static List search(String term) { /* implementation*/ }

B.

@AuraEnabled(cacheable=true) public List search(String term) { /*implementation*/ }

C.

@AuraEnabled(cacheable=false) public static List search(String term) { /*implementation*/ }

D.

@AuraEnabled(cacheable=false) public List search(String term) { /*implementation*/ }

Full Access
Question # 12

Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.

The component should be able to validate the user input before saving the information to the database.

What is the best technology to create this component?

A.

Flow

B.

Lightning Web Components

C.

Visualforce

D.

VUE JavaScript framework

Full Access
Question # 13

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

Which Visualforce feature supports this requirement?

A.

B.

C.

D.

Full Access
Question # 14

What are two benefits of using External IDs?

Choose 2 answers

A.

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

B.

An External ID can be a formula field to help create a unique key from two fields in Salesforce.

C.

An External ID can be used with Salesforce Mobile to make external data visible.

D.

An External ID is indexed and can improve the performance of SOQl quenes.

Full Access
Question # 15

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

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

Full Access
Question # 16

In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce?

Choose 2 answers

A.

Log capturing via the Debug Logs Setup page

B.

Built-in standard and custom set controllers

C.

Self-contained and reusable units of an application

D.

Rich component ecosystem

Full Access
Question # 17

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?

A.

Exception

B.

Messaging

C.

OrgLimits

D.

Limits

Full Access
Question # 18

Which action may cause triggers to fire?

A.

Updates to Feed Items

B.

Renaming or replacing a picklist entry

C.

Changing a user's default division when the transfer division option is checked

D.

Cascading delete operations

Full Access
Question # 19

How many Accounts will be inserted by the following block of code?

A.

100

B.

150

C.

0

D.

500

Full Access
Question # 20

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

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.

Full Access
Question # 21

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?

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

Full Access
Question # 22

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

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

Full Access
Question # 23

Which three data types can a SOQL query return?

Choose 3 answers

A.

List

B.

Long

C.

Integer

D.

sObJect

E.

Double

Full Access
Question # 24

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

A.

Use variable binding and replace the dynamic query with a static SOQL.

B.

Use the escapeSingleQuote method to sanitize the parameter before its use.

C.

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

D.

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

Full Access
Question # 25

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

A.

$Lightning.createComponent

B.

C.

$Lightning.useComponent

D.

$Lightning.use

E.

Full Access
Question # 26

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 # 27

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

Which two automationtools can be used to implement this feature?

Choose 2 answers

A.

Approval process

B.

Fast field Updates record-triggered flow

C.

Quick actions

D.

Account trigger

Full Access
Question # 28

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?

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'

Full Access
Question # 29

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 # 30

A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id number and is marked as Unique in the schema definition.

As part of a data enrichment process. Universal Containers has a CSV file that contains updated data for all candidates in the system, the file contains each Candidate's primary id as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.

Which technique should the developer implement to streamline the data upload?

A.

Create a Process Builder on the Candidate_c object to map the records.

B.

Create a before Insert trigger to correctly map the records.

C.

Update the primaryid__c field definition to mark it as an External Id

D.

Upload the CSV into a custom object related to Candidate_c.

Full Access
Question # 31

A developer created a trigger on a custom object. This custom object also has some dependent pick lists.

According to the order of execution rules, which step happens first?

A.

System validation is run for maximum field lengths.

B.

The original record is loaded from the database.

C.

Old values are overwritten with the new record values,

D.

JavaScript validation is run In the browser.

Full Access
Question # 32

As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.

Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers

A.

Aura Components

B.

Vlsualforce Components

C.

Lightning Web Components

D.

Visualforce Pages

Full Access
Question # 33

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

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.

Full Access
Question # 34

Which three Salesforce resources can be accessed from a Lightning web component?

Choose 3 answers

A.

SVG resources

B.

Third-party web components

C.

Content asset files

D.

Static resources

E.

All external libraries

Full Access
Question # 35

Which salesforce org has a complete duplicate copy of the production org including data and configuration?

A.

Developer Pro Sandbox

B.

Partial Copy Sandbox

C.

Production

D.

Full Sandbox

Full Access
Question # 36

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 # 37

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?

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.

Full Access
Question # 38

An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price.

What is the correct implementation?

A.

Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.

B.

Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.

C.

Implement the Line amount as a currency field and the order amount as a SUM formula field.

D.

Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order.

Full Access
Question # 39

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?

A.

accountRec., isDeletable()

B.

Account, isDeletable ()

C.

AccountRec, ObjecType, ieDeletable ()

D.

Schena, sobjectType, Account, isDeletetable ()

Full Access
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

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 # 41

What is the result of the following code snippet?

A.

Accounts are inserted.

B.

Account Is inserted.

C.

200 Accounts are inserted.

D.

201 Accounts are Inserted.

Full Access
Question # 42

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

Choose 2 answers

A.

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

B.

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

C.

Developer and Developer Pro sandboxes have different storage limits.

D.

Data import wizard is a client application provided by Salesforce.

Full Access
Question # 43

Universal Container wants Opportunities to no longer be editable when itreaches the Closed/Won stage. Which two strategies can a developer use to accomplish this?

Choose2 answer

A.

Use a validation

B.

Use a trigger

C.

Use an after-save flow.

D.

Use the Process Automation settings.

Full Access
Question # 44

What should be used to create scratch orgs?

A.

Developer Console

B.

Salesforce CLI

C.

Workbench

D.

Sandbox refresh

Full Access
Question # 45

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

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.

Full Access
Question # 46

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

variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is

assigned. In which two ways can the developer declare the variables to ensure their value

can only be assigned one time? Choose 2 answers

A.

Use the static keyword and assign its value in the class constructor.

B.

Use the final keyword and assign its value in the class constructor.

C.

Use the static keyword and assign its value in a static initializer.

D.

Use the final keyword and assign its value when declaring the variable.

Full Access
Question # 47

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

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];

Full Access
Question # 48

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

Choose 3 answers

A.

Process Flows

B.

Workflow Rules

C.

Criteria-based Sharing calculations

D.

Email messages

E.

Roll-Up Summary fields

Full Access
Question # 49

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

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.

Full Access
Question # 50

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 # 51

A developer is creating a Lightning web component to showa list of sales records.

The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all

fields on the record except the commission field.

How should this be enforced so that the component works for both users without showing any errors?

A.

Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.

B.

Use Security. stripInaccessible to remove fields inaccessible to the current user.

C.

Use Lightning Data Service to get the collection of sales records.

D.

Use Lightning Locker Service to enforce sharing rules and field-level security.

Full Access
Question # 52

How does the Lightning Component framework help developers implement solutions faster?

A.

By providing an Agile process with default steps

B.

By providing code review standards and processes

C.

By providing device-awareness for mobile and desktops

D.

By providing change history and version control

Full Access
Question # 53

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 # 54

What writing an Apex class, a developer warts to make sure thai all functionality being developed Is handled as specified by the requirements.

Which approach should the developer use to be sure that the Apex class is working according tospecification?

A.

Create a test class to execute the business logic and run the test in the Developer Console.

B.

Include a savepoint and Database,rollback.

C.

Include a try/catch block to the Apex class.

D.

Run the code in an Execute Anonymous block n the Deceloper Consider.

Full Access
Question # 55

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 # 56

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 # 57

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?

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.

Full Access
Question # 58

Refer to the following Apex code:

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

A.

0

B.

1

C.

2

D.

3

Full Access
Question # 59

Universal Container* decides to use purely declarative development to build out a new Salesforce application.

Which two options can be used to build out the business logic layer for this application?

Choose 2 answer

A.

Validation Rules

B.

Remote Actions

C.

Record- Triggered flow

D.

Batch Jobs

Full Access
Question # 60

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

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

Which two should a developer implement to satisfy the requirements?

Choose2 answer

A.

Flow

B.

Future method

C.

Trigger

D.

Invocable method

Full Access
Question # 61

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?

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

Full Access
Question # 62

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?

A.

Custom controller

B.

Controller extension

C.

Validation rule

D.

Apex trigger

Full Access
Question # 63

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 # 64

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 # 65

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?

A.

B.

C.

D.

Full Access
Question # 66

Given the following code snippet, that is part of a custom controller for a Visualforce page:

In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers

A.

Use if (Schema, sobjectType, Contact, isUpdatable ( ) )

B.

Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) )

C.

Use if (Schema.sObjectType.Contact.isAccessible ( ) )

D.

Use if (thisContact.Owner = = UserInfo.getuserId ( ) )

Full Access
Question # 67

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 # 68

Which three statements are true regarding custom exceptions in Apex? (Choose three.)

A.

A custom exception class must extend the system Exception class.

B.

A custom exception class can implement one or many interfaces.

C.

A custom exception class cannot contain member variables or methods.

D.

A custom exception class name must end with “Exception”.

E.

A custom exception class can extend other classes besides the Exception class.

Full Access
Question # 69

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

A.

Database.insert (records, false)

B.

insert records

C.

insert (records, false)

D.

Database.insert (records, true)

Full Access
Question # 70

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?

A.

Record-triggered Flow

B.

Formula field

C.

Apex Trigger

D.

Process Builder

Full Access