Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

Salesforce PDII Dumps - The Sure Way To Pass Exam [Q24-Q47]

Share

Salesforce PDII Dumps - The Sure Way To Pass Exam

PDII Exam Questions (Updated 2022) 100% Real Question Answers

NEW QUESTION 24
Which technique can run logic when an Aura Component is loaded?

  • A. Use an aura:handler 'init'' event to call a function.
  • B. Use the connectedCallback(0 method.
  • C. Call $A. enqueueAction passing in the method to call.
  • D. Use the standard doinit function in the controller.

Answer: A

 

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

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

Answer: D

Explanation:
All triggers must have at least 1% code coverage

 

NEW QUESTION 26
What is a potential design issue with the following code?

  • 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.DmException:Entity_is_Deleted error
  • C. The code will result in a System.LimitException: Apex CPU time limit exceeded error
  • D. The code will result in a System.LimitException : Too many script statements error

Answer: C

 

NEW QUESTION 27
What is the most efficient way in Visualforce to show information based on data filters defined by an end-user for a large volume of data?

  • A. Use the rendered condition in Visualforce to limit data based on data filters.
  • B. Use an Apex controller to refine raw data based on data filters and store the result in a transient variable.
  • C. Use an Apex controller to refine raw data based on data filters and store the result in a static variable.
  • D. Use filter conditions in a SOQL query to limit data based on data filters.

Answer: D

 

NEW QUESTION 28
A Visualforce page needs to make a callout to get biding information and tax information from two different REST endpoints. The information needs to be Displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.
How should a developer implement the callouts?

  • A. An HTTP REST callout for the billing callout and a Continuation for the tax callout
  • B. A Continuation for both the billing callout and the tax callout
  • C. An HTTP REST call out for both the billing callout and the tax callout
  • D. A Continuation for the billing callout and an HTTP REST callout for the tax callout

Answer: B

 

NEW QUESTION 29
Choose the correct definition for <apex:actionFunction>.

  • A. Sends an AJAX request according to the time interval you specify. If this ever gets re-rendered, it resets
  • B. 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
  • C. 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
  • D. Adds AJAX support to another component (e.g. onClick, onMouseUp, onFocus, etc.)
  • E. Signifies which components should be processed by the server when an AJAX request is generated

Answer: C

 

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

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

Answer: D

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 31
The REST API___________.

  • A. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment
  • B. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
  • C. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
  • D. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more

Answer: B

 

NEW QUESTION 32
In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)

  • A. Poor performance when using native sharing components
  • B. You need to change record access to read/write for all users utilising a lightning component
  • C. There is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce
  • D. Every record created by sales users needs to be visible to their respective manager
  • E. Team functionality is required on custom objects

Answer: A,C,E

 

NEW QUESTION 33
When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

  • A. Custom Labels
  • B. Translation Workbenc
  • C. convertCurrency()
  • D. Global Labels
  • E. getLocalCurrency()

Answer: A,B,C

Explanation:
Explanation

 

NEW QUESTION 34
During the order of execution of a Visualforce page GET request, what happens after this step?
Evaluate constructors on controllers and extensions

  • A. Create view state if <apex: form> exists
  • B. Evaluate constructors and expressions on custom components
  • C. Evaluate expressions, action attributes, and method calls
  • D. Send the HTML response to the browser

Answer: B

 

NEW QUESTION 35

A company has the Lightning Component above that allows users to dick a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected.
Which three techniques can a developer use to debug the JavaScript? Choose 3 answers

  • A. Use the browser's dev tools to debug the JavaScript.
  • B. Use Developer Console to view the debug log.
  • C. Enable Debug Mode for Lightning components for the user.
  • D. Use Developer Console to view checkpoints.
  • E. Use consde.log() messages in the JavaScript.

Answer: A,C,E

 

NEW QUESTION 36
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 both Lightning and Classic with a new Visualforce page
  • B. Override the edit button for Lightning with a Lightning Page, and Classic with a Visualforce page that contains the Lightning Component
  • C. Override the edit button for both Lightning and Classic with a Lightning Component
  • D. Override the edit button for Lightning with a Lightning Component, and Classic with a Visualforce page that contains the Lightning Component

