Pass Salesforce PDII Actual Free Exam Q&As Updated Dump Nov 22, 2023 [Q72-Q90]

Share

Pass Salesforce PDII Actual Free Exam Q&As Updated Dump Nov 22, 2023

Latest PDII Actual Free Exam Updated 177 Questions

NEW QUESTION # 72
A company uses Salesforce to sell products to customers. They also have an external product information management (P1M) system that If the system of record for products.
A developer received these requirements
* Whenever a product is created or updated in the PIM, a product must be created or updated as a Product2 record in Salesforce and a PricebookEntry record must be created or updated automatically by Salesforce.
* The PricebookEntry should be created in a Pricebooki that is specified in a custom setting.
What should the developer use to satisfy these requirements?

  • A. Invocated Action
  • B. Sobject Tree
  • C. Apex REST
  • D. Event Monitoring

Answer: C


NEW QUESTION # 73
An Apex Trigger creates a Contract record every time an Opportunity record is marked as Closed and Won.
This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records is loaded, the Apex Trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex Trigger to accomplish this?

  • A. Use a Hierarchy Custom Setting to disable the Trigger for the user who does the data loading.
  • B. Use a List Custom Setting to disable the Trigger for the user who does the data loading.
  • C. Add a Validation Rule to the Contract to prevent Contract creation by the user who does the data loading.
  • D. Add the Profile Id of the user who does the data loading to the Trigger so the Trigger won't fire for this user.

Answer: A


NEW QUESTION # 74
A developer wrote an Apex method that makes an HTTP callout to an external system to get specialized data when a button is clicked from a custom Lightning web component on the Account record page.
Recently, users have complained that it takes longer than desired for the data to appear on the page after clicking the button.
What should the developer use to troubleshoot this issue?

  • A. Developer Console
  • B. Salesforce CU
  • C. Lightning Inspector
  • D. Event Logs

Answer: A


NEW QUESTION # 75
A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail.
What is the optimal way for a developer to fix the issue?

  • A. Create a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.
  • B. Change the required field to be a validation rule that excludes the System Administrator profile.
  • C. Add a before insert trigger on Account to set the value of the required field.
  • D. Add the required field to the data setup for all of the unit tests.

Answer: A


NEW QUESTION # 76
A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page.
Which design resource configuration should be used?
<design:component label="Account FS Component">

  • A. <design:attribute name="fieldSetName" Label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>FieldSet</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • B. <aura:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>FieldSet</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • C. <design:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>Account</sfdc:object>
    </sfdc:objects>
    </design:component>
    <design:component label="Account FS Component">
  • D. <aura:attribute name="fieldSetName" label="Field Set Name" />
    <sfdc:objects>
    <sfdc:object>Account</sfdc:object>
    </sfdc:objects>
    </design:component>

Answer: C


NEW QUESTION # 77
Which statement is true regarding savepoints?

  • A. Savepoints are not limited by DML statement governor limits
  • B. Reference to savepoints can cross trigger invocations.
  • C. Static variables are not reverted during a rollback.
  • D. You can roll back to any savepoint variable created In any order

Answer: D


NEW QUESTION # 78
The REST 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 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
  • C. 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
  • 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: D


NEW QUESTION # 79
Which use case can only be performed by using asynchronous Apex?

  • A. Scheduling a batch process to complete in the future
  • B. Updating a record after the completion of an insert
  • C. Calling a web service from an Apex trigger
  • D. Processing high volumes of records

Answer: C


NEW QUESTION # 80
A company wants to implement a new call center process for handling customer service calls. It requires service reps to ask for the caller's account number before proceeding with the rest of their call script.
Following best practices, what should a developer use to meet this requirement?

  • A. Flow Builder
  • B. Process Builder
  • C. Apex Trigger
  • D. Approvals

Answer: B


NEW QUESTION # 81
An Apex test method is testing a Visualforce page's controller, which queries for all Opportunities in Salesforce with StageName = 'Closed'. There are 10,000 existing records that match the criteria. What is the best practice for accessing data in the test method?

  • A. Create test data in the test method and use seeAllData=false.
  • B. Use @testVisible on the relevant property of the controller
  • C. Create test data in the test method and use seeAllData=true.
  • D. Query existing data in the test method and use seeAllData=true.

Answer: A


NEW QUESTION # 82
Which two relationship queries use the proper syntax? Choose 2 answers

  • A. SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
  • B. SELECT Id, Name, Account __r.Name FROM Contact WHERE Account r.Industry = 'Media'
  • C. SELECT Name, (SELECT LastName FROM Contacts) FROM Account
  • D. SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Media'

Answer: A,D


NEW QUESTION # 83
A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?

  • A. Profile
  • B. RecordType
  • C. User
  • D. Report

Answer: D


NEW QUESTION # 84
The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app, In addition to search, users of the app should be able to refer a fried, apply for a position, and review the status of their current submissions. The app should be made available in Salesforce Mobile, but offline access is not required.
Given these requirements, what is the recommended approach to developer the app?

  • A. Lightning Experience Builder
  • B. Lightning Web Components
  • C. Salesforce SDK
  • D. Visualforce

Answer: C


NEW QUESTION # 85
An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters. What is the optimal way to implement these requirements?

  • A. write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
  • B. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
  • C. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
  • D. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

Answer: A


NEW QUESTION # 86
Given the following code sample, what is a potential issue regarding bulk processing of records? trigger accountTestTrggr on Account (before insert, before update) Account acct = Trigger.new[0]; List <Contact> contacts = new List <Contact> ([select id, salutation, firstname, lastname,email from Contact where accountId
= :acct.Id]); for (Contact con: contacts) con.Title = 'Not Selected'; update contacts;

  • A. The code will not execute because the record in the list can be null and cause an exception.
  • B. The code will not execute because the list can be null and cause an exception.
  • C. The code will process one record that is called explicitly per execution.
  • D. The code will have to be invoked multiple times to process all the records.

Answer: C,D


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

Answer: A


NEW QUESTION # 88
If the "PageReference.setRedirect" Apex function is set to False, what type of request is made?

  • A. If PageReference points to the same controller and subset of extensions, postback request, otherwise get request
  • B. Postback request
  • C. Get request

Answer: A

Explanation:
Explanation/Reference:


NEW QUESTION # 89
What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

  • A. <apex: actionSupport action="{ ISave} " event=llonchange1' rerender="thePageBlock"/>
  • B. <apex: actionFunction action=" { ! Save} " name=!,Save" rerender=l,thePageBlock1'/>
  • C. <apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
  • D. <apex : commandFunction action=?l { ! Save} " value="Save" rendered^"thePageBlock"/>

Answer: A,B


NEW QUESTION # 90
......

Online Questions - Valid Practice PDII Exam Dumps Test Questions: https://actualtests.vceengine.com/PDII-vce-test-engine.html