
2021 Valid PDII test answers & Salesforce Exam PDF
Free Salesforce PDII Exam Questions & Answer from Training Expert TorrentVCE
Difficulty in writing PDII Exam
This is exam is very difficult for those candidates who don’t practice during preparation and candidates need a lab for practicing. Then practical exposure is much required to understand the contents of the exam. So, if anyone is associated with some kinds of an organization where he has opportunities to practice but if you can’t afford the lab and don’t have time to practice. So, TorrentVCE is the solution to this problem. We provide the best Salesforce PDII dumps and practice test for your preparation. Salesforce PDII dumps to ensure your success in the Salesforce PDII Certification Exam at first attempt. Our Salesforce PDII dumps are updated on regular basis. TorrentVCE providing very good options for the candidates in terms of practising questions online using our test engine, which would be providing real time feel to the participants. we are also providing some sample questions paper which can be download in PDF format by the participants to get fair understanding about types of questions being asked in the exam. Candidates must able to clear their exam if they are practising our dumps which always remain updated by our industry experts.
NEW QUESTION 168
The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic.
The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.
How should a developer implement this?
- A. Override the edit button for both Lightning and Classic with a Lightning Component
- B. Override the edit button for both Lightning and Classic with a new Visualforce page
- C. Override the edit button for Lightning with a Lightning Page, and Classic with a Visualforce page that contains the Lightning Component
- D. Override the edit button for Lightning with a Lightning Component, and Classic with a Visualforce page that contains the Lightning Component
Answer: C
NEW QUESTION 169
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. over 10 callouts will be made in a single transaction.
- B. The callouts will be made in an Apex Trigger.
- C. The callouts will be made in an Apex Test class.
- D. The callout could take longer than 60 seconds to complete.
Answer: B
NEW QUESTION 170
The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updating, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem.
What should the developer specify in the debug log to see the values of the workflow rule conditions and debug the problem?
- A. ERROR level for the Workflow log category
- B. INFO level for the Database log category
- C. INFO level for the Workflow log category
- D. ERROR level for the Database log category
Answer: B
NEW QUESTION 171
Which statement is true regarding both Flow and Lightning Process? (Choose two.)
- A. Can use Apex that implements the Process.Plugin interface
- B. Can use Apex methods with the @InvocableMethod annotation
- C. Are both server-side considerations in the Order of Execution
- D. Are able to be embedded directly into Visualforce pages
Answer: A,B
NEW QUESTION 172
An integration user makes a successful login() call via the SOAP API.
What can be used in the SOAP header to provide server authorization for subsequent API requests?
- A. Session ID
- B. Security token
- C. OAuth access token
- D. Named Credentials
Answer: A
NEW QUESTION 173
Choose the correct definition for <apex:message>
- A. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the
"ApexPages.addMessage" function - B. Standard Salesforce formatting, throws a specific message on a page
- C. No formatting; displays all errors on a page
- D. A single message, without formatting, that can be associated with a specific component on the page
Answer: D
NEW QUESTION 174
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)
- A. <apex: actionFunction action=" { ! Save} " name=!,Save" rerender=l,thePageBlock1'/>
- B. <apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
- C. <apex: actionSupport action="{ ISave} " event=llonchange1' rerender="thePageBlock"/>
- D. <apex : commandFunction action=?l { ! Save} " value="Save" rendered^"thePageBlock"/>
Answer: A,C
NEW QUESTION 175
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3.
What is the outcome after executing the following code snippet in the org?
List<Contact> contactsToBeInserted=new List<Contact>(); Contact contactInstance= new Contact(LastName='Smith', Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactInstance); contactInstance= new Contact (LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add (contactInstance); Database.insert(contactsToBeInserted,true);
- A. Both inserts succeed and the contact record that has the Zone value of 'PITT' is truncated
- B. Both inserts succeed and the contact record that has the Zone value of 'PI'I'I' is set to NULL
- C. An unhandled DML exception is thrown and no contact records are inserted
- D. A partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted
Answer: C
NEW QUESTION 176
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?
- A. Implement pagination and reduce records per page.
- B. Use JavaScript Remoting instead of controller actions.
- C. Segregate calculation functionality from input functionality.
- D. Create formula fields to compute pivoted forecast calculations.
- E. Specify the list of sales forecasts as transient.
Answer: A,B,D
NEW QUESTION 177
What is a best practice when unit testing a controller? (Choose two.)
- A. Verify correct references by using getURL()
- B. Access test data by using seeAIIData=true
- C. Set query parameters by using getParameters().put
- D. Simulate user interaction by leveraging Test.setMock()
Answer: A,C
NEW QUESTION 178
trigger AssignOwnerByRegion on Account ( before insert, before update )
{
List<Account> accountList = new List<Account>();
for( Account anAccount : trigger.new )
{
Region__c theRegion = [
SELECT Id, Name, Region Manager__c
FROM Region__c
WHERE Name = :anAccount.Region_Name__c
];
anAccount.OwnerId = theRegion.Region_Manager__c;
accountList.add( anAccount );
}
update accountList;
}
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 two.)
- A. Move the Region__c query to outside the loop.
- B. Remove the last line updating accountList as it is not needed.
- C. Use a Map accountMap instead of List accountList.
- D. Use a Map to cache the results of the Region__c query by Id.
Answer: C,D
NEW QUESTION 179
What is a consideration when testing batch Apex? (Choose two.)
- A. Test methods must use the @isTest (SeeAIIData=true) annotation
- B. Test methods must execute the batch with a scope size of less than 200 records
- C. Test methods must run the batch between TeststartTestQ and Test.stopTestQ
- D. Test methods must call the batch execute() method once
Answer: B,C
NEW QUESTION 180
Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5
@AuraEnabled Line 6 public List<String> getStringArray() { Line 7 String*+ arrayItems = new String*+,'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?
- A. Line 6: method must be static
- B. Line 8: method must first serialize the list to JSON before returning
- C. Lines 1 and 6: class and method must be global
- D. Line 1: class must be global
Answer: A
NEW QUESTION 181
Given the following code, what value Will be output in the logs by line #8? 1 Contact con = new Contact( LastName ='Smith', Department = 'Admin') 2 insert con; 3 Contact insertedContact=[select Name from Contact where id=zcon.Id]; 4 Savepoint sp_admin = Database.setSavepoint(); 5 con.Department = 'HR'; D} 6 update con; 7 Database.rollback(sp_admin); 8 console.log(Limits.getDmlStatements());
- A. 0
- B. 1
- C. 2
- D. 3
Answer: C
NEW QUESTION 182
The "Webservice" keyword __________.
- A. All of the above
- B. Method must be static, and class must be global
- C. Can be used on all classes
- D. Used for any member variables included
Answer: A
NEW QUESTION 183
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer. What modification is necessary on the Salesforce side? Choose 2 answers
- A. Update the code to use HttpRequest.setHeader() to set an Authorization header.
- B. Configure two-factor authentication with the provided certificate.
- C. Update the code to use HttpRequest .setClientCertificateName
- D. Create an entry for the certificate in Certificate and Key Management.
Answer: C,D
NEW QUESTION 184
Which of the following about Dynamic Apex is incorrect?
- A. You can retrieve the sObject type from an Id by calling .getSObjectType()
- B. getDescribe() can get you a variety of info on a particular object/field
- C. In dynamic SOQL, you can use bind variables and bind variable fields
- D. Schema.getGlobalDescribe() gives you a map of all sObject
Answer: C
Explanation:
While you can use simple bind variables in dynamic SOQL, you cannot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection
NEW QUESTION 185
The maximum view state size of a visualforce page is
- A. 256kb
- B. 1mb
- C. 135kb
- D. 165kb
- E. 65kb
Answer: C
NEW QUESTION 186
......
PDII Exam topics
Candidates must know the exam topics before they start of preparation. Because it will really help them in hitting the core. Our Salesforce PDII dumps will include the following topics:
- Data Modeling and Management 7%
- Performance 7%
- Logic and Process Automation 33%
- Integration 11%
- Debug and Deployment Tools 5%
- Testing 12%
- Salesforce Fundamentals 5%
- User Interface 20%
Top Salesforce PDII Courses Online: https://www.torrentvce.com/PDII-valid-vce-collection.html
PDII Practice Dumps - Verified By TorrentVCE Updated 325 Questions: https://drive.google.com/open?id=1xLrmFM1beJYeJTL4Zx1Vzy3JXTs-P6Ms