New Exams-boost PDII Exam Questions| Real PDII Dumps Updated on Nov 01, 2021
PDII Braindumps – PDII Questions to Get Better Grades
NEW QUESTION 129
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 Trigger.
- B. Over 10 callouts will be made in a single transaction.
- C. The callouts will be made in an Apex Test class.
- D. The callout could take longer than 60 seconds to complete.
Answer: A
NEW QUESTION 130
The maximum view state size of a visualforce page is __________.
- A. 256kb
- B. 1mb
- C. 135kb
- D. 165kb
- E. 65kb
Answer: C
NEW QUESTION 131
35. A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning Component. What should the developer do to ensure a more meaningful message?
- A. Use an AuraHandledException in a try/catch block.
- B. Add an onerror event handler to the tag.
- C. Use ProcessBuilder to catch the error.
- D. Add an error-view component to the markup.
Answer: A
NEW QUESTION 132
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of
"1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger .
isBefore){ accountInstance Exec_Count_c += 1; } System. debug
(accountInstance.Exec_Count_c); } }
- A. 2, 2, 4, 4
- B. 1, 2, 3, 3
- C. 2, 2, 3, 3
- D. 1, 2, 3, 4
Answer: A
NEW QUESTION 133
Choose the correct definition for <apex:actionSupport>.
- A. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
- B. Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code
- C. Signifies which components should be processed by the server when an AJAX request is generated
- D. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name; use "status" field on related components to connect them
- E. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
Answer: A
NEW QUESTION 134
A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup.
What are three actions to enable this functionality? (Choose three.)
- A. Update code to call Test.setMock()
- B. Surround the data insertion with Test.startTest(), Test.stopTest()
- C. Surround the callout with TeststartTest(), Test.stopTest()
- D. Implement the HttpCalloutMock interface
- E. Implement the WebServiceMock interface
Answer: A,C,E
NEW QUESTION 135
Universal Containers implements a private sharing model for the Convention_Attendee_ _ccustom object. As part of a new quality assurance effort, the company created an Event_Reviewer_ _cuser lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to.
What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?
- A. Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
- B. Create a criteria-based sharing rule on the Convention Attendee custom object to share the records to a group of Event Reviewers.
- C. Create a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing Reasons and Apex Managed Sharing.
- D. Create criteria-based sharing rules on the Convention Attendee custom object to share the records with the Event Reviewers.
Answer: C
Explanation:
Explanation/Reference: https://help.salesforce.com/articleView?id=security_apex_sharing_reasons.htm&type=5
NEW QUESTION 136
.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 D
- B. Option B
- C. Option A
- D. Option C
Answer: A
NEW QUESTION 137
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page and want to include multiple records?
- A. Standard Controller
- B. Standard List/Set Controller
- C. Controller Extensions
- D. Custom Controller
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 138
Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.
In addition to this, the page should have a section that shows the location of each container on a map. Universal Containers wants the map to re-render whenever the location of a container is changed.
What can a developer use to accomplish this task?
- A. A single visualforce Page leveraging Platform Events
- B. Two Visualforce Page Components leveraging Application Events
- C. Two Lightning Components leveraging Platform Events
- D. Two Lightning Components leveraging Application Events
Answer: D
NEW QUESTION 139
What is the transaction limit on the recursive trigger depth?
- A. 0
- B. There is no limit
- C. 1
- D. 2
- E. 3
Answer: E
NEW QUESTION 140
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?
- A. Lightning Process Builder
- B. Dynamic Record Choice
- C. Visualforce and Apex
- D. Custom Lightning application
Answer: B
NEW QUESTION 141
A developer has generated Apex code from a WSDL for an external web service. The web service requires Basic authentication. What code should the developer use to authenticate?
- A. Stub . inputhth-Ieader3_x.put ('Authorization' , 'Basic QthZGprjpchVuIHIQchE'tZQ:'
- B. Stub.authentication.put ( 'Authorization' , 'Basic QthZGprjpchVuIHNchFtZQ=='
- C. Http. setAuthentication( 'Basic QthZGprjpchVuIHNchFtZQ:'
- D. Http. setHeader ( 'Authorization' , 'Basic QthZGprjpchVuIHNchFtZQ==');
Answer: A
NEW QUESTION 142
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 the Custom Visualforce page controller and call that method from an Apex trigger on Contact
- C. Implement the logic in a Validation Rule on the Contact and a Validation Rule on the Survey_Response_ _c object
- 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 143
What are the ways a developer can create test data of Contacts?
- A. Test.loadData(Contact.sObjectType, 'staticResource')
- B. myDataFactory.createContacts(10)
- C. Test.createTestData()
- D. Test.loadTestRecords(Contact.sObjectType, 'staticResource')
Answer: A,B
NEW QUESTION 144
A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record. How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?
- A. Create a Project Sharing Rule that shares to the Team Member Group
- B. Create a Controller that uses the Without Sharing keyword.
- C. Create a Criteria-Based Sharing Rule on the Project sObject.
- D. Create a Team Member Trigger that inserts Project_Share records.
Answer: D
NEW QUESTION 145
Which statement is true regarding the use of user input as part of a dynamic SOQL query?
- A. The string should be URL encoded by the input form to prevent errors.
- B. Quotes should be escaped to protect against SOQL injection.
- C. The String.format () method should be used to prevent injection.
- D. Free text input should not be allowed, to avoid SOQL injection.
Answer: B
NEW QUESTION 146
Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded?
Choose 3 answers
- A. Reference the static resource in a <script> tag.
- B. Import a method from the platformftesourceLoader,
- C. Append the static resource to the DOM.
- D. Call loadscript.
- E. Import the static resource.
Answer: B,D,E
NEW QUESTION 147
Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are still in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Number__c and ERP_Key__c.
Which two queries are optimized for large data volumes? Choose 2 answers
- A. SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false
- B. SELECT Id FROM Account WHERE Name != NULL
- C. SELECT Id FROM Account WHERE Id IN : aListVariable
- D. SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA'
Answer: C,D
NEW QUESTION 148
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 consde.log() messages in the JavaScript.
- B. Use Developer Console to view checkpoints.
- C. Use Developer Console to view the debug log.
- D. Use the browser's dev tools to debug the JavaScript.
- E. Enable Debug Mode for Lightning components for the user.
Answer: A,D,E
NEW QUESTION 149
A developer has a page with two extensions overriding the Standard controller for Case.
<apex:page standardController="Case" extension="CaseExtensionOne,CaseExtension Two" showHeader="false"> Each extension has a method called Save. The page has a command button as defined: <apex:commandButton value="Save" action="{!save}"/> What will happen when a user clicks the command button?
- A. Save from Case Standard Controller will be executed
- B. Save from CaseExtensionOne will be executed
- C. All of the three Save methods will be executed
- D. Save from CaseExtensionTwo will be executed
Answer: B
NEW QUESTION 150
A developer has written the following method: static void processList(List<sobject> input){ Which code block can be used to call the method?
- A. ProcessList([SELECT Id, Name FROM sObject WHERE Type = 'Account'
- B. For Account acc : [SELECT Id, Name FROM Account]
- C. ProcessList (acc)
- D. ProcessList ( [FIND 'Acme" ' RETURNING Account] )
Answer: A
NEW QUESTION 151
Consider the code above.
When a user dicks on the Link of a Contact's name, what happens'
- A. The outputPanel refreshes, showing the Contacts details.
- B. A new page opens, showing the Contact's details.
- C. Nothing happens: the commandLink is missing an action attribute.
- D. The page refreshes, showing the Contact's details.
Answer: A
NEW QUESTION 152
What tool in the Developer Console contains information on SOQL query Cardinality?
- A. Log Inspector
- B. Query Plan Tool
- C. Query Editor
- D. Checkpoints tab
- E. View State Tab
Answer: A
NEW QUESTION 153
......
PDII Exam Dumps - Try Best PDII Exam Questions: https://www.exams-boost.com/PDII-valid-materials.html
Get New PDII Certification – Valid Exam Dumps Questions: https://drive.google.com/open?id=1tzqED6O3dFXb2nHxqNnrXVfJhN_rMCU6