Certification Practice Test | PDF Questions | Actual Questions | Test Engine | Pass4Sure
PDII : Salesforce Certified Platform Developer II (PDII) Exam
Salesforce PDII Questions & Answers
Full Version: 568 Q&A
PDII Dumps
PDII Braindumps
PDII Real Questions
PDII Practice Test
PDII Actual Questions
Salesforce
PDII
Salesforce Certified Platform Developer II (PDII)
https://killexams.com/pass4sure/exam-detail/PDII
Question: 90
Business rules require a Contact to always be created when a new Account is created .
What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact
fails?
A. use the Database.Delete method if the Contact insertion fails.
B. Disable validation rules on Contacts and set default values with a Trigger.
C. use the Database.Insert method with allOrNone set to False.
D. use setSavePoint() and rollback() with a try/catch block.
Answer: D
Question: 91
A Developer wishes to improve runtime performance of Apex calls by caching results on the client .
What is the best way to implement this?
A. Decorate the server-side method with @AuraEnabled(cacheable=true).
B. Set a cookie in the browser for use upon return to the page.
C. Decorate the server-side method with @AuraEnabled(storable=true).
D. Call the setStorable() method on the action in the JavaScript client-side code.
Answer: A
Question: 92
A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object.
What is the recommended mechanism the developer should use to accomplish this?
A. Schema Class
B. Apex API
C. Schema Builder
D. Metadata API
Answer: A
Question: 93
An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.
A new process on the case object was just created in production for when a Case is created or updated< since the
process was created, they are reports that the Count is being incremented by more than one on Case edit.
Which change in the Apex code will fix the problem?
A)
B)
C)
D)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Question: 94
A developer is integrated with a legacy on-premises SQL database.
What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?
A. External Object
B. Lookup field
C. Formula field
D. External Id field
Answer: D
Question: 95
A developer encounters an error that states that the Apex heap size is exceeded .
Which technique may reduce heap size?
A. Add the transient keyword to the variable definition
B. Move the variable definition inside the scope of the function
C. Use static variables instead of instance variables
D. Use SOQL for loops instead of standard SOQL queries
Answer: D
Question: 96
A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view
pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages
regarding heap and view state limits.
What are three recommendations to optimize page performance? (Choose three.)
A. Segregate calculation functionality from input functionality
B. Specify the list of sales forecasts as transient
C. Implement pagination and reduce records per page
D. Create formula fields to compute pivoted forecast calculations
E. Use JavaScript Remoting instead of controller actions
Answer: A,C,E
Question: 97
A developer wants to retrieve and deploy metadata, perform simple CSV export of query results, and debug Apex
REST calls by viewing JSON responses.
Which tool should the developer use?
A. Developer Console
B. Force.com Migration Tool
C. Workbench
D. Force.com IDE
Answer: C
Question: 98
A developer has been asked to create code that will meet the following requirements:
Receives input of: Map
Performs a potentially long-running callout to an outside web service
Provides a way to confirm that the process executed successfully
Which asynchronous feature should be used?
A. ©future (callout=true)
B. Database.AllowCallouts interface
C. Schedulable interface
D. Queueable interface
Answer: D
Question: 99
A company wants to implement a new call center process for handling customer service calls. It requires service reps
to ask for the caller’s account number before proceeding with the rest of their call script.
Following best practices, what should a developer use to meet this requirement?
A. Approvals
B. Flow Builder
C. Apex Trigger
D. Process Builder
Answer: B
Question: 100
A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It
was agreed that each Administrator would have their own sandbox in which to test changes. Recently, users notice that
fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once
sent emails and created tasks no longer do so .
Which two statements are true regarding these issues and resolution? Choose 2 answers
A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to
production.
B. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be
reset and fields to disappear.
C. The administrators are deploying their own Change Sets, thus deleting each other’s fields from the objects in
production.
D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and
Workflows in Production
Answer: A,D
Question: 101
A developer is writing code that requires making callouts to an external web service .
Which scenario necessitates that the callout be made in an @future method?
A. The callouts will be made in an Apex Test class.
B. The callouts will be made in an Apex Trigger.
C. The callout could take longer than 60 seconds to complete.
D. over 10 callouts will be made in a single transaction.
Answer: B
Question: 102
Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by
clicking a button on a Lightning Record page?
A. Force: lightningQuickAction
B. Lightning:editAction
C. Fightning:quickAction
D. Force:lightningEditAction
Answer: A
Question: 103
Universal Containers has a Visualforce page that displays a table every Container_ c being rented by a gives Account.
failing because some of the customers rent over 100,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?
A. Implement pagination with an OffsetController.
B. Implement pagination with a StandardSetController.
C. Use lazy loading and a transient List variable.
D. Use JavaScript remoting with SOQL Offset.
Answer: B
Question: 104
A developer has a page with two extensions overriding the Standard controller for Case.
What will happen when a user clicks the command button?
A. All of the three Save methods will be executed
B. Save from Case Standard Controller will be executed
C. Save from CaseExtensionTwo will be executed
D. Save from CaseExtensionOne will be executed
Answer: D
Question: 105
The Metadata API___________.
A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query,
queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
B. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its
advantages include ease of integration and development, and it’s an excellent choice of technology for use with mobile
applications and web projects
C. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to
maintain passwords, perform searches, and much more
D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to
migrate changes from a sandbox or testing org to your production environment
Answer: D
Question: 106
Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions.
The Lightning Component uses an Apex Controller to get the data it needs .
What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?
A. SUM() SOQL aggregate query on the Opportunity object
B. SOQL for loop that counts the number of Opportunities records
C. COUNT() SOQL aggregate query on the Opportunity object
D. Apex Batch job that counts the number of Opportunity records
Answer: C
User: Lizabeta***** Initially, I struggled with the difficult topics of the pdii exam while using massive books to prepare. However, thanks to the Killexams.com practice tests, I was able to memorize all the information within a brief time and passed the exam with an impressive score of 85%. I am indebted to Killexams.com for making my success possible. |
User: Vitali***** I am yet another satisfied customer of killexams.com, and I highly recommend it to anyone preparing for the pdii exam. I opted for this package to prepare for my exam, and it proved to be extremely helpful. The syllabus was covered thoroughly, and the preparation was thorough. I felt confident on the exam day, and when I found out that the questions were the same as those provided by killexams.com, I was amazed. I did not hesitate to recommend this product to anyone preparing for the exam. |
User: Una***** I am proud to have scored 89% on my PDII exam, which was a challenging but rewarding experience. I owe my success to Killexams.com, which provided accurate assessments of my potential and capabilities in preparation for the exam. This resource is particularly helpful for tests taken shortly before the academic test and offers reliable updates. The PDII exam offers a thorough evaluation of a candidates potential and capabilities. |
User: Samantha***** My preparation for the PDII exam was incorrect, and the topics appeared difficult to me. However, with the help of the questions and answers provided by Killexams.com, I was able to overcome my difficulties. I am grateful to the site for its assistance. The material was easy to understand and retain, and I was able to score 92%, which was quite impressive considering my one-week preparation. |
User: Lucas***** I just passed the PDII exam with Killexams.com bundle, and it was a great solution for quick yet dependable and valid practice tests. Although Its an expert-level exam, their exam simulator accurately simulates the exam, including the unique question types. It contributed to me getting a 100% score, and I highly recommend it. |
Features of iPass4sure PDII Exam
- Files: PDF / Test Engine
- Premium Access
- Online Test Engine
- Instant download Access
- Comprehensive Q&A
- Success Rate
- Real Questions
- Updated Regularly
- Portable Files
- Unlimited Download
- 100% Secured
- Confidentiality: 100%
- Success Guarantee: 100%
- Any Hidden Cost: $0.00
- Auto Recharge: No
- Updates Intimation: by Email
- Technical Support: Free
- PDF Compatibility: Windows, Android, iOS, Linux
- Test Engine Compatibility: Mac / Windows / Android / iOS / Linux
Premium PDF with 568 Q&A
Get Full VersionAll Salesforce Exams
Salesforce ExamsCertification and Entry Test Exams
Complete exam list