Verified PDII dumps Q&As - 100% Pass from DumpExam
Pass PDII Exam in First Attempt Guaranteed 2023 Dumps!
To be eligible to take the Salesforce PDII exam, candidates must hold the Salesforce Certified Platform Developer I credential and have at least two years of experience developing custom applications on the Salesforce platform. This exam consists of 60 multiple-choice questions and has a time limit of 120 minutes. The passing score for the PDII exam is 65%.
NEW QUESTION # 73
Lightning Aura Component
Lightning Aura Controller
Apex Controller
Given the code above, which two changes need to be made in the Apex Controller for the code to work?
(Choose two.)
- A. Remove line 06 from the Apex Controller and use firstName in the return
- B. Annotate the entire class as @AuraEnabled instead of just the single method
- C. Change the argument from JSONObject to String
- D. Change the method signature to be global static, not public static
Answer: A,C
NEW QUESTION # 74
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?
- A. Custom Controller
- B. Controller Extensions
- C. Standard Controller
- D. Standard List/Set Controller
Answer: C
NEW QUESTION # 75
A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response_ _c do not belong to a list of blocked domains. The list of blocked domains will be stored in a custom object for ease of maintenance by users. Note that the Survey_Response_ _c object is populated via a custom Visualforce page.
What is the optimal way to implement this?
- A. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller
- B. Implement the logic in a Validation Rule on the Contact and a Validation Rule on the Survey_Response_ _c object
- C. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact
- D. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom Visualforce page controller
Answer: A
NEW QUESTION # 76
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.
What should the developer do to speed up test execution''
- A. Reduce the amount of test methods in the class.
- B. Define a method that creates test data and annotate with @createData
- C. Define a method that creates test data and annotate with @testSetup.
- D. Ensure proper usage of test data factory In all test methods.
Answer: C
NEW QUESTION # 77
Which technique can run custom logic when a Lightning web component is loaded?
- A. Use the renderedCallback ( ) method.
- B. Call SA.enqueueAction passing in the method to call.
- C. Use the connectedCallback () method.
- D. Use an aura:handler "init" event to call a function.
Answer: D
NEW QUESTION # 78
What type of request and payload format can be received by a static method in a global Apex class that uses the webService keyword?
- A. SOAP/XML and SOAP/JSON
- B. SOAP/XML and REST/JSON
- C. REST/JSON
- D. SOAP/XML
Answer: D
NEW QUESTION # 79
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a "Maximum view state size limit" error message under certain conditions.
According to Visualforce best practice, which three actions should the developer take to reduce the view state?
(Choose three.)
- A. Use the transient keyword in the Apex controller for variables that do not maintain state
- B. Use the final keyword in the controller for variables that will not change
- C. Use filters and pagination to reduce the amount of data
- D. Refine any SOQL queries to return only data relevant to the page
- E. Use the private keyword in the controller for variables
Answer: B,C,D
NEW QUESTION # 80
A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.
The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?
- A. Move the CalloutUtil.makeRestCallout method call below the catch block.
- B. Remove the Database.setSavepoint and Database.rollback.
- C. Change the CalloutUtil.makeRestCallout to an @future method
- D. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.
Answer: C
NEW QUESTION # 81
What is a limitation of compound fields?
- A. Can only be updated through individual field components.
- B. Cannot be queried through the use of Apex classes.
- C. Are read-only unless accessed by Location and Address Apex classes.
- D. Are read-only when accessed through Visualforce pages.
Answer: A
NEW QUESTION # 82
If you have a method "doStuff(List<sObject> records)", which is a valid call?
- A. doStuff([Select Id From Account]);
- B. doStuff(List<Account> records);
- C. doStuff(sObject obj);
- D. doStuff(Account acct);
Answer: A
Explanation:
Explanation
NEW QUESTION # 83
Recently a Salesforce org's integration failed because it exceeded the number of allowed API calls in a 24-hour period. The integration handles a near real-time, complex insertion of data into Salesforce. The flow of data is as follows: * The integration looks up Contact records with a given email address and, if found, the integration adds a Task to the first matching Contact it finds. If a match is not found, the integration looks up Lead records with a given email address and, if found, the integration adds a Task to the first matching Lead it finds. * If a match is not found, the integration will create a Lead and a Task for that newly created Lead. What is one way in which the integration can stay near real-time, but not exceed the number of allowed API calls in a 24-hour period?
- A. Create several Apex InboundEmailHandlers to accept calls from the third-party system, thus bypassing the API limits.
- B. Use the REST API as well as the SOAP API to effectively double the API calls allowed in a 24-hour period.
- C. write a custom Apex web service that, given an email address, does all of the logic the integration code was doing.
- D. Create an Inbound Message that, using Flow, can do all of the logic the integration code was doing.
Answer: A
NEW QUESTION # 84
The following code segment is railed from a Trigger handler class from the Opportunity trigger:
Which two changes should improve this code and make it more efficient? Choose 2 answers
- A. Move business logic inside the Opportunity trigger.
- B. Move the SOQL to fetch the account record outside of the for loop.
- C. Move the DML outside of the for loop.
- D. Use Triginstead.old instead of Trigger.new.
Answer: B,C
NEW QUESTION # 85
A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment.
A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the production environment, but the test class fails with an insufficient privileges error.
What should a developer do to fix the problem?
- A. Configure the production environment to enable ''Run All tests as Admin User.''
- B. Verify that Test, statement ( ) is not inside a For loop in the test class.
- C. Add seeAllData=true to the test class to work within the sharing model for the production environment.
- D. Add system.runAd ( ) to the best class to execute the trigger as a user with the correct object permissions.
Answer: D
NEW QUESTION # 86
A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity's Probability is greater than 50%.
What is the optimal way to automate this?
- A. Build a Flow on Opportunity.
- B. Build a Process on Opportunity.
- C. Create a Workflow on Opportunity.
- D. Use an Apex Trigger on Opportunity.
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION # 87
Which use case is an appropriate fit for the @future asynchronous Apex method? Choose 2 answers
- A. A developer has long-running jobs with large data volumes that need to be performed in batches-
- B. A developer has jobs that need larger query results than regular transactions allow.
- C. A developer needs to segregate DML operations and bypass the mixed save DML error.
- D. A developer has long-running methods and needs to prevent delaying an Apex transaction.
Answer: C,D
NEW QUESTION # 88
What is the output of the following code snippet? l Contact con = new Contact( LastName = 'Smith', Department = 'Admin'); 2 insert con; 3 4 Savepoint sp_finance = Database.setSavepoint(); 5 con.Department
'finance'; 6 update con; 7 8 Savepoint sp_hr = Database.setSavepoint(); 9 con.Department = 'HR'; 10 update con; 11 12 Database.rollback(sp_finance); l3 Database.rollback(sp_hr);
- A. The contact record will be saved ME department value HR.
- B. A runtime error will be thrown on line 13.
- C. The contact record will be saved with department value Finance.
- D. A runtime error will be thrown on line 12.
Answer: B
NEW QUESTION # 89
......
Salesforce PDII Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
The Salesforce Certified Platform Developer II (PDII) exam is designed for experienced developers who are looking to validate their advanced-level skills in building custom applications on the Salesforce platform. This certification is intended to demonstrate a developer's ability to design and implement complex business logic, data models, and user interfaces using advanced programming concepts and techniques.
PDII Dumps Full Questions - Exam Study Guide: https://www.dumpexam.com/PDII-valid-torrent.html
Use Real PDII - 100% Cover Real Exam Questions: https://drive.google.com/open?id=1KV7OdFqY88a1XxMqmoyCu0IZ3yG1KsCe
