Verified PDII dumps Q&As - Pass Guarantee Exam Dumps Test Engine [2024]
PDII dumps and 198 unique questions
Salesforce Certified Platform Developer II (PDII) exam is designed for experienced developers who want to demonstrate their advanced knowledge and skills in developing custom applications on the Salesforce platform. Salesforce Certified Platform Developer II (PDII) certification is the highest level of certification for Salesforce developers and requires candidates to pass both a multiple-choice exam and a hands-on programming assignment.
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. PDII 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 # 28
A developer has created, Lightning web component that uses the get Record wire adapter.
Which three things should the developer do in a test validate the wire method is working as expected?
Choose 3 answer
- A. Use the emit () API.
- B. Import getRecord from Lightning/uiRecordAPi.
- C. Import wire from 1w.
- D. Create a JSOM file with mock data.
- E. Use an assert statement to validate results.
Answer: B,C,E
NEW QUESTION # 29
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.
Which feature of Apex code is required to facilitate this solution?
- A. describeSObjects()
- B. Dynamic Schema binding
- C. SOSL queries
- D. REST API
Answer: A
NEW QUESTION # 30
Which tag should a developer use to display different text while an <apex:commandButton> is Processing an action?
- A. <apex:actionSupparts
- B. <apex:actionStatus>
- C. <apex:actionPaller>
- D. <apex:pageMes sagas
Answer: B
Explanation:
The <apex:actionStatus> tag in Visualforce is used to display the status of an AJAX request, such as showing different text while a command button is processing an action.References: Visualforce Developer Guide - apex:actionStatus
NEW QUESTION # 31
Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page.
What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?
- A. use System. runsAs () to test as an administrator and a community user.
- B. use System. profiles() to test as an administrator and a community user.
- C. use System. profiles1h=() to test as a sales rep and a community user.
- D. use System. profiles=() to test as a sales rep and a community user.
Answer: C
Explanation:
To test that record sharing is enforced on the Visualforce page, the developer should use System.runAs() to test as a sales rep and a community user. The System.runAs() method allows the developer to run a test method as a specified user, and verify that the user has the appropriate permissions and access to the records. The developer can use this method to create a sales rep user and a community user, and run the test method as each user to check that the record sharing rules are applied correctly on the Visualforce page. The developer can also use System.assert() to verify the expected results. Using System.profiles() to test as a sales rep and a community user would not work, as there is no such method in Apex. Using System.profiles() to test as an administrator and a community user would not work, as the administrator user would have access to all records and would not test the record sharing rules. Using System.runAs() to test as an administrator and a community user would not work, as the administrator user would have access to all records and would not test the record sharing rules. Reference: [Testing with the runAs Method], [Testing Custom Controllers and Controller Extensions]
NEW QUESTION # 32
What is the transaction limit for the number of records for SOQL queries?
- A. There is no limit
- B. 10,000
- C. 20,000
- D. 5,000
- E. 50,000
Answer: E
NEW QUESTION # 33
What is the transaction limit on the number of "sendEmail" method calls?
- A. There is no limit
- B. 0
- C. 1
- D. 2
- E. 3
Answer: D
Explanation:
Explanation
Explanation/Reference:
Explanation:
The reserveEmailCapacity methods let you declare how many emails you want to send prior to actually sending, allowing you to handle limit errors prematurely
NEW QUESTION # 34
Refer to the Lightning component below:
The Lightning Component allows users to click a button to save their changes and then 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. Enable Debug Mode for Lightning components for the user.
- C. Use console.log() messages in the JavaScript.
- D. Use Developer Console to view the debug log.
- E. Use Developer Console to view checkpoints.
Answer: A,B,C
Explanation:
To debug the JavaScript, the developer can use the following three techniques:
Use console.log() messages in the JavaScript. The console.log() method is a built-in JavaScript function that prints a message to the browser's console. The developer can use this method to log the values of variables, parameters, or expressions in the JavaScript code, and check the console output for errors or unexpected results. The developer can also use other console methods, such as console.error(), console.warn(), or console.info(), to log different types of messages with different colors and icons.
Use the browser's dev tools to debug the JavaScript. The browser's dev tools are a set of tools that are integrated in the browser and allow the developer to inspect, modify, and debug the web pages. The developer can use the dev tools to debug the JavaScript code by setting breakpoints, stepping through the code execution, watching the variables, evaluating the expressions, and viewing the call stack. The developer can also use the dev tools to inspect the DOM elements, the network requests, the performance, and the storage of the web page.
Enable Debug Mode for Lightning components for the user. Debug Mode for Lightning components is a feature that allows the developer to debug the Lightning components more easily. When Debug Mode is enabled for a user, the Lightning components are served to the user in a more readable and unminified format, which makes the JavaScript code easier to understand and debug. The developer can also see more detailed error messages and stack traces when Debug Mode is enabled. The developer can enable Debug Mode for Lightning components for a user by going to Setup > Debug Mode, and selecting the user from the list. Reference: [Debug Your Code], [Use Browser Development Tools to Debug Your Code], [Debug Lightning Components]
NEW QUESTION # 35
A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?
- A. The event is fired from a custom renderer.
- B. An event is fired 'ontouchend'' and is unhandled.
- C. The event has multiple handlers registered in the project.
- D. The event handler calls a trigger.
Answer: C
Explanation:
The infinite loop in the application event could be caused by multiple handlers registered in the project. If the event is fired and then handled in such a way that the handling leads to the event being fired again, this can create a loop. Care must be taken to ensure that the handling of the event does not re-trigger the same event unintentionally.References: Aura Components Developer Guide - Application Events
NEW QUESTION # 36
What is the optimal way to fix this?
- A.

