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

PDI Questions and Answers

Question # 6

what are the methods used to show input in classic and lightning ?

A.

Use visualforce page in classic and lightning component in lightning

Full Access
Question # 7

Where are two locations a developer can look to find information about the status of asynchronous or future cals? Choose 2 answers

A.

Apex Flex Queue

B.

Apex Jobs

C.

Paused Flow Interviews component

D.

Time-Based Workflow Monitor

Full Access
Question # 8

As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows.

Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers)

A.

Use the FOR UPDATE option on the SOQL query to lock down the records retrieved.

B.

Use visual keyword when declaring the retrieve variable.

C.

Use a SOQL FOR loop, to chunk the result set in batches of 200 records.

D.

Use WHERE clauses on the SOQL query to reduce the number of records retrieved.

Full Access
Question # 9

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

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

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.

Full Access
Question # 11

Which two characteristics are true for Aura component events?

A.

Calling event, stopPropagation ( ) may or may not stop the event propagation based of the current propagation phase.

B.

If a container component needs to handle a component event, add a handleFacets='' attribute to Its handler.

C.

Only parent components that create subcomponents (either in their markup or programmatically) can handle events.

D.

The event propagates to every owner In the containment hierarchy.

Full Access
Question # 12

A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create?

A.

After insert

B.

After update

C.

Before update

D.

Before insert

Full Access
Question # 13

What are two benefits of using declarative customizations over code? Choose 2 answers

What are two benefits of using declarative customizations over code?

A.

Declarative customizations automatically update with each Salesforce release.

B.

Declarative customizations automatically generate test classes.

C.

Declarative customizations automatically generate test classes.

D.

Declarative customizations generally require less maintenance.

Full Access
Question # 14

Which three resources in an Aura Component can contain Javascript functions? Choose 3 answers

A.

Controller

B.

Helper

C.

Renderer

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.

Ant Migration Tool

B.

SFDX CLI

C.

Change Sets

D.

Developer Console

Full Access
Question # 16

which statement is true regarding execution order when triggers are associated to the same object and event?

A.

Trigger execution order cannot be guaranteed.

B.

executed In the order they are modified.

C.

Triggers are executed alphabetically by trigger name.

D.

Triggers are executed in the order they are created.

Full Access
Question # 17

A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?

A.

Write a class that extends HTTPCalloutMock.

B.

Write a class that implements the HTTPCalloutMock interface.

C.

Write a class that implements the WebserviceMock interface.

D.

Write a class that extends WebserviceMock

Full Access
Question # 18

Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?

A.

Asynchronous Data Capture Events

B.

Developer Log

C.

Event Monitoring Log

D.

Calendar Events

Full Access
Question # 19

Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?

A.

Publish the error event using the addError() method and have the external system subscribe to the event using CometD.

B.

Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD.

C.

Have the external system subscribe to the BatchApexError event, no publishing is necessary.

D.

Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.

Full Access
Question # 20

A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this functionality?

A.

A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

B.

A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience

C.

A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience

D.

A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience

Full Access
Question # 21

Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?

A.

ernit()

B.

fireEvent()

C.

fire()

D.

registerEvent()

Full Access
Question # 22

Which two statements true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers

A.

Getter methods can pass a value from a controller to a page.

B.

There is no guarantee for the order in which Getter or Setter methods are executed.

C.

Setter methods always have to be declared global.

D.

Setter methods can pass a value from a controller to a page.

Full Access
Question # 23

A recursive transaction is limited by a DML statement creating records for these two objects:

1. Accounts

2. Contacts

The Account trigger hits a stack depth of 16.

Which statement is true regarding the outcome of the transaction?

A.

The transaction fails only if the Contact trigger stack depth is greater or equal to 16.

B.

The transaction succeeds as long as the Contact trigger stack depth is less than 16.

C.

The transaction fails and all the changes are rolled back.

D.

The transaction succeeds and all the changes are committed to the database.

Full Access
Question # 24

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

Which exception type cannot be caught?

A Custom Exception

B. CalloutException

C. LimitException

D. NoAccessException

Full Access
Question # 26

Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage.

Which two strategies can a developer use to accomplish this?

Choose 2 answers

A.

Use the Process Automation settings.

B.

Use an after-save flow.

C.

Use a trigger.

D.

Use a validation rule.

Full Access
Question # 27

What is the result of the following code snippet?

A.

201 Accounts are inserted.

B.

200 Accounts are inserted.

C.

0 Accounts are inserted.

D.

1 Account is inserted.

Full Access
Question # 28

Which process automation should be used to send an outbound message without using Apex code?

A.

Workflow Rule

B.

Process Builder

C.

Approval Process

D.

Flow Builder

Full Access
Question # 29

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 it checked

D.

Cascading delete operations

Full Access
Question # 30

What is the maximum number of SOQL queries used by the following code? List aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }

A.

5

B.

6

C.

1

D.

2

Full Access
Question # 31

Which declarative process automation feature supports iterating over multiple records?

A.

Flows

B.

Validation Rules

C.

Approval Process

D.

Workflow rules

Full Access
Question # 32

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

A.

Public class DrawList implements Sortable, Implements Drawable {

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

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

]

B.

Public class DrawList extends Sortable, Drawable {

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

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

}

C.

Public class DrawList implements Sortable, Drawable {

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

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

}

D.

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

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

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

Full Access