Salesforce PDII Sample Questions

Question # 11

A Salesforce developer is hired by a multi-national company to build a custom Lightning application that shows employees their employment benefits and earned commissions over time. The application must acknowledge and respect the user's locale context for dates, times, numbers, currency, and currency symbols. When using Aura components, which approach should the developer implement to ensure the Lightning application complies with the user's locale? 

A. Use the $User global variable to retrieve the user preferences.
B. Use the $Label global value provider.
C. Use the $Lacale value provider to retrieve the user preferences.
D. Create a Hierarchical custom setting to store user preferences.


Question # 12

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__c - 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 FROMCustomer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__c='Shoppers' 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__cLIKE 'Shop%' AND Transaction_Date__c=2019-05-31T00:00Z
C. SELECT Account__c, Program__c, Transaction_Date__c FROMCustomer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__cINCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z
D. SELECT Account__c, Program__c, Transaction_Date__c FROMCustomer_Transaction__b WHERE Account__c = '001R000000302D3' AND Program__cEXCLUDES ('Shoppers', 'Womens') AND Transaction_Date__c=2019-05-31T00:00Z


Question # 13

Universal Containers develops a Visualforce page that requires the inclusion of external JavaScript and C55 files. They want to ensure efficient loading and caching of the page. Which feature should be utilized to achieve this goal? 

A. ActionFunction
B. PageBlockTable
C. Static resources
D. RemoteAction


Question # 14

A software company uses a custom object, Defact__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect_ c has a related list of Reviewer < records, each with a lookup field to User that is used to indicate that the User will review the defect__c. What should be used to give the User on the Reviewer_c record read only access to the Defect__c record on the Reviewer_c record? 

A. Apex managed sharing
B. Criteria-based sharing
C. Lightning web component
D. View All on Defect__c


Question # 15

Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers 

A. SELECT Id FROM Account WHERE Name LIKE '!-NULL
B. SELECT Id FRCM Account WHERE Name != ’ ’
C. SELECT Id FRCM Account WHEP Name IN (List of Names) ANDCustomer_Number_c= 'ValueA
D. SELECT Id FROM Account WHERE II IK (List of Account Ida)


Question # 16

Universal Containers (UC) has an ERP system that stores customer Information, When an Account is created in Salesforce, the ERP system's REST endpoint for creating new customers must automatically be called with the Account information. If the call to the ERP system falls, the Account should still be created. Accounts in the UC org are only created, one at a time, by users in the UC customer on-boarding department. What should a developer implement to make the call to the ERP system's REST endpoint?

A. Custom objects
B. Custom settings
C. Custom metadata
D. Custom labels


Question # 17

Universal Containers (UC) has an ERP system that stores customer Information, When an Account is created in Salesforce, the ERP system's REST endpoint for creating new customers must automatically be called with the Account information. If the call to the ERP system falls, the Account should still be created. Accounts in the UC org are only created, one at a time, by users in the UC customer on-boarding department. What should a developer implement to make the call to the ERP system's REST endpoint? 

A. REST call from JavaScript
B. Headless Quick Action
C. Call a Queueable from a Trigger
D. Apex Continuation


Question # 18

What is the optimal way to fix this?

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


Question # 19

Given the following containment hierarchy: What is the correct way to communicate the new value of a property named ‘’passthrough’’ to my-parent-component if the property is defined within my-child-component?

 

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


Question # 20

Consider the Apex controller below, that is called from an Aura component.


What is wrong with this code?

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


1234Last ›

Download All Questions PDF Check Customers Feedbacks