Get Latest Jan-2024 Real PDII Exam Questions and Answers FREE
Truly Beneficial For Your Salesforce Exam (Updated 177 Questions)
NEW QUESTION # 87
A developer created a Lightning web component that uses a lightning-record-edit-form t collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record.
complain that they only see one error message at a time about their input when trying to save a Lead record.
What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?
- A. Apex trigger
- B. External JavaScript library
- C. Try/catch/finally block
- D. Validation rules
Answer: B
NEW QUESTION # 88
Customer billing data must be added and updated into Salesforce from a remote system on a weekly basis.
Additionally, customer activity information must be extracted from Salesforce and put it into an on-premises data warehouse on a weekly basis.
Which approach should be used to import data into Salesforce and export data out of Salesforce, taking into consideration that these imports and exports can interfere with end-user operations during business hours and involve large amounts of data?
- A. Batch Apex, where Salesforce pushes data to and pulls data from the remote systems
- B. Salesforce Connect to push data to and pull data from the remote systems
- C. Call-in directly from each remote system to Salesforce APIs to push and pull the data
- D. Replication via third-party ETL to push data into Salesforce and pull data out in batches
Answer: D
NEW QUESTION # 89
Which of the following exceptions cannot be caught and will force an error? (Choose three.)
- A. DMLException
- B. License exceptions
- C. AssertException
- D. ListException
- E. LimitException
- F. SObjectExceptions
Answer: B,C,E
Explanation:
Reference:
SObjectException occurs when accessing a field not queried, or you try to change a field during the
wrong dml statement (i.e. an edit-only field being set on insert)
Custom exceptions must extend the "Exception" class
NEW QUESTION # 90
What is the transaction limit on the number of "sendEmail" method calls?
- A. 0
- B. There is no limit
- C. 1
- D. 2
- E. 3
Answer: D
Explanation:
The reserveEmailCapacity methods let you declare how many emails you want to send prior to actually sending, allowing you to handle limit errors prematurely
NEW QUESTION # 91
Which two relationship queries use the proper syntax? Choose 2 answers
- A. SELECT Name, (SELECT LastName FROM Contacts) FROM Account
- B. SELECT Id, Name, Account __r.Name FROM Contact WHERE Account r.Industry = 'Media'
- C. SELECT Name, (SELECT LastName FROM Contacts__r) FROM Account
- D. SELECT Id, Name, Account.Name FROM Contact WHERE Account.Industry = 'Media'
Answer: A,C
NEW QUESTION # 92
The Metadata API...
- A. 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
- B. 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
- C. 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
- D. 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
Answer: B
NEW QUESTION # 93
Refer to the component code and requirements below:
Requirements:
1. For mobile devices, the information should display In three rows.
2. For desktops and tablets, the information should display in 2 single row.
Requirement 2 is not displaying as desired.
Which option has the correct component code to meet the requirements for desktops and and tablets?
- A.

- B.

- C.

- D.

Answer: B
NEW QUESTION # 94
Which method should be used to convert a Date to a String in the current user's locale?
- A. Date.parse
- B. String. valueOf
- C. String.format
- D. Date.format
Answer: D
NEW QUESTION # 95
Where in a query can you use Geolocation and Distance? (Choose two.)
- A. Filter clause
- B. Group By clause
- C. Select clause
- D. Order By clause
Answer: A,D
NEW QUESTION # 96
A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.
Which two lines must change in the above ode to make the Apex method able to be wired?
Choose 2 answers
- A. Add public to line 04.
- B. Add AuraEnanled(cacheabletrue) to the line 08
- C. Remove private from line 09.
- D. Add @AuraEnabled (cacheabletrue) to line 03.
Answer: A,D
NEW QUESTION # 97
How can Apex class functionality be exposed for invocation from a Lightning process? Choose 2 answers
- A. Implement the Process.Plugin interface.
- B. Expose the class as a custom REST API.
- C. Extend the ProcessInvocable base class.
- D. Use the @InvocableMethod annotation.
Answer: A,D
NEW QUESTION # 98
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 will return a unique list of all the Contact records that have no 'Fulfilled' Orders?
SELECT Id FROM Contact WHERE Id NOT IN (SELECT Id FROM Order__c WHERE
- A. Where Status__c = 'Fulfilled')
- B. WHERE Status__c = 'Fulfilled')
SELECT Contact__c FROM Order__c WHERE Id NOT IN (SELECT Id FROM Order__c - C. SELECT Id FROM Contact WHERE Id NOT IN (SELECT Contact__c FROM Order__c
- D. Status__c = 'Fulfilled')
SELECT Contact__c FROM Order__c WHERE Status__c <> 'Fulfilled'
Answer: A
NEW QUESTION # 99
How can the DISTANCE and GEOLOCATION functions be used in SOQL queries? (Choose two.)
- A. To get the distance results from a latitude and longitude
- B. To order results by distance from a latitude or longitude
- C. To filter results based on distance from a latitude and longitude
- D. To group results in distance ranges from a latitude and longitude
Answer: B,C
NEW QUESTION # 100
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.

Answer: B
NEW QUESTION # 101
What is a potential design issue with the following code? trigger accountTrigger on Account (before update) { Boolean processOpportunity = false; List<opportunity> opptysClosedLost = new List<opportunity>(); List<opportunity> lstAllOpp = [select StageName from Opportunity where accountId IN
:Trigger.newMap.keySet()]; if(!lstAllOpp.isEmpty()) processOpportunity = true; while(processOpportunity) { for(opportunity o : lstAllOpp) { if(o.StageName == 'Closed - Lost') opptysClosedLost.add(o); processOpportunity = false; } } if(!opptysClosedLost.isEmpty() delete opptysClosedLost;
- A. The code will result in a System.DmlException:Entity_is_Deleted error.
- B. The code Will result in a System.LimitException : Too many script statements error.
- C. SOQL could be avoided by creating a formula field for StageName in Account from the related Opportunity.
- D. The code will result in a System.LimitException: Apex CPU time limit exceeded error.
Answer: D
NEW QUESTION # 102
A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available. What change should be applied to the component?
- A. Delete the component, metadata, and Apex controller and recreate them.
- B. Refresh the sandbox and upgrade it to the latest API version.
- C. Expose it in the markup using the implements and access attributes.
- D. Look for errors in the logic in the JavaScript controller.
Answer: C
NEW QUESTION # 103
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?
- A. Decorate the server-side method with (static=false)
- B. Add static to the server-side method signature.
- C. Change the function signature to be private static.
- D. Decorate the server-side method with (static=true).
Answer: B
NEW QUESTION # 104
......
PDII dumps Free Test Engine Verified By It Certified Experts: https://pass4sure.dumpstests.com/PDII-latest-test-dumps.html