Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 210 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 210
Topic #: 1
[All Certified Platform Developer II Questions]

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?

  • A. Create a Hierarchical custom setting to store user preferences
  • B. Use the $Locale value provider to retrieve the user preferences
  • C. Use the $User global variable to retrieve the user preferences
  • D. Use JavaScript in the component's controllers to format values
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Sapphire808
1 year, 1 month ago
Selected Answer: B
B. $local is the most direct way to get to the localization settings. $user requires more mapping.
upvoted 1 times
...
AnhTH
3 years, 1 month ago
Correct answer is B $locale $User used on visualforce page, not in lightning
upvoted 3 times
...
Maleek100
3 years, 2 months ago
Its B if used in an Aura Component
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...