Valid PDII Exam Q&A PDF PDII Dump is Ready (Updated 325 Questions) [Q172-Q196]

Share

Valid PDII Exam Q&A PDF PDII Dump is Ready (Updated 325 Questions)

Exam Questions and Answers for  PDII Study Guide

NEW QUESTION 172
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. Force.com Migration Tool
  • B. Workbench
  • C. Developer Console
  • D. Force.com IDE

Answer: B

 

NEW QUESTION 173
Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_ld_c.
How can a developer insert an Employee_c record linked to Company_c with a Company_ld_c of '999'?

  • A. Employee_c emp = new Employee_c(Name=fDeveloperT); emp. Company_c = new Company_c(Company_Id_c=f 999 T) insert emp;
  • B. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_c = f999f insert emp;
  • C. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = f999f insert emp;
  • D. Employee_c emp = new Employee_c(Name=fDeveloperf); emp.Company_r = new Company _ r(Company Id c=f999f) insert emp;

Answer: D

 

NEW QUESTION 174
What is the transaction limit for the number of SOSL queries?

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

Answer: E

 

NEW QUESTION 175
Universal Containers wants to be able to bring up an Account detail page and view a table of containers currently being rented. The user wants to be able to dick on a container In the table and quickly edit and save the location of the container.
In addition to this, the page should have a section that shows the location of each container on a map. Universal Containers wants the map to re-render whenever the location of a container is changed.
What can a developer use to accomplish this task?

  • A. Two Lightning Components leveraging Platform Events
  • B. Two Lightning Components leveraging Application Events
  • C. Two Visualforce Page Components leveraging Application Events
  • D. A single visualforce Page leveraging Platform Events

Answer: B

 

NEW QUESTION 176
Choose the correct definition for <apex:actionSupport>.

  • A. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
  • B. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
  • C. Signifies which components should be processed by the server when an AJAX request is generated
  • D. 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
  • E. Allows for controller methods to be called directly from Javascript. Must be encapsulated in <apex:form> tags. Unlike actionSupport, these function<apex:actionPoller>s can be called directly from Javascript code

Answer: B

 

NEW QUESTION 177
The maximum view state size of a visualforce page is __________.

  • A. 1mb
  • B. 165kb
  • C. 65kb
  • D. 256kb
  • E. 135kb

Answer: E

 

NEW QUESTION 178
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. Create a web service on Heroku that uses Heroku Connect
  • B. Publicly expose a Visualforce page via Force.com Sites
  • C. Publicly expose an Apex Web Service via Force.com Sites
  • D. Host a Web-to-Lead form on the company website

Answer: A

 

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

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

Answer: C,D

 

NEW QUESTION 180
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?

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

Answer: D

 

NEW QUESTION 181
1 Contact con = new Contact( LastName ='Smith', Department = 'Admin')
2 insert con;
3 Contact insertedContact=[select Name from Contact where id=:con.Id];
4 Savepoint sp_admin = Database.setSavepoint();
5 con.Department = 'HR';
6 update con;
7 Database.rollback(sp_admin);
8 System.debug(Limits.getDmlStatements());
Given the following code, what value will be output in the logs by line #8?

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

Answer: C

 

NEW QUESTION 182
A developer wants to use an Aura Component with a Custom Action.
What should be considered in order to do this?

  • A. The component must implement the force:lightningQuickActionButton interface.
  • B. The component's JavaScript controller must handle a method on initialization.
  • C. The class "slds-modal__container" must be added to the top-level element of the component.
  • D. A default value must be provided for each component attribute marked as required.

Answer: A

 

NEW QUESTION 183
Which two objects can be inserted in the same transaction? Choose 2 answers

  • A. Account and AccountShare
  • B. Case and CaseComment
  • C. Account and Group
  • D. Opportunity and User

Answer: A,B

 

NEW QUESTION 184
In a VisualForce page with a VisualForce component that has rendered set to false when the page loads, how can a developer ensure it will show on a re-render?

  • A. Set the rendered attribute of the component to true and re-render a parent component.
  • B. Set the re-render attribute of the component to true.
  • C. Perform a full page refresh since rendered elements cannot be re-rendered without refreshing.
  • D. Set the rendered attribute of the component to true and re-render the component.

Answer: A

 

