[Aug-2021] Dumps Brief Outline Of The PDI Exam - Exams4sures [Q94-Q115]

Share

[Aug-2021] Dumps Brief Outline Of The PDI Exam - Exams4sures

PDI Training & Certification Get Latest Salesforce PDI 

NEW QUESTION 94
hat are three techniques that a developer can use to invoke an anonymous block of code? Choose 3 answers

  • A. Create and execute a test method that does not specify a runas() call
  • B. Create a visualforce page that uses a controller class that is declared without sharing
  • C. Type code into the developer console and execute it directly
  • D. Type code into the execute anonymous tab in the force.com IDE and click execute
  • E. Use the SOAP API to make a call to execute anonymous code

Answer: C,D,E

 

NEW QUESTION 95
Which two statements are true about Getter and Setter methods as they relate to Visualforce?

  • A. Getter methods pass values from a controller to a page.
  • B. A corresponding Setter method is required for each Getter method.
  • C. There is no guarantee for the order in which Getter methods are called.
  • D. Setter methods always have to be declared global.

Answer: A,B

 

NEW QUESTION 96
A developer needs to apply the look and feel of lightning experience to a number of applications built using a custom third-party javascript framework and rendered in visualforce pages which option achieves this?

  • A. Configure the user interface options in the setup menu to enable legacy mode for visualforce
  • B. Replace the third-party javascript library with native visualforce tags
  • C. Set the attribute enablelightning to "true" in the definition
  • D. Incorporate salesforce lightning design system css style sheets into the javascript applications

Answer: D

 

NEW QUESTION 97
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

  • A. Use variables within Apex classes to store large amounts of data.
  • B. Use collections to store all fields from a related object and not just minimally required fields.
  • C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
  • D. Use methods from the "Limits" class to monitor governor limits.

Answer: C,D

 

NEW QUESTION 98
If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers

  • A. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction,
  • B. The Apex governor limits might be higher due to the asynchronous nature of the transaction.
  • C. The apex governor limits are reset for each iteration of the execute() mrthod.
  • D. The Apex governor limits are relaxed while calling the costructor of the Apex class.

Answer: B,C

 

NEW QUESTION 99
Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }

  • A. Use a map <id,contact> for allaccounts
  • B. Create an apex helper class for the SOQL
  • C. Put the account loop inside the contact loop
  • D. Add a group by clause to the contact SOQL

Answer: A

 

NEW QUESTION 100
A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

  • A. Set the second insert method parameter to TRUE
  • B. Collect the insert method return value a Saveresult record
  • C. Add a System.debug() statement before the insert method
  • D. Add a try/catch around the insert method

Answer: B

 

NEW QUESTION 101
Which three statements are accurate about debug logs? Choose 3 answers

  • A. Amount of information logged in the debug log can be controlled programmatically.
  • B. To View Debug Logs, "Manager Users" or "Modify All Data" permission is needed.
  • C. Debug Log levels are cumulative, where FINE lop level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
  • D. Amount of information logged in the debug log can be controlled by the log levels.
  • E. To View Debug Logs, "Manager Users" or "View All Data" permission is needed.

Answer: A,D

 

NEW QUESTION 102
How can a developer use a Set<Id> to limit the number of records returned by a SOQL query?

  • A. Reference the Set in the LIMIT clause of the query
  • B. Pass the query results as an argument in a reference to the Set.containsAll() method.
  • C. Pass the Set as an argument in a reference to the Database.query() method
  • D. Reference the Set in the WHERE clause of the query

Answer: D

 

NEW QUESTION 103
Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?

  • A. Create a Schedulable Apex class.
  • B. Schedule a report.
  • C. Use the Data Loader command line.
  • D. Define a Data Export scheduled job.

Answer: D

 

NEW QUESTION 104
What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers

  • A. The Test menu in the Developer Console.
  • B. The Run Tests page in Salesforce Setup.
  • C. The REST API and ApexTestRun method
  • D. The Apex Test Execution page in Salesforce Setup.

Answer: A,D

 

NEW QUESTION 105
From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers

  • A. The Apex Test Execution page
  • B. The Test Tab of the Developer Console
  • C. The Test Suite Run panel the Developer Console
  • D. The Apex classes setup page

Answer: B,D

 

NEW QUESTION 106
Where can the custom roll-up summary fields be created using Standard Object relationships (Choose 3)

  • A. On Account using Opportunity records.
  • B. On Campaign using Campaign Member records.
  • C. On Opportunity using Opportunity Product records.
  • D. On Quote using Order records.
  • E. On Account using Case records.

Answer: A,B,C

 

NEW QUESTION 107
Which statement about change set deployments is accurate? (Choose 3)

  • A. They require a deployment connection.
  • B. They can be used only between related organizations.
  • C. They use an all or none deployment model.
  • D. They can be used to deploy custom settings data.
  • E. They ca be used to transfer Contact records.

Answer: A,B,C

 

NEW QUESTION 108
A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?

  • A. Set the second insert method parameter to TRUE
  • B. Collect the insert method return value a Saveresult record
  • C. Add a System.debug() statement before the insert method
  • D. Add a try/catch around the insert method

Answer: D

 

NEW QUESTION 109
Which code in a Visualforce page and/or controller might present a security vulnerability?

  • A. <apex:outputField value="{!ctrl.userInput}" />
  • B. <apex:outputField escape="false" value="{!ctrl.userInput}" />
  • C. <apex:outputText value="{!$CurrentPage.parameters.userInput}" />
  • D. <apex:outputText escape="false" value=" {!$CurrentPage.parameters.userInput}" />

Answer: D

 

NEW QUESTION 110
How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?

  • A. By calling the profile settings of the current user.
  • B. By calling the isShared() method for the record.
  • C. By querying the role hierarchy.
  • D. By querying CustomObject__Share.

Answer: D

 

NEW QUESTION 111
What is the value of x after the code segment executes?String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x
'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }

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

Answer: D

 

NEW QUESTION 112
What is the advantage of Salesforce Lightning?

  • A. Option 3
  • B. Pre-defined components to give Standard Look and Feel
  • C. Uses service side for better handling
  • D. Option 4

Answer: B

 

NEW QUESTION 113
A developer must create an Apex class, contactcontroller, that a Lightning component can use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access. Which two will restrict the records correctly?

  • A. public with sharing class ContactController
  • B. public without sharing class ContactController
  • C. public class ContactController
  • D. public inherited sharing class ContactController

Answer: A,D

 

NEW QUESTION 114
Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?

  • A. <apex:page lightningStyleSheets="true">
  • B. <apex:page>
  • C. apex:actionStatus
  • D. <apex:commandButton styleClass="slds-vf-button_brand" value="Refresh the Page">

Answer: A

 

NEW QUESTION 115
......

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

Salesforce PDI PDI Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=1gBNEI5nCktYcjTqJ_jOm7NeuwXZkofOA