PDII Salesforce Certified Platform Developer II (PDII)

Loading demo links...

Showing 13–15 of 20 questions

Question 13

As part of their quoting and ordering process, a company needs to send PDFs to their document storage system’s REST endpoint that supports OAuth 2.0. Each Salesforce user must be individually authenticated with the document storage system to send the PDF.

What is the optimal way for a developer to implement the authentication to the REST endpoint?

Select an option, then click Submit answer.

  • Named Credential with Password Authentication

  • Named Credential with an OAuth Authentication Provider

  • Hierarchy Custom Setting with an OAuth token custom field

  • Hierarchy Custom Setting with a password custom field

Question 14

Which tag should a developer use to display different text while an

 

Select an option, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D

Question 15

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 contactsToBeInserted=new List(); Contact contactInstance= new Contact(LastName='Smith', Department='Tech', Zone_c='IAD'); contactsToBeInserted.add(contactInstance); contactInstance= new Contact(LastName='Sm1th', Department='Tech', Zone_c='PITT'); contactsToBeInserted.add (contactInstance); Database.insert(contactsToBeInserted,true);

Select an option, then click Submit answer.

  • Both inserts succeed and the contact record that has the Zone value of 'PI'I'I' is set to NULL

  • A partial insert succeeds and the contact record that has the Zone value 'IAD' is inserted

  • Both inserts succeed and the contact record that has the Zone value of 'PITT' is truncated

  • An unhandled DML exception is thrown and no contact records are inserted