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 278 discussion

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

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?

  • A. Use a wrapper class to format the values retrieved via SOQL.
  • B. Use the FORMAT() function in the SOQL query.
  • C. Use the FOR VIEW clause in the SOQL query.
  • D. Use REGEX expressions to format the values retrieved via SOQL.
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. Can't be C because FOR VIEW is used to reference the last time the record was accessed. https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_for_view_for_reference.htm
upvoted 1 times
...
AppleDash
1 year, 8 months ago
Should be B, since its asking about the format.
upvoted 3 times
elaine03
1 year, 6 months ago
No, it is not available in SOQL.
upvoted 1 times
AppleDash
1 year, 5 months ago
Yes it is. https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_format.htm
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 ...