Free CERTIFIED-PLATFORM-DEVELOPER-II Salesforce CERTIFIED-PLATFORM-DEVELOPER-II Practice Test Question

Loading demo links...

Showing 19–21 of 28 questions

Question 19 (Topic 1)

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. Which approach should the developer implement to ensure the Lightning application complies with the user's locale?

Select an option, then click Submit answer.

  • Create a Hierarchical custom setting to store user preferences
  • Use the $Locale value provider to retrieve the user preferences
  • Use the $User global variable to retrieve the user preferences
  • Use JavaScript in the component's controllers to format values
Question 20 (Topic 1)

Universal Containers stores user preferences in a Hierarchy Custom Setting, User_Prefs_c, with a Checkbox field, Show_Help_c. Company-level defaults are stored at the organizational level, but may be overridden at the user level. If a user has not overridden preferences, then the defaults should be used. How should the Show_Help_c preference be retrieved for the current user?

Select an option, then click Submit answer.

  • Boolean show = User_Prefs__c.getValues(UserInfo.getUserId()).Show_Help__c;
  • Boolean show = User_Prefs__c.getInstance().Show_Help__c;
  • Boolean show = User_Prefs__c.Show_Help__c;
  • Boolean show = User_Prefs__c.getValues().Show_Help__c;
Question 21 (Topic 1)

Customer billing data must be added and updated into Salesforce from a remote system on 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?

Select an option, then click Submit answer.

  • Batch Apex, where Salesforce pushes data to and pulls data from the remote systems
  • Replication via third-party ETL to push data into Salesforce and pull data out in batches
  • Salesforce Connect to push data to and pull data from the remote systems
  • Call-in directly from each remote system to Salesforce APIs to push and pull the data