[Q155-Q174] Use Real PDII - 100% Cover Real Exam Questions [Aug-2021]

Share

Use Real PDII - 100% Cover Real Exam Questions [Aug-2021] 

Dumps Brief Outline Of The PDII Exam - TrainingDump

NEW QUESTION 155
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

  • A. Custom Labels
  • B. convertCurrency()
  • C. getLocalCurrency()
  • D. Translation Workbenc
  • E. Global Labels

Answer: A,B,D

Explanation:
Explanation

 

NEW QUESTION 156
Which statement is true regarding both Flow and Lightning Process?

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

Answer: B,D

 

NEW QUESTION 157
A developer wrote a Visualforce page for Sales Reps to add products to an order. The page takes a URL query parameter, productFamily, which filters the product results. The test method for the filter behavior has an assertion failing due to an incorrect number of results.
Why could the test be failing? (Choose two.)

  • A. The test is not run by a System Administrator
  • B. The test does not create product data
  • C. The test does not call Test.startTest()
  • D. The test does not set the current page reference

Answer: B,D

 

NEW QUESTION 158
A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.
<apex:selectList value="{!selectedIndustry}">
<apex:selectOptions values="{!industries}"/>
</apex:selectList>
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:selectOptions>.
  • B. Add an <apex:actionFunction>within the <apex:selectList>.
  • C. Add an <apex:actionSupport>within the <apex:selectList>.
  • D. Add an <apex:actionSupport>within the <apex:selectOptions>.

Answer: B

 

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

  • A. Add LIMIT 50000 to every SOQL statement
  • B. Add records to collections and perform DML operations against these collections.
  • 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 160
A company requires all internal users to submit a Case for adding a new Account in Salesforce. The case record captures all the data required to create an Account. The case approval process is a manual process.
When a case is approved, an Account record should automatically be created based on the case details. What is the recommended solution?

  • A. Develop an After Update trigger on Case to create an Account record based on Case Status.
  • B. Develop a Lightning Process to create an Account Record when the Case status becomes Approved.
  • C. Develop a Before Update trigger on Case to create an Account record based on Case Status.
  • D. Configure a custom button on the Case page to update the Case Status and insert a new Account record.

Answer: B

 

NEW QUESTION 161
A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day.
How can this be achieved?

  • A. Use aggregate functions to query for records older than 7 years, and then delete the AggregateResult objects.
  • B. Schedule a batch Apex process to run every day that Queries and deletes records older than 7 years.
  • C. Perform a SOSL statement to find records older than 7 years, and then delete the entire result set.
  • D. Schedule an ©future process to Query records older than 7 years, and then recursively invoke itself in 1,000 record batches to delete them.

Answer: B

 

NEW QUESTION 162

A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?

  • A. Change the default for showContacrlnfo to
  • B. Add a change event handler for showContactinfo
  • C. Change the type of contactlnfo to "Map".
  • D. Move the contents of <c: concacclnfo into the component.

Answer: A

 

NEW QUESTION 163
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: A

 

NEW QUESTION 164
Which of the following about Dynamic Apex is incorrect?

  • A. You can retrieve the sObject type from an Id by calling .getSObjectTypeQ
  • B. Schema.getGlobalDescribeQ gives you a map of all sObject
  • C. In dynamic SOQL, you can use bind variables and bind variable fields
  • D. getDescribe() can get you a variety of info on a particular object/field

Answer: C

Explanation:
Explanation
Explanation/Reference:
Explanation:
While you can use simple bind variables in dynamic SOQL, you cann|ot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection

 

NEW QUESTION 165
Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer. The pricing logic already exists in a third-party system. Instead of recreating this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce. What is the optimal solution?

  • A. A Visualforce page that can make a real-time Apex callout to display and save the pricing back in Salesforce
  • B. An ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce
  • C. An Apex trigger that upon saving the Order will make a real-time Apex callout, saving the pricing back in Salesforce
  • D. A Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce

Answer: C

 

NEW QUESTION 166
What is the transaction limit for the number of records per DML statement?

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

Answer: E

 

NEW QUESTION 167
A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realtime callouts from the billing system using the SOAP API. Unfortunately, the developer is getting a lot of errors when inserting the invoice line data because the invoice header record doesn't exist yet.
What will help ensure ne transactional Integrity of the integration?

  • A. Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
  • B. Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
  • C. Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
  • D. Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.

Answer: D

 

NEW QUESTION 168
A developer has been asked to prevent Accounts from being deleted if there is a related Contact that has the Do_Not_Delete_c checkbox checked. How can the developer accomplish this?

  • A. Create a Before Delete Trigger on the Account object.
  • B. Create a Before Delete Trigger on the Contact object
  • C. Create a Validation Rule on the Contact object.
  • D. Create a Validation Rule on the Account object.

Answer: A

 

NEW QUESTION 169
A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.
Which two settings should the developer configure within the xml resource file?
Choose 2 answers

  • A. Specify the target to be lightning__RecordPage.
  • B. Specify the target to be lightning__AppPage.
  • C. Set the IsExposed attribute to True.
  • D. Set the IsVisible attribute to True.

Answer: A,C

 

NEW QUESTION 170
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 171
A developer needs to design a custom object that will be integrated into a back-end system. What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? Choose 2 answers

  • A. Configure a custom field as unique.
  • B. Configure a custom field as external ID.
  • C. Configure a custom field as Salesforce ID.
  • D. Configure a custom field as indexed.

Answer: A,B

 

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

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

Answer: B

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

 

NEW QUESTION 173
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 174
......

Certification Training for PDII Exam Dumps Test Engine: https://www.trainingdump.com/Salesforce/PDII-practice-exam-dumps.html

PDII Training & Certification Get Latest Salesforce Developers : https://drive.google.com/open?id=1aK-aPeRX8t1EOkFACpBrp3SrqNUJPvyG

0
0
0
0