2023 Valid PDII FREE EXAM DUMPS QUESTIONS & ANSWERS [Q47-Q65]

Share

2023 Valid PDII FREE EXAM DUMPS QUESTIONS & ANSWERS

Free PDII Exam Braindumps Salesforce  Pratice Exam


Once the candidate passes the PDII exam, they will be recognized as a Salesforce Certified Platform Developer II. Salesforce Certified Platform Developer II (PDII) certification is a valuable asset to developers looking to showcase their advanced skills in Salesforce development. Salesforce Certified Platform Developer II (PDII) certification demonstrates that the developer has the knowledge and expertise to design, develop, and maintain complex applications on the Salesforce platform. Salesforce Certified Platform Developer II (PDII) certification can open doors to new opportunities and career advancements for developers looking to enhance their skills in Salesforce development.

 

NEW QUESTION # 47
A developer has working business logic code, but sees the following error in the test class:
You have uncommitted work pending. Please commit or rollback before calling out. What is a possible solution?

  • A. Set seeAIIData to "true" at the top of the test class, since the code does not fail in practice.
  • B. Use test.IsRunningTest() before making the callout to bypass it in test execution.
  • C. Call support for help with the target endpoint, as it is likely an external code error.
  • D. Rewrite the business logic and test classes with TestVisible set on the callout.

Answer: B


NEW QUESTION # 48
A company wants to create a dynamic survey that navigates users through a different series of questions based on their previous responses. What is the recommended solution to meet this requirement?

  • A. Custom Lightning application
  • B. Lightning Process Builder
  • C. Visualforce and Apex
  • D. Dynamic Record Choice

Answer: D


NEW QUESTION # 49
A developer implemented a custom data table in a Lightning web component with filter functionality.
However, users are submitted support tickets about long load times when the filters are changed. The component uses an Apex method that is called to query for records the selected filters.
What should the developer do to improve performance of the component?

  • A. Use a selective SOQL query with a custom index.
  • B. Return all records into a list when the component is created and filter the array in JavaScript
  • C. Use SOSL to Query the records on filter change.
  • D. Use setStorable( ) in the Apex method to store the response in the client-side cache

Answer: D


NEW QUESTION # 50
A developer created a Lightning web component that uses a Lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.
Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?

  • A. Client-side validation
  • B. Process Builder
  • C. Apex REST
  • D. Custom validation rules

Answer: A


