0% found this document useful (0 votes)
20 views5 pages

PDII Demo

The document is a demo version of the Salesforce PDII exam questions and answers, providing a limited selection of content. It includes questions related to batch Apex processes, custom metadata, error handling in Lightning components, and efficient loading of Visualforce pages. Additionally, it offers a promotional link for obtaining the full exam file and a discount coupon for purchase.

Uploaded by

averey.gohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

PDII Demo

The document is a demo version of the Salesforce PDII exam questions and answers, providing a limited selection of content. It includes questions related to batch Apex processes, custom metadata, error handling in Lightning components, and efficient loading of Visualforce pages. Additionally, it offers a promotional link for obtaining the full exam file and a discount coupon for purchase.

Uploaded by

averey.gohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Salesforce

PDII Exam
Platform Developer II

Questions & Answers


(Demo Version - Limited Content)

Thank you for Downloading PDII exam PDF Demo

Get Full File:


https://www.certsland.com/pdii-dumps/

www.certsland.com
Questions & Answers PDF Page 2

Version: 32.0

Question: 1

Instead of waiting to send emails to support personnel directly from the finish
method of a batch Apex process, Universal Containers wants to notify an external
system in the event that an unhandled exception occurs.
What is the appropriate publish/subscribe logic to meet this requirement?

A. Publish the error event using the Eventbus. publish () method.


B. No publishing is necessary. Have the external system subscribe to the BatchapexErrorEvent.
C. Publish the error event using the addError method.
D. Publish the error event with a Flow.

Answer: B

Explanation:
Use BatchApexErrorEvent for notifications. It's automatically triggered for unhandled exceptions in
batch Apex. No need for manual publishing. External systems can subscribe to this event to receive
notifications.
Reference: Batch Apex

Question: 2

A developer is asked to develop a new AppFxchange application. A feature of the program creates
Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature
needs to be configurable, as different Salesforce instances require Surveys at different times.
Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings
that apply to
most customers.
What should the developer use to store and package the custom configuration settings for the app?

A. Custom objects
B. Custom settings
C. Custom metadata
D. Custom labels

www.certsland.com
Questions & Answers PDF Page 3

Answer: C

Explanation:
Custom metadata is best for storing configurable settings. It's deployable, packageable, and
upgradeable. Allows different configurations for different instances.
Reference: Custom Metadata Types

Question: 3

A user receives the generic "An internal server error has occurred” while interacting
with a custom Lightning component.
What should the developer do to ensure a more meaningful message?

A. Add an onerror event handler to the tag.


B. Add an error-view component to the markup.
C. Use platform events to process the error
D. Use an AuraHandledexception in a try-catch block.

Answer: D

Explanation:
Use AuraHandledException in try-catch for custom errors. It enables sending meaningful, user-
friendly error messages to the Lightning component.
Reference: Handling Errors in Lightning Components

Question: 4
Universal Containers develops a Visualforce page that requires the inclusion of external JavaScript
and C55 files. They want to ensure efficient loading and caching of the page.
Which feature should be utilized to achieve this goal?

A. ActionFunction
B. PageBlockTable
C. Static resources
D. RemoteAction

Answer: C
Explanation:
Static resources are ideal for efficient loading and caching of external files in Visualforce. They allow

www.certsland.com
Questions & Answers PDF Page 4

bundling and minimizing HTTP requests.


Reference: Using Static Resources

Question: 5
A company manages information about their product offerings in custom objects named Catalog and
Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many
as 100,000 Catalog Items.
Both custom objects have a CurrencylsoCode text field that contains the currency
code they should use. If a Catalog's CurrencylsoCode changes, all of its Catalog
Items’ CurrencylsoCodes should be changed as well.
What should a developer use to update the CurrencylsoCodes on the Catalog Items
when the Catalog's CurrencylsoCode changes?

A. A Database.Schedulable and Database.Batchacle class that queries the Catalog Item object and
updates the Catalog Items if the Catalog CurrencylSoCode is different
B. An after insert trigger on Catalog that updates the Catalog Items if the Catalogs CurrencylsoCode is
different
C. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog’s
CurrencylsoCode is different
D. A Database. schedulable and Dazabase.Bazchacle class that queries the Catalog object and
updates the Catalog Items if the Catalog CurrencylSoCode is different

Answer: A
Explanation:
Use Database.Batchable for handling large data sets. It can efficiently process 100,000 Catalog Items
asynchronously and update CurrencylsoCodes.
Reference: Using Batch Apex

www.certsland.com
Thank You for trying PDII PDF Demo

https://www.certsland.com/pdii-dumps/

Start Your PDII Preparation

[Limited Time Offer] Use Coupon " SAVE20 " for extra 20%
discount on the purchase of PDF file. Test your
PDII preparation with actual exam questions

www.certsland.com

You might also like