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

Welcome To DumpsPedia

PDII Sample Questions Answers

Questions 4

A company has a native iOS order placement app that needs to connect to Salesforce to retrieve consolidated information from many different objects in a

JSON format.

Which is the optimal method to implement this in Salesforce?

Options:

A.

Apex REST web service

B.

Apex SOAP web service

C.

Apex SOAP callout

D.

Apex REST callout

Buy Now
Questions 5

A developer gets an error saying ‘Maximum Trigger Depth Exceeded.’

What is a possible reason to get this error message?

Options:

A.

A trigger is recursively invoked more than 16 times.

B.

The SOQL governor limits are being hit.

C.

There are numerous DML operations in the trigger logic.

D.

A flow trigger was included too many times.

Buy Now
Questions 6

A company has an Apex process that makes multiple extensive database operations and web service callouts. The database processes and web services can take a long time to run and must be run sequentially.

How should the developer write this Apex code without running into governor limits and system limitations?

Options:

A.

Use Queueable Apex to chain the jobs to run sequentially.

B.

Use Apex Scheduler to schedule each process.

C.

Use multiple 3zutuze methods for each process and callout.

D.

Use Limits class to stop entire process once governor limits are reached.

Buy Now
Questions 7

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be

displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

How should a developer implement the callouts?

Options:

A.

An HTTP REST callout for the billing callout and a Continuation for the tax callout

B.

A Continuation for both the billing callout and the tax callout

C.

An HTTP REST callout for both the billing callout and the tax callout

D.

A Continuation for the billing callout and an HTTP REST callout for the tax callout

Buy Now
Questions 8

Universal Containers develops a Salesforce application that requires frequent interaction with an external REST API.

To avoid duplicating code and improve maintainability, how should they implement the APL integration for code reuse?

Options:

A.

Use a separate Apex class for each API endpoint to encapsulate the integration logic,

B.

Include the API integration code directly in each Apex class that requires it.

C.

Create a reusable Apex class for the AFL integration and invoke it from the relevant Apex classes.

D.

Store the APT integration code as a static resource and reference it in each Apex class.

Buy Now
Questions 9

Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records?

Choose 2 answers

Options:

A.

SELECT Id FROM Account WHERE Name LIKE '!-NULL

B.

SELECT Id FRCM Account WHERE Name != ’ ’

C.

SELECT Id FRCM Account WHEP Name IN (List of Names) AND Customer_Number_c= 'ValueA

D.

SELECT Id FROM Account WHERE II IK (List of Account Ida)

Buy Now
Questions 10

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers’ sales representatives can edit the orders on the same Visualforce page.

What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

Options:

A.

use System. profiles=() to test as a sales rep and a community user.

B.

use System. profiles() to test as an administrator and a community user.

C.

use System. profiles1h=() to test as a sales rep and a community user.

D.

use System. runsAs () to test as an administrator and a community user.

Buy Now
Questions 11

Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 12

A developer is building a Lightning web component that searches

for Contacts. The component must communicate the search

results to other unrelated Lightning web components, that are in

different DOM trees, when the search completes.

What should the developer do to implement the communication?

Options:

A.

Fire an application event.

B.

Publish an event on an event channel.

C.

Fire a custom component event.

D.

Publish a message on a message channel.

Buy Now
Questions 13

There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once.

What can a developer do to help alleviate such issues?

Options:

A.

Use JavaScript remoting to query the accounts.

B.

Use the transient keyword in the Apex code when querying the Account records.

C.

Upload a third-party data table library as a static resource.

D.

Use the standard Account List controller and implement pagination.

Buy Now
Questions 14

Refer to the component code and requirements below:

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 15

A developer is writing code that requires making callouts to an external web service.

Which scenario necessitates that the callout be made in an asynchronous method?

Options:

A.

The callouts will be made in an Apex trigger.

B.

The callouts will be made using the REST APL.

C.

Over 10 callouts will be made in a single transaction.

D.

The callout could take longer than 60 seconds to complete.

Buy Now
Questions 16

A company needs to automatically delete sensitive information after seven years.

This could delete almost a million records every day.

How can this be achieved?

Options:

A.

Schedule an 3fuzure process to query records older than seven years, and then recursively invoke itself in 1,000 record batches to delete them,

B.

Use aggregate functions to query for records older than seven years, and then delete the aggrigateResults objects.

{civ [+] Schedule a batch Apex process to run every day that queries and deletes records older than seven years.

C.

Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.

Buy Now
Questions 17

A company has a Lightning page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.

What can a developer use to analyze and diagnose the problem in the Lightning page?

Options:

A.

Salesforce Lightning Inspector Transactions tab

B.

Salesforce Lightning Inspector Actions tab

C.

Salesforce Lightning Inspector Event Log tab

D.

Salesforce Lightning Inspector Storage tab

Buy Now
Questions 18

A developer is tasked with creating a Lightning web component that is responsive on various devices,

Which two components should help accomplish this goal?

Choose 2 answers

Options:

A.

lightning-navigation

B.

Lightning-input-location

C.

Lightning-layout

D.

lightning-layout—-item

Buy Now
Questions 19

Which three actions must be completed in a Lightning web component for a JavaScript file In a static resource to be loaded? Choose 3 answers

Options:

A.

Import the static resource.

B.

Reference the static resource in a