Get Instant Access of 100% Real Salesforce PDII Exam Questions with Verified Answers [Q186-Q201]

Share

Get Instant Access of 100% Real Salesforce PDII Exam Questions with Verified Answers

Exam Dumps for the Preparation of Latest PDII Exam Questions

NEW QUESTION 186
What is the transaction limit for the number of records using QueryLocator?

  • A. There is no limit
  • B. 50,000,000
  • C. 5,000,000
  • D. 50,000
  • E. 100,000

Answer: B

Explanation:
Explanation
Explanation/Reference:
Explanation:
"Scope" parameter in "executeBatch" can be set up to 2,000 records

 

NEW QUESTION 187
What is the transaction limit for the number of DML statements allowed?

  • A. 0
  • B. 100 (synchronous), 200 (async)
  • C. 2,000
  • D. 1
  • E. 200 (synchronous), 100 (async)

Answer: D

 

NEW QUESTION 188
Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.
What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? Choose 2 answers

  • A. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.
  • B. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.
  • C. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.
  • D. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.

Answer: C,D

 

NEW QUESTION 189
Exhibit:

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries
What is the correct way to fix this?

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries.
What is the correct way to fix this?

  • A. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
  • B. Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.
  • C. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
  • D. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.

Answer: B

 

NEW QUESTION 190
A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.
How can this requirement be met with minimal customizations?

  • A. Create a Workflow Rule on Account to update related child Contact records
  • B. Create an After Trigger on Account to update its related contact records on update
  • C. Create a scheduled batch job that updates all contact address fields based on the related account record
  • D. Create a Lightning Process on Account to update related child Contact records

Answer: D

 

NEW QUESTION 191
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?
A)

B)

C)

D)

  • A. Option C
  • B. Option B
  • C. Option D
  • D. Option A

Answer: C

 

NEW QUESTION 192
How many Territories can an instance of salesforce have?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. 4

Answer: B

 

NEW QUESTION 193
What is a valid request for the following REST method? (Choose two.)
@HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)

  • A. <b1>false</bl> </request>
    <request> <sl>"my first string"</sl> <il>123</il> <sZ>"my second string"</32>
  • B. <bl>false</bl> </request>
    sl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second
  • C. <request> <sl>my first string</sl> <11>123</il> <32>my second string</32>
  • D. string"
    il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false

Answer: A,D

 

NEW QUESTION 194
Which statement is considered a best practice for writing bulk safe Apex Triggers?

  • A. Add records to collections and perform DML operations against these collections.
  • B. Add LIMIT 50000 to every SOQL statement
  • C. Instead of DML statements, use the Database methods with allOrNone set to False.
  • D. Perform all DML operations from within a Future Method.

Answer: D

 

NEW QUESTION 195
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving m Account.
How can a developer fix this error?

  • A. Modify the trigger to use the isMultiThread=true annotation.
  • B. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then; modify the trigger to only fire when modify the trigger to only fire when the Boolean is FALSE.
  • C. Convert trigger to use the @future annotation, and chain any subsequent trigger invocations to the Account object.
  • D. Split the trigger logic into two separate triggers.

Answer: B

 

NEW QUESTION 196
A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric.
What is a recommended way for the error message be displayed to the end user?

  • A. Use the apex:message tag to display errors
  • B. Use the ui:outputText tag to display errors
  • C. Use the aura:component tag to display errors
  • D. Use the ui:inputDefaultError tag to display errors

Answer: D

 

NEW QUESTION 197
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
A)

B)

C)

D)

  • A. Option C
  • B. Option D
  • C. Option B
  • D. Option A

Answer: C

 

NEW QUESTION 198
A developer creates an application event that has triggered an infinite loop. What may have caused this problem?

  • A. The event has multiple handlers registered in the project.
  • B. The event Is fired from a custom renderer.
  • C. An event is fired ontouchend" and is unhandled.
  • D. The event handler calls a trigger.

Answer: B

 

NEW QUESTION 199
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.
What is the optimal way to implement these requirements?

  • A. Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
  • B. Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
  • C. Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
  • D. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.

Answer: A

Explanation:
Explanation/Reference:

 

NEW QUESTION 200
Choose the correct definition for <apex:pageMessage>

  • A. Standard Salesforce formatting, throws a specific message on a page
  • B. A single message, without formatting, that can be associated with a specific component on the page
  • C. No formatting; displays all errors on a page
  • D. Standard Salesforce formatting, shows all errors that occur on page. Can add more messages through the
    "ApexPages.addMessage" function

Answer: A

 

NEW QUESTION 201
......


Certification Path

Salesforce Platform Developer I, Superbadge Apex Specialist, Superbadge Data Integration Specialist, Superbadge Aura Components Specialist and Superbadge Advance Apex Specialist Certification can act as a prerequisite for this exam.


Salesforce PDII Exam Syllabus Topics:

TopicDetails
Topic 1
  • Identify how an Apex method can be made available for use by Lightning Web Components
  • Determine if a declarative or custom-coded solution should be implemented
Topic 2
  • Compare and contrast the usage of Visualforce and Apex controllers
  • Describe the use cases for and benefits of external IDs
Topic 3
  • Identify the appropriate dynamic Apex feature to use in the solution
  • Given a scenario, propose and justify the optimal programmatic or declarative solution
Topic 4
  • Analyze a set of requirements and determine the benefits of using asynchronous or batch Apex coding
  • Demonstrate knowledge of the localization features and capabilities and how they affect coding
Topic 5
  • Describe the purpose and benefit of static resources in both Visualforce and Lightning Components
  • Iand justify where Apex managed sharing should be used
Topic 6
  • Given a set of requirements, choose the appropriate integration technique
  • Given a scenario, formulate the deployment process, supporting tools, and mechanisms

 

Download Latest & Valid Questions For Salesforce PDII exam: https://www.latestcram.com/PDII-exam-cram-questions.html

Ensure Success With Updated Verified PDII Exam Dumps: https://drive.google.com/open?id=1CBADXcOjjoThCYrXfNwjgE2iV4wy77Pi