- B.

- C.

- D.

Answer: B
Explanation:
Test.startTest() and Test.stopTest() should wrap the method call for resource allocation. Test.setMock() sets a mock callout for the test to handle callouts.References: Apex Developer Guide - Testing HTTP Callouts
NEW QUESTION # 37
Instead of waiting to send emails to support personnel directly from the finish method of a batch Apex process, Universal Containers wants to notify an external system in the event that an unhandled exception occurs.
What is the appropriate publish/subscribe logic to meet this requirement?
- A. Publish the error event using the Eventbus. publish () method.
- B. Publish the error event using the addError method.
- C. Publish the error event with a Flow.
- D. No publishing is necessary. Have the external system subscribe to the BatchapexErrorEvent.
Answer: D
Explanation:
The BatchapexErrorEvent is a standard platform event that is published automatically by the system when an unhandled exception occurs in a batch Apex job. The external system can subscribe to this event using a CometD client or an Apex trigger and handle the error accordingly. This way, the batch Apex process does not need to publish any custom events or send any emails to notify the external system. Reference: [BatchApexErrorEvent], [Subscribe to Platform Events]
NEW QUESTION # 38
A developer built an Aura component for guests to self-register upon arrival at a front desk kiosk. Now the developer needs to create a component for the utility tray to alert users whenever a guest arrives at the front desk.
What should be used?
- A. Changelog
- B. DML Operation
- C. Application Event
- D. Component Event
Answer: C
NEW QUESTION # 39
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.
Which Apex code feature is required to facilitate this solution'
- A. Streaming API
- B. Dynamic SOQL
- C. Dynamic variable binding
- D. Report API
Answer: B
NEW QUESTION # 40
A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:
How can the component"5 controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?
- A. Use the gerSubjectType method in an Apex class.
- B. Add force:hasSobjectName to the implements attribute.
- C. Create a design attribute and configure via App Builder.
- D. Set the sObject type as a component attribute.
Answer: B
NEW QUESTION # 41 
What can be done to improve the performance of the insert trigger shown above?
- A.

- B.

- C.

- D.

Answer: A
NEW QUESTION # 42
A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:
<aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM>
<div>Hello!</div>
</aura:component>
How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?
- A. Create a design attribute and configure via App builder.
- B. Add force:hasSobjectName to the implements.
- C. Use the getSObjectTypeQ method in an Apex class.
- D. Set the sObject type as a component attribute.
Answer: B
NEW QUESTION # 43
JavaScript remote actions need be either a _______ or _______ class and must be _______.
- A. Public or TestVisible and must be static.
- B. Private or global and must be static.
- C. Public or global and must be static.
Answer: C
NEW QUESTION # 44
Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b.
These are the fields on Customer_Transaction__b:
Account__c
Program__c
Points_Earned__c
Location__c
Transaction_Date__c
The following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c.
Which SOQL query is valid on the Customer_Transaction__b Big Object?
- A. SELECT Account__c, Program__c, Transaction_Date__c
FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3'
AND Program__c LIKE 'Shop%'
AND Transaction_Date__c=2019-05-31T00:00Z - B. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
- C. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c ='Shoppers' AND Transaction_Date__c=2019-05-31T00:00Z
- D. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c INCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
Answer: C
NEW QUESTION # 45
Refer to the exhibit
Users of this Visualforce page complain that the page does a full refresh every time the Search button Is pressed.
What should the developer do to ensure that a partial refresh Is made so that only the section identified with opportunity List is re-drawn on the screen?
- A. Ensure the action method search returns null.
- B. Implement the <apex:actionfunction> tag with immediate = true.
- C. Enclose the DATA table within the <apex:actionRegion> tag.
- D. Implement the render attribute on the <apex:ccxmandButton> tag.
Answer: D
Explanation:
The developer should implement the render attribute on the apex:commandButton tag to ensure that a partial refresh is made so that only the section identified with opportunity List is re-drawn on the screen. The render attribute specifies the ID of one or more components that are redrawn when the result of an AJAX update request returns to the client. The developer can use the render attribute to limit the scope of the refresh to the apex:pageBlock component that contains the data table, and avoid refreshing the entire page. Enclosing the data table within the apex:actionRegion tag will not help, as the apex:actionRegion tag defines a section of a page that demarcates a form within a form, and allows the developer to limit the processing of form elements to the contents of the region. However, it does not affect the refresh of the page or the components. Ensuring the action method search returns null will not help, as it will only prevent the page from reloading, but it will not refresh the data table with the new search results. Implementing the apex:actionFunction tag with immediate = true will not help, as the apex:actionFunction tag defines a JavaScript function that can invoke a controller action method, and the immediate attribute specifies whether the action method is executed immediately, without processing any validation rules. However, it does not affect the refresh of the page or the components. Reference: [apex:commandButton], [apex:actionRegion], [apex:actionFunction], [Visualforce Developer Guide]
NEW QUESTION # 46
......
PDII Dumps for Pass Guaranteed - Pass PDII Exam: https://www.actual4exams.com/PDII-valid-dump.html
PDII Exam Dumps - Try Best PDII Exam Questions: https://drive.google.com/open?id=1-4wCo-q3nsSZgzBXtbBGUXTAzL7zRKvp