Answer: B

 

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

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

Answer: C

 

NEW QUESTION 38
Exhibit.

What must be added to get the data?

  • A. Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
  • B. Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
  • C. Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
  • D. Add this, account = getData (this,name); to the loadData ( ) function.

Answer: A

 

NEW QUESTION 39
How can the DISTANCE and GEOLOCATION functions be used i|n SOQL queries? (Choose two.)

  • A. To group results in distance ranges from a latitude and longitude
  • B. To filter results based on distance from a latitude and longitude
  • C. To order results by distance from a latitude or longitude
  • D. To get the distance results from a latitude and longitude

Answer: B,C

 

NEW QUESTION 40
What are three benefits of using declarative customizations over code? Choose 3 answers

  • A. Declarative customizations are not subject to governor limits.
  • B. Declarative customizations do not require user testing.
  • C. Dectarative customizations will automatically update with each Salesforce release.
  • D. Declarative customizations cannot generate run time errors.
  • E. Declarative customizations generally require less maintenance.

Answer: A,C,E

 

NEW QUESTION 41
A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number__c that is unique across all of the company's systems. They also have a custom Invoice__c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time. What is the optimal way to implement this?

  • A. Ensure Customer_Number__c is an External ID and that a custom field Invoice_Number__c is an External ID and Upsert invoice data nightly.
  • B. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
  • C. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice
  • D. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.

Answer: A

 

NEW QUESTION 42
A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set.
What is the optimal way to achieve this?

  • A. Create an after insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method.
  • B. Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method.
  • C. Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method.
  • D. Create an after insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method.

Answer: D

 

NEW QUESTION 43
Exhibit:

What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
A)

B)

C)

D)

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: C

 

NEW QUESTION 44
A developer has a page with two extensions overriding the Standard controller for Case.

What will happen when a user clicks the command button?

  • A. Save from Case Standard Controller will be executed
  • B. Save from CaseExtensionTwo will be executed
  • C. Save from CaseExtensionOne will be executed
  • D. All of the three Save methods will be executed

Answer: C

 

NEW QUESTION 45
If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?

  • A. <apex:error>
  • B. <apex:outputText>
  • C. <apex:message>
  • D. <apex:pageMessages>

Answer: D

 

NEW QUESTION 46
Example 1: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) { System.debug ('Campaign ID' + ar.get('CampaignId'-); System.debug ('Average amount' + ar.get('exprd')); } Example 2: AggregateResult[] groupedResults = [SELECT Campaignid, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResuits) { System.debug(*Campaign ID' + ar.get('CampaignId')); System.debug ('Average amount' + ar.get('theAverage')); } Example 3:
AggregateResult[] groupedResults = [SELECT CampaignId, AVG(Amount) FROM Opportunity GROUP BY CampaignId]; for (AggregateResult ar : groupedResuits) System.debug(*Campaign ID' + ar.get('CampaignId')); System.debug('Average amount' + ar.get.AVG(-); } Example 4:AggregateResult[] groupedResults = [SELECT CampaigniId, AVG(Amount) theAverage FROM Opportunity GROUP BY Campaignid]; for (AggregateResult ar : groupedResults) { System.debug('Campaign ID' + ar.get('CampaignId')); System.debug ('Average amount' + ar.theAverage-; } Which two of the examples above have correct System.debug statements? Choose 2 answers

  • A. Example 3
  • B. Example 1
  • C. Example 4
  • D. Example 2

Answer: B,D

 

NEW QUESTION 47
......


How much PDII Exam Cost

The price of the Salesforce Certified Platform Developer II (PDII) Exam is $200 USD.

 

Pass Salesforce PDII Exam Quickly With VCE4Dumps: https://www.vce4dumps.com/PDII-valid-torrent.html

Prepare PDII Question Answers - PDII Exam Dumps: https://drive.google.com/open?id=12Nb-KfmTxIEHJlj69Ne9smzfFHbiOpyP