[Q150-Q168] Use the best ways of preparing for PDII Exam Dumps with TestkingPDF Salesforce PDII PDF Dumps [2021]

Share

Use the best ways of preparing for PDII Exam Dumps with TestkingPDF Salesforce PDII dump PDF [2021]

Salesforce PDII exam candidates will surely pass the Exam if they consider the PDII dumps learning material presented by TestkingPDF.

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

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

Answer: A

Explanation:
Explanation
Explanation/Reference:
Explanation:
Includes Approval functions, rollbacks/savepoints, and System.runAs

 

NEW QUESTION 151
A user updates a number field on a record from the value of 1 to 2, and a workflow rule executes, incrementing the value to 3. Which statement is true regarding writing triggers in this case? Choose 2 answers

  • A. Trigger.old will contain the user entered value of 2.
  • B. Trigger.old will contain the initial value of 1.
  • C. Triggers will execute before and after workflow rules.
  • D. Workflow rules will execute before triggers.

Answer: B,C

 

NEW QUESTION 152
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.
Users report that they receive a ''Maximum view state size limit'' error message under certain conditions.
According to Visualforce best practice, which three actions should the developer take to reduce the view state?
Choose 3 answers

  • A. Refine any SQQL queries to return only data relevant to the page.
  • B. Use the final keyword In the controller for variables that will not change.
  • C. Use filters and pagination to reduce the amount of data.
  • D. Use the private keyword in the controller for variables
  • E. Use the transient keyword in the Apex controller for variables that do not maintain state.

Answer: A,C,E

 

NEW QUESTION 153
Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?

  • A. The callout needs to be invoked from a Workflow Rule.
  • B. The Target system uses a REST API.
  • C. The Target system uses a SOAP API.
  • D. The callout needs to be asynchronous.

Answer: B

 

NEW QUESTION 154
A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.
Users report that they receive a ''Maximum view state size limit'' error message under certain conditions.
According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers

  • A. Use the final keyword In the controller for variables that will not change.
  • B. Use filters and pagination to reduce the amount of data.
  • C. Use the private keyword in the controller for variables
  • D. Refine any SQQL queries to return only data relevant Co the page.
  • E. Use the transient keyword in the Apex controller for variables that do not maintain state.

Answer: B,D,E

 

NEW QUESTION 155
Which statement is true regarding both Flow and Lightning Process? (Choose two.)

  • A. Can use Apex methods with the @lnvocableMethod annotation
  • B. Are both server-side considerations in the Order of Execution
  • C. Are able to be embedded directly into Visualforce pages
  • D. Can use Apex that implements the Process.Plugin interface

Answer: A,D

 

NEW QUESTION 156
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms?
Choose 2 answers

  • A. Internal Apps can use Process Builder.
  • B. External Apps can use the standard Streaming API.
  • C. internal Apps can use Outbound Messages
  • D. External Apps require a custom Apex web service.

Answer: A,C

 

NEW QUESTION 157
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.
What might be causing the failed assertion?

  • A. The test class has not defined an Account owner when inserting the test data
  • B. The test class is not using System.runAs() to run tests as a Salesforce administrator
  • C. The test class has not re-queried the Account record after updating the Opportunity
  • D. The test class has not implemented seeAllData=true in the test method

Answer: C

Explanation:
Explanation/Reference:

 

NEW QUESTION 158
A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items.
Both custom objects have a CurrencylsoCode Text field that contains the currency code they should use. If a Catalog's CurrencylsoCode changes, all of its Catalog Items' CurrencylsoCodes should be changed as well.
What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog's CurrencylsoCode changes^5

  • A. A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencylsoCode is different
  • B. An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencylsoCode is different
  • C. A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different
  • D. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencylsoCode is different

Answer: C

 

