100% Accurate Answers! Jan-2024 PDII Actual Real Exam Questions [Q18-Q35]

Share

100% Accurate Answers! Jan-2024 PDII Actual Real Exam Questions

Best Value Available! 2024 Realistic Verified Free PDII Exam Questions

NEW QUESTION # 18
A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.

The callousUtil.makeRestCallout fails with a "You have uncommitted work pending. Please commit or rollback before calling cut' error.
What should be done to address the problem?

  • A. Change the callousUtil makeRestCallout to an @InvocsblsMethod method.
  • B. Remove the Database. setSavepoint and Database. rollback.
  • C. Change the CallousUtill .makeRestCallout to an @future method.

Answer: C


NEW QUESTION # 19
A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.

The CalloutUtil. makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error. What should be done to address the problem?

  • A. Change the CalloutUtil.makeRestCallout to an @future method
  • B. Remove the Database.setSavepoint and Database.rollback.
  • C. Move the CalloutUtil.makeRestCallout method call below the catch block.
  • D. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.

Answer: A


NEW QUESTION # 20
What is the transaction limit on the number of @future invocations?

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

Answer: E

Explanation:
Explanation/Reference:


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

Answer: D


NEW QUESTION # 22
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: A


NEW QUESTION # 23
Universal Containers wants to use a Customer Community with Customer Community Plus licenses to allow their customers access to track how many containers they have rented and when they are due back, Universal Containers uses a Private sharing model for External users.
Many of their customers are multi-national corporations with complex Account hierarchies. Each account on the hierarchy represents a department within the same business.
One of the requirements is to allow certain community users within the same Account hierarchy to see several departments' containers, based on a custom junction object thatrelated the Contact to the various Account records that represent the departments.
Which solution solves these requirements?

  • A. A Lightning web component on the Community Home Page that uses Lightning Data Services.
  • 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 on owner
  • D. An Apex trigger that creates Apex managed sharing records based on the junction object's relationships

Answer: D


NEW QUESTION # 24
Which of the following variables are not transmitted in the view state? Choose two answers

  • A. Public
  • B. Transient
  • C. Static
  • D. Private

Answer: B,C


NEW QUESTION # 25
Exhibit.

A developer created a JavaScript function as a part of a Lightning web component (LWC) that surfaces information... about leads by imperatively calling getFetchLeadList when certain criteria are met.
What are these changes the developer should implement in the Apex class above to ensure the LWC can displ... data efficiently while preserving security?
Choose 3 answers

  • A. Implement the without sharing keyword in the class declaration.
  • B. Annotate the Apex method with 8AuraEnabled (Cacheable-true).
  • C. Use the WITH SECURITY_ENFORCED clause within the SOQL query.
  • D. Implement the with sharing keyword in the class declaration.
  • E. Annotate the Apex method with gAuraEnabled-

Answer: B,C,D


NEW QUESTION # 26
A developer is tasked with creating a Lightning web component that is responsive on various devices.
which two components should help accomplish this goal?
Choose 2 answers

  • A. lightning-input-location
  • B. lightning-navigation
  • C. lightning-layout
  • D. lightning-layout-item

Answer: C,D


NEW QUESTION # 27
What is the correct way to fix this?

  • A. Add Test_startTest() before and add Test. stopTest() after Line 18 of the code.
  • B. Use Limits.getlimitQueries() to find the total number of queries that can be issued.
  • C. Add Test.startTest() before and add Test. stopTest() after both Line 7 and Line 20 of the code.
  • D. Change the DataFactory class to create fewer Accounts so that the number of queries in the trigger is reduced.

Answer: A


NEW QUESTION # 28
A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress," or Fulfilled and a lookup field, Contact_c, to Contact.
Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?

  • A. SELECT Contact_c From order_c Where id NOT IN (SELECT id FROM_c Where States_c + Fulfilled')
  • B. SELECT iD FROM Contact WHERE id NOT IN (SELECT id From order_c WHERE_c = Fulfilled')
  • C. SELECT Contact_c FROM Order_c Where Status_c <> ;Fulfilled'
  • D. SELECT id FROM Contact WHERE id NOT IN (SELECT Contact _c FROM order_c Where Status_c
    = fulfilled')

Answer: D


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

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

Answer: A


NEW QUESTION # 30

A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?

  • A. Change the default for showContacrlnfo to
  • B. Move the contents of <c: concacclnfo into the component.
  • C. Change the type of contactlnfo to "Map".
  • D. Add a change event handler for showContactinfo

Answer: A


NEW QUESTION # 31
A comply his reference data stored m multiple custom metadata records that represent del auh information and delete behavior for certain geographic regions.
When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message.
Depending on company personnel resources, what are two ways to
automate this?
Choose 2 answers

  • A. Apex trigger
  • B. Remote action
  • C. Flow Builder
  • D. Apex mvocaWe method

Answer: A,C


NEW QUESTION # 32
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: D


NEW QUESTION # 33
A developer receives a LimitException: Too many query rows: 50001 error when running code.
What debugging approach using the Developer Console provides the fastest and most accurate mechanism to identify a specific component that may be returning an unexpected number of rows?

  • A. Count the number of Row Limit warning messages in the Debug Logs
  • B. Use the Execution Overview to see the number of rows returned by each Executed Unit
  • C. Add System.debug(System.getQueryRows()) to the code to track SOQL usage
  • D. Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query

Answer: D


NEW QUESTION # 34
A developer has built a multi-page wizard using a single Custom Controller to query and update data. Users are complaining that the pages are loading slowly.
What will improve performance? (Choose three.)

  • A. Using actionRegion and rerender
  • B. Turning off the standard stylesheet
  • C. Reducing the view state
  • D. Setting the Apex Page attribute cache=true
  • E. Using selective queries

Answer: C,D,E


NEW QUESTION # 35
......


Salesforce Certified Platform Developer II (PDII) is a highly valued certification that validates the skills and knowledge of experienced Salesforce developers. Salesforce Certified Platform Developer II (PDII) certification is designed for professionals who have already earned the Salesforce Certified Platform Developer I credential and are looking to further advance their careers in this field. The PDII exam tests the developers’ expertise in developing advanced customizations using Apex and Visualforce, as well as their ability to design and deploy complex business logic and security models.


The Salesforce PDII exam consists of 60 multiple-choice questions and five coding challenges that need to be completed within three and a half hours. The coding challenges are designed to test the candidate's ability to solve complex problems using Apex, Visualforce, and Lightning Components.

 

Actual Questions Answers Pass With Real PDII Exam Dumps: https://www.freepdfdump.top/PDII-valid-torrent.html

Pass Your Exam Easily! PDII Real Question Answers Updated: https://drive.google.com/open?id=1FCw4NmcDkj34wDy7-tiFE0vlj100knnL