nerdexam
Salesforce

PDII · Question #259

PDII Question #259: Real Exam Question with Answer & Explanation

The correct answer is B. Use the FORMAT() function in the SOQL query.. See the full explanation below for the reasoning.

Question

In an organization that has multi-currency enabled, a developer is tasked with building a Lightning Component that displays the top ten Opportunities most recently accessed by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale. What is the most effective approach to ensure values displayed respect the user's locale settings?

Options

  • AUse a wrapper class to format the values retrieved via SOQL.
  • BUse the FORMAT() function in the SOQL query.
  • CUse the FOR VIEW clause in the SOQL query.
  • DUse REGEX expressions to format the values retrieved via SOQL.

Community Discussion

No community discussion yet for this question.

Full PDII Practice