NEW QUESTION 185
Which is a valid Apex REST Annotation? (Choose two.)

  • A. @HttpUpsert
  • B. @HttpAction
  • C. @Http Patch
  • D. @HttpDelete

Answer: C,D

 

NEW QUESTION 186
For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and. over time, they predict they will have hundreds of millions of records.
What should a developer use to implement this?

  • A. Field Audit Trail
  • B. Field History Tracking
  • C. Setup Audit Trail
  • D. Bin objects

Answer: D

 

NEW QUESTION 187
A company has 20,000 rows in the Account object and 2 million rows in the Sales_Data_c object that is related to Account. All of the records in the Sales_Data_c object have a field that contains the string 'Le.' Which statement will throw a "Too many query rows" exception? Choose 2 answers

  • A. List< List< sObject>> result= [FIND 'Le' IN ALL FIELDS RETURNING Sales_Data_c(Id)];
  • B. List< AggregateResult> result = [SELECT count(Id) total FROM Sales_Data_c];
  • C. List< sObject> result = Database.query('SELECT Id FROM Sales_Data_c LIMIT 50000');
  • D. List< Account> result = [SELECT Id, (SELECT Id FROM Sales_Data_r) FROM Account]

Answer: A,D

 

NEW QUESTION 188
A developer is building a Visualforce page that interacts with external services.
Which interface should the developer implement to test this functionality? (Choose two.)

  • A. HTTPRequestMock
  • B. HTTPCalloutMock
  • C. StaticResourceCalloutMock
  • D. HTTPResponseMock

Answer: B,C

 

NEW QUESTION 189
What is a limitation of compound fields?

  • A. Are read-only unless accessed by Location and Address Apex classes.
  • B. Cannot be queried through the use of Apex classes.
  • C. Are read-only when accessed through Visualforce pages.
  • D. Can only be updated through individual field components.

Answer: D

 

NEW QUESTION 190
A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?

  • A. use Try/Catch block after the insert statement.
  • B. Remove the Apex Class from the Integration User's Profile.
  • C. Deactivate the Trigger before the Integration runs.
  • D. Use the Database method with allOrNone set to False.

Answer: A

 

NEW QUESTION 191
A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object.
What is the recommended mechanism the developer should use to accomplish this?

  • A. Schema Class
  • B. Schema Builder
  • C. Metadata API
  • D. Apex API

Answer: A

 

NEW QUESTION 192
The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic.
The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.
How should a developer implement this?

  • A. Override the edit button for Lightning with a Lightning Page, and Classic with a Visualforce page that contains the Lightning Component
  • B. Override the edit button for both Lightning and Classic with a new Visualforce page
  • C. Override the edit button for Lightning with a Lightning Component, and Classic with a Visualforce page that contains the Lightning Component
  • D. Override the edit button for both Lightning and Classic with a Lightning Component

Answer: A

 

NEW QUESTION 193
Which statement is true regarding both Flow and Lightning Process?

  • A. Are able to be embedded directly into Visualforce pages.
  • B. Can use Apex that implements the Process. Plugin interface.
  • C. Can use Apex methods with the @InvocableMethod annotation.
  • D. Are both server-side considerations in the Order of Execution.

Answer: C

 

NEW QUESTION 194
Which of the following about Dynamic Apex is incorrect?

  • A. In dynamic SOQL, you can use bind variables and bind variable fields
  • B. Schema.getGlobalDescribe() gives you a map of all sObject
  • C. getDescribe() can get you a variety of info on a particular object/field
  • D. You can retrieve the sObject type from an Id by calling .getSObjectType()

Answer: A

Explanation:
While you can use simple bind variables in dynamic SOQL, you cannot use bind variable fields (e.g. :myVariable.field1_c) Use escapeSingleQuotes to prevent SOQL injection

 

NEW QUESTION 195
Code must have X% overall code coverage.

  • A. X = 65
  • B. X = 50
  • C. X= 100
  • D. X = 75

Answer: D

 

NEW QUESTION 196
......

Certification dumps - Salesforce Developers PDII guides - 100% valid: https://www.free4torrent.com/PDII-braindumps-torrent.html

100% Pass Your PDII Salesforce Certified Platform Developer II (PDII) at First Attempt with Free4Torrent: https://drive.google.com/open?id=1lroVDuq_ZqQT_pqCGor1xQZfYOOj_ILp