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:116
Version:v2022-03-29
Rating:
# of views:3823
# of Questions views:165298
Go To PDII Questions

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

Mohammed-Ayoub - Jul 13, 2025

No.# I think it's actually B

Igris - Jun 27, 2025

No.# I think answer is option B. An Apex trigger that calls an @future method that allows callouts

Use Case: You need to send JSON payloads to an external system and receive resized images in return.
Trigger: This process should happen automatically when records are created or updated (e.g., when a product is added or image is uploaded).
@future(callout=true): Required because callouts can't be made directly inside triggers — you offload the callout to a future method that supports asynchronous processing and allows HTTP requests.
Supports JSON payloads and asynchronous behavior needed for integration.

Igris - May 17, 2025

No.# Correct Answer: C. Override the edit button for Lightning with a Lightning Component; and for Classic, override the edit button with a Visualforce page that contains the Lightning Component.


Lightning ----------> You can directly override the Edit button with a Lightning Component.
Classic --------------> Classic does not support Lightning Components directly, but you can embed a Lightning Component inside a Visualforce page using <lightning:container> or Lightning Out.

Igris - May 17, 2025

No.# YES @John you are correct.

the only difference between this two option is @AuraEnabled(cacheable=true) and @AuraEnabled(storable=true)
so Option D is Correct.

Ans : D. Decorate the server-side method with @AuraEnabled(cacheable=true).

Igris - May 10, 2025

No.# ✅ Correct Answer: C. Query Plan Tool

🔍 Explanation:
The Query Plan Tool in the Developer Console is used to analyze the performance of SOQL queries.

It provides insights into cardinality, cost, indexes used, and query selectivity.

This tool helps developers understand why a query might be slow and how to optimize it (e.g., by adding filters or indexes).

Riva - Jan 13, 2025

freecram is the best website for learning and studying PDII exam. I just passed the PDII exam in one go and found the majority of the Q&A are valid. Many thanks!

Darren - Oct 01, 2023

Passed! great dump btw, only 2 questions out of the total not on dump.

Don - May 21, 2023

No.# It's A

Ran - May 03, 2023

No.# Answer is B. cant think of anything other than to use batch apex.
we can however use queueable apex and chain job from parent so that we can query 100k records,
maybe something like offset and limit to separate the first and second job but maximum offset is 2,000 rows so it's still not feasible.

Ran - Apr 27, 2023

No.# loadData(){
//imperative apex call
getData({name: this.name})
.then({error,data}){
this.account = data
}
}

Ran - Apr 27, 2023

No.# Answer is Option C.
By writing a custom apex web service, we let salesforce handles all the complex process while reducing the api calls made.

Ran - Apr 26, 2023

No.# Option D.
More reason to avoid Option A since all of the initial setup will be run on that @testsetup method.
Ensuring the proper usage of test data factory and just using the methods that are necessary for the test will speed up the test execution.

Ran - Apr 26, 2023

No.# Main keyword here is "must be run sequentially".
So the answer must be D although we can only create one child queuable as a limit.
We can use limit class to avoid governor limits of cumulative callouts 120s.

Ran - Apr 26, 2023

No.# Suppose we write an Opportunity trigger.
trigger UpdateAccount on Opportunity(after update){
List<Account> lstAccs = new List<Account>();
for(Opportunity opp : Trigger.new){
if(opp.Stage == 'Closed'){
lstAccs.add(new Account(Id = opp.AccountId, Last_Sold_Date__c = Date.today());
}
}
update lstAccs;
I dont see a reason to re-query the parent account.
Option B, C & D doesnt make sense

Ran - Apr 18, 2023

No.# answer lies in A & B since both of them can make a rest callout.
Both can take a snapshot by querying and satisfies web service.
But overall i think using queuable we can also monitor the status of the callout.

Ran - Apr 18, 2023

No.# Answer is A & B since we are only talking on how events get published.
Events can be published by
1.) listening to a platform event using process builder or flow and use outbound messages.
2.) use apex to define the event instance and EventBus.publish
3.) use salesforce apis to create or publish an event. {{_endpoint}}/services/data/v54/sobjects/{{eventname}}
There's also many ways on how to subscribe to events externally but one way is to use cometD (Streaming API)

