Pass PDII Exam in First Attempt Guaranteed 2021 Dumps!
PDII Dumps Full Questions - Exam Study Guide
NEW QUESTION 146
What is the transaction limit on the number of callouts?
- A. 0
- B. There is no limit
- C. 1
- D. 2
- E. 3
Answer: C
NEW QUESTION 147
A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-time when an Account is Inserted without error.
How should a developer achieve this?
- A. Use a Process Builder that calls an @InvocableMethod method.
- B. Use a Workflow rule that calls an @InvocableMethod method.
- C. Use a before insert trigger and a Queueable class.
- D. Use a before insert trigger and an @future method.
Answer: D
NEW QUESTION 148
Which statement is true regarding both Flow and Lightning Process? (Choose two.)
- A. Are both server-side considerations in the Order of Execution
- B. Are able to be embedded directly into Visualforce pages
- C. Can use Apex that implements the Process.Plugin interface
- D. Can use Apex methods with the @InvocableMethod annotation
Answer: C,D
NEW QUESTION 149
How can Apex be used with Visual Workflow?
- A. To set the version of a Flow being run.
- B. To start a Flow automatically.
- C. To add custom styling to a Flow.
- D. To control access to a Flow
Answer: B
NEW QUESTION 150
A company has a custom object Sales_Help_Request__c that has a Lookup relationship to Opportunity. The Sales_Help_Request__c has a number field, Number_of_Hours__c, that represents the amount of time spent on the Sales_Help_Request__c.
A developer is tasked with creating a field, Total_Hours__c, on Opportunity that should be the sum of all of the Number_of_Hours__c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?
- A. A trigger on the Opportunity object
- B. A trigger on Sales_Help_Request__c
- C. A workflow rule on the Sales_Help_Request__c object
- D. A roll-up summary field on the Opportunity object
Answer: B
NEW QUESTION 151
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.
When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.
What is the optimal way to implement this?
- A. Add an <apex: actionFunction> within the <apex: select List >.
- B. Add an <apex: actionSupport> within the <apex:selectList>.
- C. Add an <apex: actionSupport> within the <apex: selectOptions>.
- D. Add an <apex: actionFunction> within the <apex : selectOptions>.
Answer: A
NEW QUESTION 152
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?
- A. Custom Controller
- B. Controller Extensions
- C. Standard Controller
- D. Standard List/Set Controller
Answer: D
NEW QUESTION 153
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 Developer Console to view checkpoints.
- B. Enable Debug Mode for Lightning components for the user.
- C. Use the browser's dev tools to debug the JavaScript.
- D. Use consde.log() messages in the JavaScript.
- E. Use Developer Console to view the debug log.
Answer: B,C,D
NEW QUESTION 154
The "Webservice" keyword...
- A. All of the above
- B. Used for any member variables included
- C. Method must be static, and class must be global
- D. Can be used on all classes
Answer: A
NEW QUESTION 155
If you have a method "doStuff(List<sObject> records)", which is a valid call?
- A. doStuff(sObject obj);
- B. doStuff(Account acct);
- C. doStuff(List<Account> records);
- D. doStuff([Select Id From Account]);
Answer: D
NEW QUESTION 156
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class.
How can the developer generate the code coverage?
- A. Add @testVisible to the method in the class the developer is testing.
- B. Verify the user has permissions passing a user into System.runAs().
- C. Use system.assert() in testSetup to verify the values are being returned.
- D. Call the Apex class method from a testMethod instead of the testSetup method.
Answer: B
NEW QUESTION 157
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. Add Test.startTest() before and Test.stopTest() after AuditUtil.incrementViewed.
- D. Change the initialization to acct.Number_Of_Times_Viewed__c = 1.
Answer: D
NEW QUESTION 158
In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.
What is the most effective approach to ensure values displayed respect the users locale settings?
- A. Use the FOR VIEW clause in the SOQL Query.
- B. Use the FORMAT() function in the SOQL query.
- C. Use REGEX expressions to format the values retrieved via SOQL.
- D. Use a wrapper class to format the values retrieved via SOQL.
Answer: B
NEW QUESTION 159
A developer wrote an Apex class to make several callouts to an external system.
If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?
- A. Named Credentials
- B. Connected Apps
- C. Session Id
- D. Remote Site Settings
Answer: A
Explanation:
Explanation
Explanation/Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/ apex_callouts_named_credentials.htm
NEW QUESTION 160
Refer to the code snippet below:
A custom object called Credit_Memo_c exist in a Salesforce environment. As part of a new feature development that retrieves and manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex transaction.
In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race condition within a transaction?
A)
B)
C)
D)
- A. Option D
- B. Option C
- C. Option A
- D. Option B
Answer: B
NEW QUESTION 161
What is the transaction limit on the max timeout for all callouts?
- A. There is no limit
- B. 60 seconds
- C. 120 seconds (synchronous); 200 seconds (async)
- D. 120 seconds
- E. 60 seconds (synchronous); 200 seconds (async)
Answer: D
NEW QUESTION 162
A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code.
What is the optimal way to store and retrieve the list?
- A. Store the information in Custom Metadata and access it with the getAll() method
- B. Store the information in Custom Metadata and query it with SOQL
- C. Store the information in a List Custom Setting and access it with the getAll() method
- D. Store the information in a List Custom Setting and query it with SOQL
Answer: C
Explanation:
Explanation/Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/ apex_customsettings.htm
NEW QUESTION 163
<lightning: layout multipleRows="true"> <lightning: layoutItem size="12">{!v.account.Name} </flighting: layoutitem> <lightning:layoutitem 3ize="12">{!v. account .AccountNumber} </lighting: layoutitem> <lightning: layoutitem size="12">{!v.account. Industry} </lighting: 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?
- A.

- B.

- C.

- D.

Answer: D
NEW QUESTION 164
If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?
- A. <apex:error>
- B. <apex:outputText>
- C. <apex:pageMessages>
- D. <apex:message>
Answer: C
NEW QUESTION 165
A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress," or Fulfilled and a lookup field, Contact_c, to Contact.
Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?
- A. SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled')
- B. SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled'
- C. SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c
= fulfilled') - D. SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled')
Answer: C
NEW QUESTION 166
......
Salesforce Developers Free Certification Exam Material from Fast2test with 325 Questions: https://www.fast2test.com/PDII-premium-file.html
Use Real PDII - 100% Cover Real Exam Questions: https://drive.google.com/open?id=1dyoQsdeUSpMQQQk2pedO4cT29ozGTRKf