Authentic Best resources for PDII Test Engine Practice Exam
[2022] PDII PDF Questions - Perfect Prospect To Go With SurePassExams Practice Exam
Who should take the PDII exam
Salesforce Certified Platform Developer II Exam certification is an internationally-recognized validation that identifies persons who earn it as possessing skilled as a Salesforce Certified Platform Developer II. If a candidate wants significant improvement in career growth needs enhanced knowledge, skills, and talents. The Salesforce PDII Exam provides proof of this advanced knowledge and skill. If a candidate has knowledge of associated technologies and skills that are required to pass the Salesforce PDII Exam then he should take this exam.
How to book the PDII Exam
These are following steps for registering the PDII Exam. Step 1: Visit to Webassessor Exam Registration Step 2: Signup/Login to Webassessor Step 3: Select the onsite proctored or online proctored delivery method of Certification Exam Step 4: Select Date, time and confirm with a payment method
For more information, please click here.
NEW QUESTION 142
During the order of execution of a Visualforce page GET request, what happens after this step?
Evaluate constructors on controllers and extensions
- A. Create view state if <apex: form> exists
- B. Evaluate constructors and expressions on custom components
- C. Evaluate expressions, action attributes, and method calls
- D. Send the HTML response to the browser
Answer: B
NEW QUESTION 143
JavaScript remote actions need be either a _______ or _______ class and must be _______.
- A. Public or TestVisible and must be static.
- B. Public or global and must be static.
- C. Private or global and must be static.
Answer: B
NEW QUESTION 144
Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers
- A. Use a Map to cache the results of the Region__c query by Id.
- B. Move the Region__c query to outside the loop.
- C. Use a Map accountMap instead of List accountList.
- D. Remove the last line updating accountList as it is not needed.
Answer: B,D
NEW QUESTION 145
<lightning:layout multipleRows="true">
<lightning:layoutItem size="12">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12">{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
Refer to the component code above. The information displays as expected (in three rows) on a mobile device.
However, the information is not displaying as desired (in a single row) on a desktop or tablet.
Which option has the correct component changes to display correctly on desktops and tablets?
<lightning:layout multipleRows="true">
- A. <lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout> - B. <lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="6" largeDeviceSize="4">
{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true"> - C. <lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" largeDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" largeDeviceSize="4">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true"> - D. <lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Name}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="4">
{!v.account.AccountNumber}
</lightning:layoutItem>
<lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry}
</lightning:layoutItem>
</lightning:layout>
<lightning:layout multipleRows="true">
Answer: A
NEW QUESTION 146
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)
- A. Custom Labels
- B. Translation Workbenc
- C. convertCurrency()
- D. Global Labels
- E. getLocalCurrency()
Answer: A,B,C
NEW QUESTION 147
Which of the following about Dynamic Apex is incorrect?
- A. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
- B. Schema.getGlobalDescribeQ gives you a map of all sObject
- C. getDescribe() can get you a variety of info on a particular object/field
- D. In dynamic SOQL, you can use bind variables and bind variable fields
Answer: D
Explanation:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection
NEW QUESTION 148
A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk. What should be used?
- A. Application Event
- B. DML Operation
- C. Changelog
- D. Component Event
Answer: A
NEW QUESTION 149
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. REST/JSON
- B. SOAP/XML and REST/JSON
- C. SOAP/XML
- D. SOAP/XML and SOAP/JSON
Answer: C
NEW QUESTION 150
A developer must create a way for external partners to submit millions of leads into Salesforce per day. How should the developer meet this requirement?
- A. Publicly expose a Visualforce page via Force.com Sites.
- B. Publicly expose an Apex Web Service via Force.com Sites.
- C. Host a Web-to-Lead form on the company website.
- D. Create a web service on Heroku that uses Heroku Connect.
Answer: B
NEW QUESTION 151 
A company has the Lightning Component above that allows users to dick a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected.
Which three techniques can a developer use to debug the JavaScript? Choose 3 answers
- A. Use the browser's dev tools to debug the JavaScript.
- B. Use Developer Console to view the debug log.
- C. Enable Debug Mode for Lightning components for the user.
- D. Use Developer Console to view checkpoints.
- E. Use consde.log() messages in the JavaScript.
Answer: A,C,E
NEW QUESTION 152
Exhibit.
A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information... about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can displ... data efficiently while preserving security?
Choose 3 answers
- A. Implement the without sharing keyword in the class declaration.
- B. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
- C. Annotate the Apex method with gAuraEnabled-
- D. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
- E. Implement the with sharing keyword in the class declaration.
Answer: B,D,E
NEW QUESTION 153
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly.
What will improve performance? (Choose three.)
- A. Using actionRegion and rerender
- B. Setting the Apex Page attribute cache=true
- C. Using selective queries
- D. Turning off the standard stylesheet
- E. Reducing the view state
Answer: B,C,E
NEW QUESTION 154
What field type can be used in the WHERE clause to improve SOQL query performance? Choose 3 answers
- A. External Id fields
- B. Telephone fields
- C. Name fields
- D. Email fields
- E. Lookup fields
Answer: A,C,E
NEW QUESTION 155
What is the transaction limit for the number of DML statements allowed?
- A. 0
- B. 2,000
- C. 1
- D. 200 (synchronous), 100 (async)
- E. 100 (synchronous), 200 (async)
Answer: C
NEW QUESTION 156
What Salesforce tool lets you deploy/retrieve metadata, check status of apex jobs, and check responses of REST calls?
- A. Workbench
- B. Streaming API
- C. Force.com Migration Tool
- D. Developer Console
Answer: A
NEW QUESTION 157
What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?
- A. <apex:error>
- B. <apex:pageMessage>
- C. <apex:message>
- D. <apex:customMessage>
Answer: B
NEW QUESTION 158
What is a technique to maximize code re-use within Visualforce pages? Choose 3 answers
- A. Creating Visualforce Templates With .
- B. Creating reusable Visualforce Components with .
- C. Defining reusable page regions with .
- D. Referencing an existing page With .
- E. Creating reusable page sections with .
Answer: A,B,D
NEW QUESTION 159
.A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active,' and Accounts with the type set to 'Prospect' should have a status of 'Pending.' No other changes to data should be made. Which code block will accurately meet the business requirements?
A)
B)
C)
D)
- A. Option A
- B. Option C
- C. Option B
- D. Option D
Answer: D
NEW QUESTION 160
The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0. What is the optimal way to fix this?
- A. Add Test.startTest() before and Test.stopTest() after insert acct
- B. Change the assertion to System.assertEquals(0, acctAfter.Number_Of_Times_Viewed__c).
- C. Change the initialization to acct.Number_Of_Times_Viewed__c = 1.
- D. Add Test.startTest() before and Test.stopTest() after AuditUtil.incrementViewed.
Answer: C
NEW QUESTION 161
What does the System. runAs () method enforce based on the target user?
- A. Record sharing
- B. Field-level permissions
- C. Object CRUD permissions
- D. License limits
Answer: A
NEW QUESTION 162
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly. What will improve performance? Choose 3 answers
- A. Reducing the view state.
- B. Setting the Apex Page attribute cache=true.
- C. Turning off the standard stylesheet.
- D. Using selective queries.
- E. Using actionRegion and rerender.
Answer: A,B,D
NEW QUESTION 163
......
Best updated resource for PDII Online Practice Exam: https://www.surepassexams.com/PDII-exam-bootcamp.html
Realistic Practice PDII Salesforce Certified Platform Developer II (PDII) Exam Braindumps: https://drive.google.com/open?id=196bF--fLUyOUZUzJcTVahTN7X-miarok