[2023] Pass Salesforce PDII Exam in First Attempt Easily [Q174-Q198]

Share

[2023] Pass Salesforce PDII Exam in First Attempt Easily

The Most Efficient PDII Pdf Dumps For Assured Success 


Salesforce PDII Exam Syllabus Topics:

TopicDetails
Topic 1
  • Identify how an Apex method can be made available for use by Lightning Web Components
  • Determine if a declarative or custom-coded solution should be implemented
Topic 2
  • Given a set of requirements, choose the appropriate integration technique
  • Given a scenario, formulate the deployment process, supporting tools, and mechanisms
Topic 3
  • Apex code or trigger that is not performing as expected
  • Identify use cases for different types of custom metadata and custom settings
Topic 4
  • Select scenarios where code reuse is applicable and how the reuse should be implemented
  • Describe the Apex features available for error handling and maintaining transactional integrity
Topic 5
  • Apply techniques and tools for testing Visualforce controllers and controller extensions
  • Outline the benefits of adopting a low-code approach in Salesforce
Topic 6
  • Compare and contrast the usage of Visualforce and Apex controllers
  • Describe the use cases for and benefits of external IDs
Topic 7
  • Describe the purpose and benefit of static resources in both Visualforce and Lightning Components
  • Iand justify where Apex managed sharing should be used
Topic 8
  • Identify the appropriate dynamic Apex feature to use in the solution
  • Given a scenario, propose and justify the optimal programmatic or declarative solution
Topic 9
  • Identify inefficiencies and demonstrate the ability to resolve them
  • identify the considerations of interactions between multiple processes
Topic 10
  • Describe the messaging techniques and best practices when displaying errors in user interfaces
  • Differentiate DML statements and types of database events

 

NEW QUESTION 174
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< sObject> result = Database.query('SELECT Id FROM Sales_Data_c LIMIT 50000');
  • B. List< Account> result = [SELECT Id, (SELECT Id FROM Sales_Data_r) FROM Account]
  • C. List< List< sObject>> result= [FIND 'Le' IN ALL FIELDS RETURNING Sales_Data_c(Id)];
  • D. List< AggregateResult> result = [SELECT count(Id) total FROM Sales_Data_c];

Answer: B,C

 

NEW QUESTION 175
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 II 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 workflow rule is firing with a Create Task action
  • B. A workflow rule is firing with a Field Update action
  • C. A user is editing the record multiple times
  • D. A user is creating the record as Closed

Answer: C

 

NEW QUESTION 176
A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.
What should the integration use to create new Order__c records that will automatically be related to the correct Account?

  • A. Upsert on the Order__c object and specify the ERP_Customer_ID__c.
  • B. Merge on the Order__c object and specify the ERP_Customer_ID__c.
  • C. Insert on the Order__c object followed by an update on the Order__c object.
  • D. Upsert on the Account and specify the ERP_Customer_ID__c.

Answer: C

 

NEW QUESTION 177
Exhibit:

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Account are simultaneously updated to be customer.
The test method fails at the Line 20 because of too many SOQL queries
What is the correct way to fix this?

The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.
The test method fails at the Line 20 because of too many SOQL queries.
What is the correct way to fix this?

  • A. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.
  • B. Replace most of the Apex Trigger with Process Builder processes to reduce the number of queries in the trigger.
  • C. Add TeststartTest() before Line 18 of the code and add Test.stopTest() after line 18 of the code.
  • D. Add TesLstartTest() before and Test.stop Test() after both Line 7 of the code and Line 20 of the code.

Answer: D

 

NEW QUESTION 178
Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List<String> getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?

  • A. Line 1: class must be global
  • B. Line 6: method must be static
  • C. Lines 1 and 6: class and method must be global
  • D. Line 8: method must first serialize the list to JSON before returning

Answer: B

 

NEW QUESTION 179
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
A)

B)

C)

D)

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

Answer: B

 

NEW QUESTION 180
A developer writes a lightning web component that displays a dropdown list of all custom objects in the org from which a user will select Apex method prepares and returns data to the component.
What should the developer do to determine which objects to include m the response?

  • A. Use the getCustomObject ( ) method from the Schema class.
  • B. Import the list of all custom objects from @salesforce/schema.
  • C. Check the isCustom ( ) value on the sObject describe result.
  • D. Check the getObjectType () value for Custom' or 'Standard' on the sObject describe result.

Answer: C

 

NEW QUESTION 181
Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

  • A. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
  • B. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
  • C. A Custom List View on the junction object with filters that will show the proper records based onowner
  • D. A Custom Report Type and a report Lightning Component on the Community Home Page

Answer: D

 

NEW QUESTION 182
Exhibit.

What must be added to get the data?

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

Answer: C

 

NEW QUESTION 183
An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.

