we provide Certified Salesforce PDII exam prep which are the best for clearing PDII test, and to get certified by Salesforce Salesforce Certified Platform Developer II (PDII). The PDII Questions & Answers covers all the knowledge points of the real PDII exam. Crack your Salesforce PDII Exam with latest dumps, guaranteed!

Online PDII free questions and answers of New Version:

NEW QUESTION 1
A developer must create a custom pagination solution. Users will access the solution on a mobile device and will rarely access subsequent pages of records. Performance is crucial. Which approach is optimal?

  • A. Use OFFSET CURSOR in SOQL queries.
  • B. Use a StandardSetController.
  • C. Use @Cache annotation in the controller.
  • D. Use OFFSET in SOQL queries.

Answer: D

NEW QUESTION 2
A Salesforce developer created a Contact validation rule so that the Email field cannot contain "abc.com." There is an active workflow rule that updates the Email field of a contact record to "test@abc.com" if the contact's First Name field contains the word "Test." A customer tries to create a Contact record with the first name "Test Contact" and the email "test@test.com." What behavior will be observed?

  • A. The customer will receive a system error message.
  • B. The contact record will be created with the email address "test@abc.com."
  • C. The customer will receive a validation error message.
  • D. The contact record will be created with the email address test@test.com.

Answer: B

NEW QUESTION 3
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 4
Which of the following object types can be used with a Web Service?

  • A. Maps
  • B. Sets
  • C. Pattern objects
  • D. Matcher objects
  • E. Lists
  • F. Exception objects

Answer: E

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

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

Answer: E

NEW QUESTION 6
What is the value of "i" printed by the System.debug statement, if the value of "j" is 2 at the end of the transaction? insert new Account[]{new Account(Name = 'yyy'), new Account(Name = 'yyy')}; integer i = 0; integer j; for (Account[] tmp : [SELECT Id FROM Account WHERE Name = 'yyy']) j=tmp.size(); i++; System.debug(i);

  • A. 1
  • B. 2
  • C. 3

Answer: B

NEW QUESTION 7
What is the transaction limit on the recursive trigger depth?

  • A. 10
  • B. 17
  • C. 16
  • D. 3
  • E. There is no limit

Answer: C

NEW QUESTION 8
Choose the correct definition for <apex:actionPoller>

  • A. Allows for controller methods to be called directly from Javascrip
  • B. Must be encapsulated in tag
  • C. Unlike actionSupport, these functions can be called directly from Javascript code
  • D. Sends an AJAX request according to the time interval you specif
  • E. If this ever gets re-rendered, it resets
  • F. Adds AJAX support to another component (e.
  • G. onClick, onMouseUp, onFocus, etc.)
  • H. Can be associated with an AJAX request (actionFunction/actionSupport/actionPoller) and shows content conditionally depending on the status of the request (in progress/complete). Use the "id" field to specify name;use "status" field on related components to connect them
  • I. Signifies which components should be processed by the server when an AJAX request is generated
  • J. Signifies which components should be processed by the server when an AJAX request is generated

Answer: B

NEW QUESTION 9
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page?

  • A. Standard Controller
  • B. Standard List/Set Controller
  • C. Controller Extensions
  • D. Custom Controller

Answer: B

NEW QUESTION 10
Where in Apex execution can a callout be made? Choose 2 answers

  • A. Trigger context.
  • B. In @future context.
  • C. After SOQL queries.
  • D. After DML operations

Answer: BC

NEW QUESTION 11
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 12
Which of the following standard fields are indexed? Choose three answers

  • A. Name
  • B. CreatedBy
  • C. SystemModStamp
  • D. LastModifedDate
  • E. RecordType

Answer: ACE

NEW QUESTION 13
Which is a valid Apex REST Annotation? Choose 2 answers

  • A. @HttpPatch
  • B. @HttpDelete
  • C. @HttpUpsert
  • D. @HttpAction

Answer: AB

NEW QUESTION 14
What is the correct order of execution for Visualforce Page "get" requests (initial page visit)

  • A. 1: Evaluate constructors on controller and extensions 2: If there's a element, create the view state3: Evaluate expressions, attribute actions, and other method calls (getters/setters) on main page4: Evaluate constructors, extensions, and expression on attribute definitions on any custom components present5: Send HTML to Browser
  • B. 1: Evaluate constructors on controller and extensions2: Evaluate constructors, extensions, and expression on attribute definitions on any custom components present3: Evaluate expressions, attribute actions, and other method calls (getters/setters) on main page 4: If there's a element, create the view state5: Send HTML to Browser
  • C. 1: Evaluate constructors, extensions, and expression on attribute definitions on any custom components present2: Evaluate constructors on controller and extensions3: Evaluate expressions, attribute actions, and other method calls (getters/setters) on main page 4: If there's a element, create the view state5: Send HTML to Browser

Answer: B

NEW QUESTION 15
Which API can be used to execute unit tests? Choose 3 answers

  • A. Streaming API
  • B. Test API
  • C. Tooling API
  • D. SOAP API
  • E. Metadata API

Answer: CDE

NEW QUESTION 16
A company requires an external system to be notified whenever an account is updated. What LimitException could the following code trigger? trigger AccountTrigger on Account (after update) { for (Account updatedAccount : Trigger.new) { AccountTriggerHelper.notinyxternalSystem(updatedAccount.id); } } public class AccountTriggerHelper { future(callout=true) public static void notinyxternalSystemlId accountId) { Account acc = [Select id, name from.Account where accountId = :accountId]; //Instantiate a new http object Http 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); } }

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

Answer: A

NEW QUESTION 17
What is the transaction limit for the number of records for SOSL?

  • A. 20
  • B. 2,000
  • C. 100 (synchronous), 200 (async)
  • D. 200 (synchronous), 100 (async)
  • E. There is no limit

Answer: B

NEW QUESTION 18
A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey-c records are being created per Case. trigger CaseTrigger on Case (after insert, after update) { List<Survey c> createSurveys = new List<Survey c>(); for (Case c : trigger.new) { if (c.IsClosed && (trigger.isInsert ll trigger.isUpdate && trigger.oldMap.get(c.Id).IsClosed == false)) { createSurveys.add(new Survey c(Case c = c.Id)); insert createSurveys; } } What could be the cause of this issue?

  • A. A user is creating the record as Closed
  • B. A workflow rule is firing with a Create Task action.
  • C. A workflow rule is firing with a Field Update action.
  • D. A user is editing the record multiple times.

Answer: D

NEW QUESTION 19
The Contact object has a custom field called "Zone." Its data type is "Text" and field length is 3. What is the outcome after executing the following code snippet in the org? List<Contact> contactsToBeInserted=new List<Contact>(); Contact contactInstance= new Contact(LastName='Smith', Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactlnstance); contactInstance= new
Contact(LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add(contactlnstance); Database.insert(contactsToBeInserted,true);

  • A. Both inserts succeed and the contact record that has the Zone value of 'PI‘I'I" is set to NULL.
  • B. A partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted.
  • C. Both inserts succeed and the contact record that has the Zone value of 'PITT" is truncated.
  • D. An unhandled DML exception is thrown and no contact records are inserted.

Answer: D

NEW QUESTION 20
......

P.S. Easily pass PDII Exam with 189 Q&As Surepassexam Dumps & pdf Version, Welcome to Download the Newest Surepassexam PDII Dumps: https://www.surepassexam.com/PDII-exam-dumps.html (189 New Questions)