Zebulon - Mar 30, 2023

Great site!! I just passed PDII exam with 96% marks.

Peter - Jan 18, 2023

Today i take part in PDII exam,the result let me exciting,thank you so much.

Delia - Jan 03, 2023

Glad to get freecram on the internet Everything is perfect.

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
4881 viewsSalesforce.PDII.v2023-09-09.q84
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
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
4480 viewsSalesforce.PDII.v2020-06-24.q45
Exam Question List
Question 1: Which type of controller is best suited when you want to add...
Question 2: A Visualforce page loads slowly due to the large amount of d...
Question 3: Choose the correct definition for &lt;apex:pageMessage&gt;....
Question 4: If a developer wanted to display error messages with the sta...
Question 5: The test method above tests an Apex trigger that the develop...
Question 6: What is a consideration when using bind variables with dynam...
Question 7: The Metadata API___________.
1 commentQuestion 8: A developer has created a solution using the SOAP API for au...
2 commentQuestion 9: Universal Containers has an existing automation where a cust...
2 commentQuestion 10: After a Platform Event is defined in a Salesforce org, event...
1 commentQuestion 11: A developer needs to send Account records to an external sys...
Question 12: A developer has created a Visualforce page that uses a third...
Question 13: In which of the following scenarios would it be acceptable t...
Question 14: A developer has a page with two extensions overriding the St...
1 commentQuestion 15: messages are rendering on the page. Which component should b...
2 commentQuestion 16: Refer to the code snippet below: (Exhibit) As part of an Int...
Question 17: How can a developer efficiently incorporate multiple JavaScr...
Question 18: A developer needs test data for Apex test classes. What can ...
Question 19: A developer Is asked to develop a new AppExthange applicatio...
Question 20: A company has a custom component that allows users to search...
1 commentQuestion 21: Consider the following code snippet, depicting an Azure comp...
1 commentQuestion 22: Universal Containers needs to integrate with a Heroku servic...
Question 23: Which of the following variables are not transmitted in the ...
Question 24: Global with sharing class MyRemoter { public String accountN...
Question 25: A developer must create a custom pagination solution for acc...
1 commentQuestion 26: A developer wrote a trigger on Opportunity that will update ...
Question 27: A developer Is tasked with ensuring that email addresses ent...
Question 28: Which type of controller is best suited when you want all of...
Question 29: Business rules require a Contact to always be created when a...
Question 30: Which annotation exposes an Apex class as a RESTful neb serv...
3 commentQuestion 31: ABC Company has an Apex process that makes multiple extensiv...
1 commentQuestion 32: A developer notices the execution of all the test methods in...
Question 33: A large company uses Salesforce across several departments. ...
Question 34: Which interface needs to be implemented by a Lightning Compo...
Question 35: What is a potential design issue with the following code? (E...
Question 36: How long is field history retained?...
1 commentQuestion 37: Recently a Salesforce org's integration failed because it ex...
1 commentQuestion 38: A developer is building a Lightning web component to get dat...
Question 39: A developer writes the following code: (Exhibit) While testi...
Question 40: A developer created three Rollup Summary fields: Total_times...
1 commentQuestion 41: A developer is trying to decide between creating a Visualfor...
Question 42: Invokable methods accept sObjects as parameters....
Question 43: A developer 15 tasked with creating an application-centric f...
Question 44: Which of the following exceptions cannot be caught and will ...
1 commentQuestion 45: The maximum view state size of a visualforce page is________...
Question 46: What Salesforce tool lets you deploy/retrieve metadata, chec...
1 commentQuestion 47: In an organization that has multi-currency enabled, a develo...
Question 48: A developer has a Visual force page that automatically assig...
Question 49: 1 Contact con = new Contact ( LastName =fSmith', Department ...
2 commentQuestion 50: A company uses Opportunism to track sales to their customers...
Question 51: What are three benefits of using static resources in Visualf...
Question 52: A company manages information about their product offerings ...
Question 53: In a VisualForce page with a VisualForce component that has ...
Question 54: A company has a custom object. Request__c. that has a field,...
Question 55: A developer gets an error saying 'Maximum Trigger Depth Exce...
Question 56: A company processes Orders within their Salesforce instance....
Question 57: Given the following code: (Exhibit) Assuming there were 10 C...
Question 58: There are user complaints about slow render times of a custo...
Question 59: The REST API___________.
1 commentQuestion 60: The Account edit button must be overridden in an org where a...
Question 61: if the "PageReference.setRedirect" Apex function is set to F...
Question 62: A developer has a test class that creates test data before m...
Question 63: Which two scenarios require an Apex method to be called impe...
Question 64: When calling a RESTful web service, a developer receives a J...
Question 65: A developer wants to call an Apex Server-side Controller fro...
Question 66: A developer wants to retrieve and deploy metadata, perform s...
Question 67: When testing batch classes, what must a developer do? (Choos...
1 commentQuestion 68: A corporation has many different Salesforce orgs, with some ...
Question 69: A company uses a custom-built enterprise resource planning (...
Question 70: Assuming the CreateOneAccount class creates one account and ...
Question 71: Where in a query can you use Geolocation and Distance? (Choo...
Question 72: Universal Containers allows customers to log into a Salesfor...
Question 73: A company has the Lightning Component above that allows user...
Question 74: The Bulk API__________.
Question 75: A developer is creating unit tests for code that makes SOAP ...
Question 76: A developer creates an application event that has triggered ...
1 commentQuestion 77: Within the System.Limit class, what would you call to get th...
1 commentQuestion 78: Universal Containers needs to integrate with their own, exis...
Question 79: A developer needs to design a custom object that will be int...
Question 80: An org has a requirement that an Account must always have on...
Question 81: Which type of controller is best suited when you want all of...
Question 82: A developer has built a multi-page wizard using a single Cus...
Question 83: The progress of an apex job queued is using the System.enque...
Question 84: A company has many different unit test methods that create A...
Question 85: Which two relationship queries use the proper syntax? Choose...
2 commentQuestion 86: A Developer wishes to improve runtime performance of Apex ca...
1 commentQuestion 87: @isTest static void testAccountUpdate() { Account acct = new...
Question 88: If the "PageReference.setRedirect" Apex function is set to T...
Question 89: A custom Aura component, AddressValidation,cmp,exists in the...
Question 90: A developer is writing code that requires making callouts to...
Question 91: A company has a web page that needs to get Account record in...
Question 92: A Lightning Component has a section that displays some infor...
Question 93: An Apex trigger creates an Order__c record every time an Opp...
Question 94: Which statement should be used to allow some of the records ...
1 commentQuestion 95: Choose the correct definition for &lt;apex:actionFunction&gt...
1 commentQuestion 96: Sometimes events on Salesforce need to be handled by an exte...
Question 97: A developer receives an error when trying to call a global s...
Question 98: Universal Containers wants to use an external Web Service pr...
2 commentQuestion 99: The Contact object in an org is configured with workflow rul...
Question 100: What is the transaction limit on the recursive trigger depth...
Question 101: A developer has written the following method: static void pr...
1 commentQuestion 102: A company has a custom object, Sales Demo Request, that has ...
Question 103: What is the transaction limit for the number of records for ...
Question 104: Universal Containers implements a private sharing model for ...
2 commentQuestion 105: What tool in the Developer Console contains information on S...
Question 106: What is the transaction limit for the number of records per ...
Question 107: What is the transaction limit on the max timeout for all cal...
Question 108: A company represents their customers as Accounts in Salesfor...
Question 109: An Apex trigger creates a Contract record every time an Oppo...
Question 110: What is a benefit of JavaScript remoting over Visualforce Re...
Question 111: The head of recruiting at Universal Containers wants to prov...
Question 112: A developer writes the following Apex trigger so that when a...
Question 113: A developer is writing a Visualforce page to display a list ...
Question 114: A company has a Request__c object that has a lookup to the O...
Question 115: How can the DISTANCE and GEOLOCATION functions be used i|n S...
Question 116: Universal Containers (UC) wants to develop a customer commun...