A new process on the case object was just created in production for when a Case is created or updated< since the process was created, they are reports that the Count is being incremented by more than one on Case edit.
Which change in the Apex code will fix the problem?

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

Answer: C

 

NEW QUESTION 184
A developer has created a Visualforce page that uses a thirdparty JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers. What is the correct syntax to declare a remote method in Apex? Choose 2 answers

  • A. @RemoteAction global String getTable()
  • B. @Remoteobject ' global static String gettable
  • C. @RemoteAction global static String getTable()
  • D. @RemoteAction public static String getTable()

Answer: C,D

 

NEW QUESTION 185
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 uhinputDefaultError tag to display errors
  • C. Use the uhoutputText tag to display errors
  • D. Use the aura:component tag to display errors

Answer: B

 

NEW QUESTION 186
What is the transaction limit on the number of Apex jobs added to the queue?

  • A. 0
  • B. 1
  • C. 2
  • D. There is no limit
  • E. 3

Answer: E

 

NEW QUESTION 187
What is a valid request for the following REST method: @HttpPost global static void myPostMethod(String sl,Integer il, Boolean bl, String b2) Choose 2 answers

  • A. < request> < sl>"my first string" < il>123 < sZ>"my second string" < bl>false < /request>
  • B. Sl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second string"
  • C. "il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false
  • D. < request> < sl>my first string < 11>123 < 32>my second string < b1>false < /request>

Answer: A,C

 

NEW QUESTION 188
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

What must be done in the component to get the data from Salesforce?
A)

B)

C)

D)

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

Answer: D

 

NEW QUESTION 189
A developer built a Component to be used at the front desk for quests to self-register upon arrival at a kiosk.
The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk.
What should be used?

  • A. Application Event
  • B. ChangeLog
  • C. Component Event
  • D. DML Operation

Answer: A

 

NEW QUESTION 190
A developer needs to implement a system audit feature that allows users, assigned to a custom profile named "Auditors", to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?
A)

B)

C)

D)

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

Answer: B

 

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

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

Answer: A,B,D

 

NEW QUESTION 192
A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?

  • A. Custom Object
  • B. Custom Setting
  • C. Custom Metadata
  • D. Custom Variable

Answer: C

 

NEW QUESTION 193
What level can a hierarchy custom setting be defined for? Choose 3 answers

  • A. Roles
  • B. Profiles
  • C. Users
  • D. Groups
  • E. Organization

Answer: B,C,E

 

NEW QUESTION 194
A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build an application that can create, retrieve, and update common object records in all of the different orgs.
Which method of integration should the application use?

  • A. Apex REST Web Service
  • B. SOAP API with the Enterprise WSDL
  • C. Metadata API
  • D. SOAP API with the partner WSDL

Answer: A

 

NEW QUESTION 195
A developer has a test class that creates test data before making a mock call-out, but now receives a 'You have uncommitted work pending. Please commit or rollback before calling out' error.
What step should be taken to resolve the error?

  • A. Ensure the records are inserted before the Test.startTest() statement and the mock callout occurs within a method annotated with @testSetup
  • B. Ensure the records are inserted before the Test.startTest() statement and the mock callout after the Test.startTest()
  • C. Ensure both the insertion and mock callout occur after the Test.stopTest()
  • D. Ensure both the insertion and mock callout occur after the Test.startTest()

Answer: B

 

NEW QUESTION 196
What is a technique to maximize code re-use within Visualforce pages? Choose 3 answers

  • A. Referencing an existing page With .
  • B. Creating Visualforce Templates With .
  • C. Creating reusable page sections with .
  • D. Defining reusable page regions with .
  • E. Creating reusable Visualforce Components with .

Answer: A,B,E

 

NEW QUESTION 197
0f Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b. These are the fields on Customer_Transaction__b: Account__c Program__ยข Points_Earned__c Location__c Transaction_Date__c The following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c. Which SOQL query is valid on the Customer_Transaction__b Big Object?

  • A. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c EXCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
  • B. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c LIKE 'Shop%' AND Transaction_Date__c=2019-05-31T00:00Z
  • C. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c INCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
  • D. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c ='Shoppers' AND Transaction_Date__c=2019-05-31T00:00Z

Answer: D

 

NEW QUESTION 198
......


For more info visit:

Salesforce Certified Platform Developer II (PDII) Exam Reference


What is the duration of the PDII Exam

  • Number of Questions: 60
  • Passing Score: 68%
  • Format: Multiple choices, multiple answers
  • Length of Examination: 120 minutes

 

We offers you the latest free online PDII dumps to practice: https://www.vcetorrent.com/PDII-valid-vce-torrent.html

Salesforce PDII Real Exam Questions Guaranteed Updated Dump: https://drive.google.com/open?id=1OjASxP6TgeQFmUz4EX7fboiKwFVGgzjx