NEW QUESTION # 51
A developer needs to compile a list of 105 for all Accounts and Opportunities that have the word "Acme" in their name' and are created today. Which statement provides the developer with the 105?

  • A. FIND "Acme"IN NAME FIELDS RETURNING Account (Id WHERE CreatedDate = TODAY), Opportunity (Id WHERE CreatedDate = TODAY)
  • B. SELECT Id, AccountId FROM Opportunity WHERE CreatedDate = TODAY AND ( Name LIKE
    '%Acme'a' Account.Name LIKE '%Acme%'
  • C. SELECT Id, ( SELECT Id FROM Opportunities WHERE CreatedDate = TODAY ) FROM Account WHERE " CreatedDate = TODAY AND Name LIKE '%Acme%'
  • D. FIND "Acme" IN NAME FIELDS RETURNING Account (Id), Opportunity (Id) WHERE CreatedDate TODAY

Answer: A


NEW QUESTION # 52
A developer needs test data for Apex test classes.
What can the developer use to provide test data to the test methods? (Choose two.)

  • A. List<sObject> Is = Test.loadData (Lead.sObjectType, 'myTestLeads');
  • B. List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads');
  • C. myDataFactory.createTestRecords (10)
  • D. Database.createTestRecords (10)

Answer: A,C


NEW QUESTION # 53
What is the transaction limit for the number of records using QueryLocator?

  • A. 100,000
  • B. There is no limit
  • C. 5,000,000
  • D. 50,000
  • E. 50,000,000

Answer: E

Explanation:
Explanation
Explanation/Reference:
"Scope" parameter in "executeBatch" can be set up to 2,000 records


NEW QUESTION # 54
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.
What should the developer do to speed up test execution''

  • A. Define a method that creates test data and annotate with @testSetup.
  • B. Reduce the amount of test methods in the class.
  • C. Ensure proper usage of test data factory In all test methods.
  • D. Define a method that creates test data and annotate with @createData

Answer: A


NEW QUESTION # 55
A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to SI,000,000. However, this criteria value can change over time.
There is a new requirement to also display high value opportunities In a Lightning web component.
Which two actions should the developer take to prevent the business logic that obtains the high value opportunities from being repeated in more than one place?
Choose 2 answers

  • A. Create a helper class that fetches the high value opportunities.
  • B. Use custom metadata to hold the high value amount.
  • C. Call the trigger from the Lightning web component.
  • D. Leave the business logic code Inside the trigger for efficiency.

Answer: A,B


NEW QUESTION # 56
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers

  • A. External Apps can use the standard Streaming API.
  • B. Internal Apps can use Process Builder.
  • C. internal Apps can use Outbound Messages
  • D. External Apps require a custom Apex web service.

Answer: B,D


NEW QUESTION # 57
How should a developer reference a third-party JavaScript library from a Lightning component?

  • A. From a document
  • B. From an asset file
  • C. From a third-party URL
  • D. From a static resource

Answer: D


NEW QUESTION # 58
There are user complaints about slow render times of a custom data table within a Visualforce page that loads thousands of Account records at once. What can a developer do to help alleviate such issues?

  • A. Use the transient keyword in the Apex code when querying the Account records.
  • B. Upload a third-party data table library as a static resource.
  • C. Use JavaScript remoting to query the accounts.
  • D. Use the standard Account List controller and implement pagination.

Answer: D


NEW QUESTION # 59
A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience.
What should the developer override the Case New Action with to satisfy the requirements?

  • A. Lightning Page
  • B. Lightning Flow
  • C. Lightning Component
  • D. Lightning Record Page

Answer: C


NEW QUESTION # 60
The Account object has a field, auais_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Ruditor_c, that is the assigned auditor.
When an Account is initially created, the user specifies the Audit_Code__c. Each User in the org has a unique text field, Rudi.
that is used to automatically assign the correct user to the Account's Auditor__c field.

What should be changed to most optimize the code's effidency?
Choose 2 answers

  • A. Build a Mep<String, list<Account>> of audit code to accounts,
  • B. Add a WHERE clause to the SOQL query to filter on audit codes.
  • C. Sulld eMepcie, List<String> of Account Ic to aucit codes.
  • D. Add an initial SOQL query to get all distinct audit codes.

Answer: A,B


NEW QUESTION # 61
A developer 15 tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabs and interact with the Salesforce Console APIs.
What arm two approaches a developer can take to build the application and support the business requirements?
Choose 2 answers

  • A. Create the application using Aura Components wrapped in Lightning Web Components.
  • B. Create the application using Lightning web Components wrapped in Aura Components.
  • C. Create application using Aura Components.
  • D. Create the application using Lightning Experience Builder.

Answer: B,C


NEW QUESTION # 62
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 'PI'IT is set to NULL
  • B. An unhandled DML exception is thrown and no contact records are inserted
  • C. Both inserts succeed and the contact record that has the Zone value of PITT is truncated
  • D. A partial insert succeeds and the contact record that has the Zone value 'IAD1 is inserted

Answer: B


NEW QUESTION # 63
As part of a new integration, a developer is asked to implement a new custom search functionality that is capable of performing unrestricted queries and can account for all values within a custom picklist field, type__z, on the Opportunity object. The search feature must also account for NULL values.
The organization-wide default for the Opportunity object is set to Public Read-Only, and a new custom index has.
been created for the Type__c field. There are more than 5 million Opportunity records within the environment.
and a considerable amount of the existing records have NULL values for the picklist
Which technique should the developer implement to maximize performance when querying NULL values?

  • A. Perform two SOQL queries; one to query Opportunities where Type__c - NULL, and another to query where Type_: - HBLL, then join the result set using Apex.
  • B. Create a formula field that substitutes NULL values for a string of text, create an index for the formula field, then use the formula within the WHERE clause.
  • C. Use a SOSL query to return ALL opportunities that have a value of NULL in any field.
  • D. Use the OS operator to combine WHERE clauses to strictly search for each value within the picklist, including Type__c ' NULL.

Answer: A


NEW QUESTION # 64
The Metadata API...

  • A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches
  • B. Is used to to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to allows you to maintain passwords, perform searches, and much more
  • C. Is used to 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
  • D. 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

Answer: C


NEW QUESTION # 65
......

Prepare For Realistic PDII Dumps PDF - 100% Passing Guarantee: https://www.surepassexams.com/PDII-exam-bootcamp.html

Practice Test for PDII Certification Real 2023 Mock Exam: https://drive.google.com/open?id=1dDP-Hb2NP13WcfJhsW1igFOl1GvQEx7y