Which code snippet correctly adds a link to the My Account page?

Prepare for the Salesforce Commerce Cloud Developer Certification Exam. Study with flashcards and multiple choice questions, each offering hints and detailed explanations. Elevate your skills and confidence to succeed on your exam!

The selected choice effectively creates a link to the My Account page using Salesforce Commerce Cloud's (SFCC) best practices for URL and resource management.

Utilizing URLUtils.url('Account-Show') generates a properly formatted URL that directs users to the My Account page. This ensures that the URL will be correct and will resolve as expected regardless of the current site context or locale settings.

Moreover, the inclusion of ${Resource.msg('myaccount','account',null)} retrieves a localized string associated with the key 'myaccount' from the resource bundle. By providing a string that is locale-aware, the link becomes accessible and relevant for users in different regions. This facilitates localization and enhances user experience across diverse marketplaces.

In contrast, other options either use incorrect syntax for URL generation or fail to deliver a properly localized link text. Adhering to standards for these attributes ensures that the resulting link is both functional and user-friendly.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy