Valid PDII Dumps shared by ExamDiscuss.com for Helping Passing PDII Exam! ExamDiscuss.com now offer the newest PDII exam dumps, the ExamDiscuss.com PDII exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDII dumps with Test Engine here:

Access PDII Dumps Premium Version
(204 Q&As Dumps, 35%OFF Special Discount Code: freecram)

Online Access Free PDII Exam Questions

Exam Code:PDII
Exam Name:Salesforce Certified Platform Developer II (PDII)
Certification Provider:Salesforce
Free Question Number:84
Version:v2023-09-09
Rating:
# of views:4882
# of Questions views:169144
Go To PDII Questions

Recent Comments (The most recent comments are at the top.)

FRANCISCO - Aug 26, 2025

No.# C,D E https://developer.salesforce.com/docs/platform/lwc/guide/testing.html#:~:text=Write%20Jest%20tests%20to:%20*%20Test%20a,*%20Verify%20that%20events%20fire%20when%20expected.

Stacey - Jul 21, 2025

I passed with such a high score.
I really appreciate your dump PDII help.

Igris - Jun 28, 2025

No.# Yes, I agree with Mauricio.
Correct option is D - Create a formula field that substitutes NULL values for a string of text, create an index for the formula field, then use the formula within the WHERE clause.

As part of a new integration, a developer is asked to implement a custom search functionality that:
Can perform unrestricted queries
Can account for all values including NULL in a custom picklist field Type__c on the Opportunity object
The Opportunity object has OWD = Public Read-Only
Custom index has been created for Type__c
Dataset contains over 5 million records with many NULLs

Igris - Jun 27, 2025

No.# Answer should be C,D & E

C. To verify the DOM output of a component
✔️ Correct. Jest tests can inspect the rendered DOM to verify that the expected HTML structure or values appear based on component logic or user input.

D. To verify that events fire when expected
✔️ Correct. You can use Jest to mock and assert that CustomEvents are dispatched correctly from your LWC component.

E. To test basic user interaction
✔️ Correct. Jest is commonly used to simulate user interaction like button clicks, input changes, and form submissions to verify component behavior.

Igris - Jun 26, 2025

No.# An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CcommissionBaseAmount _c, when
an Opportunity is edited and the Opportunity's Amount changes.
A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a
value for a custom field, CommissionAmount c, when an Opportunity stage changes to Closed/Won.
Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save,
the CommissionAmount __c is incorrect.
Which action should the developer take to correct this problem?

A. Replace the process with a Fast Field Update record-trigger flow.
B. Call the trigger from the process,
C. Call the process from the trigger.

other version of this question .
Ans is A for this question.

Igris - Jun 26, 2025

No.# Ans is
B. Account a = MyRemoter.getAccount('TestAccount');
System.assertEquals('TestAccount', a.Name);

Ashish - May 30, 2025

No.# Correct Answer : A Create and Dispatch a custom event

Igris - May 17, 2025

No.# Ans is C :
@Mauricio
Rewrite the business logic and use @TestVisible ------> @TestVisible is used to expose private methods/variables to test classes — it doesn't bypass callouts or solve DML issues.


The error message:

"You have uncommitted work pending. Please commit or rollback before calling out."

...means your code is attempting to make an HTTP callout after performing a DML operation, which is not allowed in the same transaction.

In test classes, this is especially common if:
You’re running business logic that performs DML and callouts.
The callout is real or not mocked with HttpCalloutMock.

Igris - May 17, 2025

No.# Ans is Validation rules.
Even though Validation Rules only show one error per field, they do support showing multiple field-level errors simultaneously — which is what users usually want — with no JavaScript required.

So if:

You have validation rules targeting different fields (e.g., Email, Phone, Company),
And you're using lightning-record-edit-form with lightning-input-field,

Then when the user clicks Submit, Salesforce will automatically show all field errors inline — one per field — with no JavaScript needed.

Kenneth - Jan 17, 2025

I passed PDII exam with a high score.

Jeffrey - Jan 12, 2025

I have passed the exam successfully for this set of PDII exam questions only. It is so helpful that i suggest all the candidates to make a worthy purchase of it. You won't regret for it.

Jonathan - Jan 04, 2025

These PDII exam questions are the latest you should have and they are accurate. I took the exam in the last day of this month, and i passed with a high score out of my expection. Thanks!

Fa3il khayr - Nov 17, 2024

No.# When dealing with a large data volume (e.g., 100,000 child records per parent record), triggers are not an ideal solution because they can quickly run into governor limits such as:

SOQL Query Limit: Triggers have a limit on the number of SOQL queries that can be executed per transaction.
DML Statement Limit: Large DML operations can exceed transaction limits.
Using a batch job is the recommended approach because it allows processing large datasets in manageable chunks, avoiding governor limits. Additionally, by scheduling the batch job using Database.Schedulable, the update process can be executed asynchronously.

Fa3il khayr - Nov 07, 2024

No.# Answer is C :
In Aura, application events are used when you need to communicate information across multiple, independent components in the application. Since this scenario involves multiple components on the same page that are not directly related, an application event is ideal. When the c:searchAccounts component selects an Account, firing an application event allows all other components on the page to react to that selection and display relevant information without requiring them to be in a parent-child relationship.

Fa3il khayr - Nov 07, 2024

No.# I think it's A .
Salesforce validation rules are declarative and can be used to validate more than one field on an object and display multiple error messages. This approach requires minimal JavaScript code and uses Salesforce's built-in validation framework.

Fa3il khayr - Nov 06, 2024

No.# A is correct

Fa3il khayr - Nov 06, 2024

No.# Answer is A :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_compare_remote_objects.htm

- Visualforce Remote Objects:
Makes basic “CRUD” object access easy
Doesn’t require any Apex code
Supports minimal server-side application logic
Doesn’t provide automatic relationship traversals; you must look up related objects yourself

- JavaScript Remoting:
Requires both JavaScript and Apex code
Supports complex server-side application logic
Handles complex object relationships better
Uses network connections (even) more efficiently

Fa3il khayr - Nov 06, 2024

No.# This is why C is correct :

Salesforce releases can vary between production and sandbox environments, especially if the sandbox was refreshed before a production release. New Salesforce releases introduce changes to platform behavior, new features, and potentially new or altered behaviors in code execution. If the sandbox is on a newer or different release than production, it might execute code differently, leading to unexpected test failures in the sandbox.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Other Version
8485 viewsSalesforce.PDII.v2024-03-02.q90
3327 viewsSalesforce.PDII.v2024-02-22.q73
2705 viewsSalesforce.PDII.v2023-08-14.q106
5637 viewsSalesforce.PDII.v2023-02-10.q154
7122 viewsSalesforce.PDII.v2022-08-07.q138
3739 viewsSalesforce.PDII.v2022-07-07.q131
2672 viewsSalesforce.PDII.v2022-06-21.q138
3823 viewsSalesforce.PDII.v2022-03-29.q116
3926 viewsSalesforce.PDII.v2022-01-18.q113
3708 viewsSalesforce.PDII.v2021-11-18.q112
2459 viewsSalesforce.PDII.v2021-11-15.q113
3944 viewsSalesforce.PDII.v2021-07-16.q108
3643 viewsSalesforce.PDII.v2021-05-13.q99
4446 viewsSalesforce.PDII.v2020-10-27.q45
4481 viewsSalesforce.PDII.v2020-06-24.q45
Exam Question List
2 commentQuestion 1: A developer is writing a Jest for a Lightning web component ...
3 commentQuestion 2: An org has a Process Builder process on Opportunity that set...
Question 3: A developer Is asked to develop a new AppExthange applicatio...
1 commentQuestion 4: A developer sees test failures in the sandbox but not in pro...
1 commentQuestion 5: Universal containers needs to integrate with several externa...
Question 6: Global with sharing class MyRemoter { public String accountN...
1 commentQuestion 7: In an organization that has multi-currency enabled, a develo...
Question 8: A developer is developing a reusable Aura component that wil...
2 commentQuestion 9: Consider the following code snippet: How should <c-order&...
3 commentQuestion 10: What is a benefit of JavaScript remoting over Visualforce Re...
Question 11: An Apex trigger creates a Contract record every time an Oppo...
1 commentQuestion 12: A company uses an external system to manage its custom accou...
Question 13: A company has a native iOS app for placing orders that needs...
Question 14: A developer wrote an Apex method that makes an HTTP callout ...
1 commentQuestion 15: Universal Containers (UC) wants to develop a customer commun...
Question 16: What should a developer use to query all Account fields for ...
Question 17: Account object has a field, Audit_Code__, that is used to sp...
Question 18: A Visualforce page loads slowly due to the large amount of d...
1 commentQuestion 19: As part of a custom interface, a developer team creates vari...
Question 20: Which statement is true regarding savepoints?...
Question 21: Which technique can run custom logic when a Lightning web co...
Question 22: Which use case can be performed only by using asynchronous A...
Question 23: A developer creates a Lightning web component to allow a Con...
2 commentQuestion 24: Consider the following code snippet: How should <c-order&...
Question 25: Users report that a button on a custom Lightning Web Compone...
3 commentQuestion 26: A developer created a Lightning web component that uses a li...
1 commentQuestion 27: A developer is asked to create a Lightning web component tha...
3 commentQuestion 28: A developer is working on a set of custom Aura components th...
Question 29: Universal Containers uses Salesforce to manage its product o...
3 commentQuestion 30: A company manages information about their product offerings ...
Question 31: (Exhibit) The test method above tests an Apex trigger that t...
Question 32: A developer is asked to find a way to store secret data with...
Question 33: A developer created a Lightning web component that allows us...
Question 34: A developer is building a Lightning web component that displ...
Question 35: A business requires that every parent record must have a chi...
Question 36: Consider the following queries. For these queries, assume th...
1 commentQuestion 37: A software company uses a custom object Defect_c, to track d...
Question 38: A developer has requirement to query three fields (id, name,...
Question 39: Refer to the markup below: A Lightning web component display...
Question 40: A developer notices the execution of all the test methods in...
Question 41: (Exhibit) What should be added to the setup, in the location...
Question 42: A developer is writing code that requires making callouts to...
Question 43: (Exhibit) AWC wants the real-time inventory reduction for a ...
Question 44: Which three actions must be completed in a Lightning web com...
4 commentQuestion 45: What are three reasons that a developer should write Jest te...
1 commentQuestion 46: A developer created an Apex class that updates an Account ba...
Question 47: A Visualforce page loads slowly due to the large amount of d...
1 commentQuestion 48: Users upload .csv files in an external system to create acco...
Question 49: A developer has a test class that creates test data before m...
Question 50: Refer to the following code snippets: MyOpportunities.js (Ex...
Question 51: A company uses Opportunism to track sales to their customers...
3 commentQuestion 52: As part of a new integration, a developer is asked to implem...
Question 53: There are user complaints about slow render times of a custo...
Question 54: A company represents their customers as Accounts in Salesfor...
1 commentQuestion 55: Refer to the component code and requirements below: Requirem...
1 commentQuestion 56: Universal Containers implements a private sharing model for ...
Question 57: Refer to the Aura component below: Component markup: (Exhibi...
Question 58: A Page throws an Attempt to dereference a null object error ...
Question 59: Refer to the code snippet below: (Exhibit) When a Lightning ...
2 commentQuestion 60: A developer has working business logic code, but sees the fo...
Question 61: A developer is building a Lightning web component that retri...
Question 62: The following code segment is railed from a Trigger handler ...
1 commentQuestion 63: Consider the Apex class below that defines a RemoteAction us...
Question 64: A company uses Salesforce to sell products to customers. The...
Question 65: The Account object has a field, auais_Code__c, that is used ...
Question 66: Universal Containers (UC) has enabled the translation workbe...
3 commentQuestion 67: A business currently has a process to manually upload orders...
Question 68: After a Platform Event is defined in a Salesforce org, event...
Question 69: (Exhibit) The test method above tests an Apex trigger that t...
1 commentQuestion 70: A developer has created, Lightning web component that uses t...
Question 71: An org records customer order information In a custom object...
1 commentQuestion 72: A developer implemented a custom data table in a Lightning w...
Question 73: (Exhibit) Consider the above trigger intended to assign the ...
Question 74: Given a list of Opportunity records named opportunityList, w...
Question 75: A developer is asked to look into an issue where a scheduled...
Question 76: A large company uses Salesforce across several departments. ...
Question 77: Universal Containers allows customers to log into a Salesfor...
Question 78: Salesforce users consistently receive a "Maximum trigger dep...
Question 79: A developer has a Batch Apex process, Batch_Account_Sales, t...
Question 80: A developer is building a Lightning web component that searc...
1 commentQuestion 81: Refer to the code snippet below: (Exhibit) As part of an Int...
2 commentQuestion 82: Universal Containers needs to integrate with a Heroku servic...
Question 83: Universal Containers wants to use a Customer Community with ...
Question 84: A company wants to incorporate a third-party web service to ...