aiotestking uk

PDII Exam Questions - Online Test


PDII Premium VCE File

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

Cause all that matters here is passing the Salesforce PDII exam. Cause all that you need is a high score of PDII Salesforce Certified Platform Developer II (PDII) exam. The only one thing you need to do is downloading Pass4sure PDII exam study guides now. We will not let you down with our money-back guarantee.

Salesforce PDII Free Dumps Questions Online, Read and Test Now.

NEW QUESTION 1
How can Apex be used with Visual Workflow?

  • A. To set the version of a Flow being run.
  • B. To start a Flow automatically.
  • C. To add custom styling to a Flow.
  • D. To control access to a Flow

Answer: B

NEW QUESTION 2
A developer needs to create a Lightning page for entering Order Information. An error message should be displayed if the zip code entered as part of the Order's shipping address is not numeric. What is a
recommended way for the error message be displayed to the end user?

  • A. Use the apex:message tag to display errors.
  • B. Use the aura:component tag to display errors.
  • C. Use the ui:outputText tag to display errors.
  • D. Use the ui:inputDefaultError tag to display errors

Answer: D

NEW QUESTION 3
A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table. Which tag should the developer use inside the component?

  • A. < apex:variable>
  • B. < apex:define>
  • C. < apex:param>< meta charset="utf-8" />< apex:param>
  • D. < apex:attribute>

Answer: D

NEW QUESTION 4
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 5
A developer wants to retrieve and deploy metadata, perform a simple CSV export of query results, and debug APEX Rest calls by viewing the JSON responses. Which tool should the developer use?

  • A. Developer Console
  • B. Force.com Migration Tool
  • C. Workbench
  • D. Force.com IDE

Answer: C

NEW QUESTION 6
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 7
A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record. How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?

  • A. Create a Controller that uses the Without Sharing keyword.
  • B. Create a Criteria-Based Sharing Rule on the Project sObject.
  • C. Create a Team Member Trigger that inserts Project_Share records.
  • D. Create a Project Sharing Rule that shares to the Team Member Group

Answer: C

NEW QUESTION 8
If the "PageReference.setRedirect" Apex function is set to False, what type of request is made?

  • A. Get request
  • B. Postback request
  • C. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request

Answer: C

NEW QUESTION 9
REST uses...

  • A. The HTTP class
  • B. The HTTPRequest class
  • C. The HTTPResponse class
  • D. All of the above

Answer: D

NEW QUESTION 10
A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login()Call? Choose 2 answers

  • A. Organization Id
  • B. Security Token
  • C. Session Id
  • D. Username and Password

Answer: BD

NEW QUESTION 11
What is a recommended practice with regard to the Apex CPU limit? Choose 2 answers

  • A. Optimize SOQL query performance.
  • B. Use Map collections to cache sObjects.
  • C. Avoid nested Apex iterations.
  • D. Reduce view state in Visualforce pages.

Answer: BC

NEW QUESTION 12
Which of these are valid REST annotations?

  • A. @httpDelete
  • B. @httpCreate
  • C. @httpUpsert
  • D. @httpPatch

Answer: AD

NEW QUESTION 13
What is a controller value that will NOT be saved in the viewstate of a Visualforce page? Choose 3 answers

  • A. A variable declared with the Transient keyword.
  • B. A variable of a type that is a collection of SObjects.
  • C. A system-generated object such as a Schema Describe object.
  • D. A variable declared with the Static keyword.
  • E. A variable of a type that is a custom Apex class.

Answer: ACD

NEW QUESTION 14
Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

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

Answer: C

NEW QUESTION 15
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 16
When testing batch classes, what must a developer do?

  • A. Use seeAllData=true
  • B. Encapsulate code in Test.startTest() and Test.stopTest()
  • C. Call the class' "execute" method
  • D. Limit the amount of records you test to < 200

Answer: BD

NEW QUESTION 17
A customer has a single Visualforce page that allows each user to input up to 1500 sales forecasts and instantly view pivoted forecast calculations. Users are complaining that the page is loading slowly, and they are seeing error messages regarding heap and view state limits. What are three recommendations to optimize page performance?

  • A. Segregate calculation functionality from input functionality.
  • B. Specify the list of sales forecasts as transient.
  • C. Implement pagination and reduce records per page.
  • D. Create formula fields to compute pivoted forecast calculations.
  • E. Use JavaScript Remoting instead of controller actions.

Answer: CDE

NEW QUESTION 18
......

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