aiotestking uk

PDII Exam Questions - Online Test


PDII Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Precise of PDII free download materials and testing bible for Salesforce certification for client, Real Success Guaranteed with Updated PDII pdf dumps vce Materials. 100% PASS Salesforce Certified Platform Developer II (PDII) exam Today!

Online PDII free questions and answers of New Version:

NEW QUESTION 1
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 2
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 Validation Rule on the Contact object.
  • B. Create a Before Delete Trigger on the Account object.
  • C. Create a Validation Rule on the Account object.
  • D. Create a Before Delete Trigger on the Contact object

Answer: B

NEW QUESTION 3
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer. What modification is necessary on the Salesforce side? Choose 2 answers

  • A. Create an entry for the certificate in Certificate and Key Management.
  • B. Update the code to use HttpRequest . setClientCertificateName
  • C. Configure two-factor authentication with the provided certificate.
  • D. Update the code to use HttpRequest.setHeader () to set an Authorization header.

Answer: AB

NEW QUESTION 4
A Visualforce page controller calls an external web service to get a list of records and display them on the page. The external web service has a complex backend and generally takes a long time to return results, causing timeouts. What can be done to avoid timeouts and display the results without any errors?

  • A. Use the setTimeout () method on the HttpRequest to increase the timeout of the callout.
  • B. Create a callback method and create an instance of a Continuation object in an action method.
  • C. Implement the Batchable interface to perform the callout and capture the response in the batch job.
  • D. Use the tag and keep polling to check the status of the response in the controller.

Answer: B

NEW QUESTION 5
What log category should be used to see the limits in the Execution Overview of the Developer Console?

  • A. System
  • B. Profiling
  • C. Apex Code
  • D. Database

Answer: B

NEW QUESTION 6
Within the System.Limit class, what would you call to get the number of calls made in your transaction?

  • A. Get[typeOfLimit] --> (E
  • B. getDMLStatements())
  • C. GetLimit[typeOfLimit] --> (E
  • D. getLimitDMLStatements())

Answer: A

NEW QUESTION 7
A developer would like to use jQuery in a Visualforce page. Which markup can be used to load the library on the page?

  • A. < apex:include value="{ !$Resource.jQuery}"
  • B. < apex:includeScript value="{ !$Resource.jQuery}
  • C. < apex: script value="{ l$Resource.jQuery}
  • D. < apex:includeJS value="{ !$Resource.jQuery}

Answer: B

NEW QUESTION 8
Invokable methods accept sObjects as parameters

  • A. True
  • B. False

Answer: B

NEW QUESTION 9
What is a technique to maximize code re-use within Visualforce pages? Choose 3 answers

  • A. Referencing an existing page With .
  • B. Creating Visualforce Templates With .
  • C. Defining reusable page regions with .
  • D. Creating reusable page sections with .
  • E. Creating reusable Visualforce Components with .

Answer: ABE

NEW QUESTION 10
Given the following code sample, what is a potential issue regarding bulk processing of records? trigger accountTestTrggr on Account (before insert, before update) Account acct = Trigger.new[0]; List <Contact> contacts = new List <Contact> ([select id, salutation, firstname, lastname,email from Contact where accountId = :acct.Id]); for (Contact con: contacts) con.Title = 'Not Selected'; update contacts;

  • A. The code will not execute because the record in the list can be null and cause an exception.
  • B. The code will process one record that is called explicitly per execution.
  • C. The code will not execute because the list can be null and cause an exception.
  • D. The code will have to be invoked multiple times to process all the records.

Answer: BD

NEW QUESTION 11
What is a limitation of a "getxxx" method (for example, getName) in a custom Visualforce controller?

  • A. The method cannot return SObjects.
  • B. The method cannot use DML operations.
  • C. The method cannot return Apex classes.
  • D. The method cannot use SOSL queries.

Answer: B

NEW QUESTION 12
What is a potential design issue with the following code? trigger accountTrigger on Account (before update) { Boolean processOpportunity = false; List<opportunity> opptysClosedLost = new List<opportunity>(); List<opportunity> lstAllOpp = [select StageName from Opportunity where accountId IN
:Trigger.newMap.keySet()]; if(!lstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity) { for(opportunity o : lstAllOpp) { if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; } } if(!opptysClosedLost.isEmpty() delete opptysClosedLost;

  • A. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity.
  • B. The code Will result in a System.LimitException : Too many script statements error.
  • C. The code will result in a System.DmlException:Entity_is_Deleted error.
  • D. The code will result in a System.LimitException: Apex CPU time limit exceeded error.

Answer: D

NEW QUESTION 13
Where in a query can you use Geolocation and Distance?

  • A. Select clause
  • B. Filter clause
  • C. Order By clause
  • D. Group By clause

Answer: BC

NEW QUESTION 14
A developer must create a way for external partners to submit millions of leads into Salesforce per day. How should the developer meet this requirement?

  • A. Publicly expose a Visualforce page via Force.com Sites.
  • B. Create a web service on Heroku that uses Heroku Connect.
  • C. Host a Web-to-Lead form on the company website.
  • D. Publicly expose an Apex Web Service via Force.com Sites.

Answer: D

NEW QUESTION 15
What is the top-level namespace that provides the ability to use Chatter in Apex?

  • A. RestApi
  • B. ChatterApi
  • C. FeedApi
  • D. ConnectApi

Answer: D

NEW QUESTION 16
A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records. How should the developer handle the recursive trigger?

  • A. Deactivate the trigger and move the logic into a Process or Flow.
  • B. Deactivate the workflow rule to prevent the field update from executing.
  • C. Use a static variable to prevent the trigger from executing more than once.
  • D. Use a global variable to prevent the trigger from executing more than once.

Answer: C

NEW QUESTION 17
Which of the following variables are not transmitted in the view state? Choose two answers

  • A. Private
  • B. Transient
  • C. Public
  • D. Static

Answer: BD

NEW QUESTION 18
......

P.S. Allfreedumps.com now are offering 100% pass ensure PDII dumps! All PDII exam questions have been updated with correct answers: https://www.allfreedumps.com/PDII-dumps.html (189 New Questions)