NEW QUESTION 159
A developer is writing unit tests for the following method:
public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank (celsiusTemp) && celsiusTemp.isNumeric()){ return Decimal.valueof(celsiusTemp) <
0; } return null; }
Which assertion would be used in a negative test case?

  • A. System.assertEquals (true, isFreezing('0')
  • B. System.assertEquals(null, isFreezing('asdf'))
  • C. System.assertEquals(true, isFreezing(null))
  • D. System.assertEquals(true, isFreezing('IOO'))

Answer: B

 

NEW QUESTION 160
In an Apex custom controller, how should a developer ensure that the current user has the relevant create and update' permissions for a particular object type?

  • A. Call methods on the appropriate DescribeSObjectResult instance.
  • B. Query the user's profile record and check what permissions the user has.
  • C. Do nothing because the platform enforces CRUD permissions based on profiles.
  • D. Add the with sharing keywords to the controller class definition.

Answer: A

 

NEW QUESTION 161
What is a benefit of JavaScript remoting over Visualforce Remote Objects?

  • A. Allows for specified re-render targets
  • B. Does not require any Apex code
  • C. Does not require any JavaScript code
  • D. Supports complex server-side application logic

Answer: D

 

NEW QUESTION 162
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page.
Which design resource configuration should be used?
<design:component label="Account FS Component">

  • A. <aura:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>FieldSet</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • B. <design:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>Account</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • C. <design:attribute name="fieldSetName" Label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>FieldSet</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • D. <aura:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>Account</sfdc:object>
    </sfdc:objects>
    </design:component>

Answer: B

 

NEW QUESTION 163
A company requires an external system to be notified whenever an account is updated.
trigger AccountTrigger on Account (after update){ for (Account
updatedAccount:Trigger.new){ AccountTriggerHelper.notinyxternalSystem
(updatedAccount.id); } } public class AccountTriggerHelperfuture(callout=true)
{ public static void notinyxternalSystem(Id accountId){ Account acc = [Select id, name from Account where accountId = :accountId]; http objectHttp h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('http://example.org/ restService'); req.setMethod('POST'); req.setBody(JSON.serialize(acc)); HttpResponse res = h.send(req); } } What LimitException could the following code trigger?

  • A. System.LimitException: Too many callouts
  • B. System.LimitException: Too many future calls
  • C. System.LimitException: Too many SOQL queries
  • D. System.CalloutException: Callout from triggers are currently not supported

Answer: B

Explanation:
Explanation/Reference:

 

NEW QUESTION 164
What can the Apex Continuation class be used for?

  • A. Chaining multiple Queueable Apex jobs to be processed one after another.
  • B. Progressing records to the next stage of an approval process in Apex.
  • C. Maintaining an Apex transaction across multiple DML statements.
  • D. Making asynchronous callouts to SOAP or REST Web Services from Visualforce.

Answer: D

 

NEW QUESTION 165
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?

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

Answer: B

 

NEW QUESTION 166
What field type can be used in the WHERE clause to improve SOQL query performance? Choose 3 answers

  • A. External Id fields
  • B. Email fields
  • C. Lookup fields
  • D. Name fields
  • E. Telephone fields

Answer: A,C,D

 

NEW QUESTION 167
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)

  • A. <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}"
    target="blank">(LIE{!case.Name}</apex:outputLink>
  • B. <apex:outputLink value="!viewCase(case.Id)}" target="_blank">{lease.Name} </apex:outputLink>
  • C. <apex:outputLink value="/{!case.Id}" target="blank"> {lease.Name}</ apex:outputLink>
  • D. <apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank"> {lease.Name}
    </apex:outputLink>

Answer: A,C

 

NEW QUESTION 168
......

Full PDII Practice Test and 325 unique questions with explanations waiting just for you, get it now: https://drive.google.com/open?id=1a6z87MBWMeVHdF8EgkVD-tEIxlTU-BFq

Accurate & Verified Answers As Seen in the Real Exam here: https://www.testkingpdf.com/PDII-testking-pdf-torrent.html