B2C-Commerce-Architect Practice Test

Salesforce Spring 25 Release
64 Questions

A company manages its regional operations asseparate businesses. The regional sites (Site A and Site B) operate with:

• Separate realms
• Deferent code bates
• Different category navigation menus
• Frequent updates on category structure

The requirement from the business is to provide hreflanglink tags on category pages pointing to the same category on the other regional site. Example MTML for one of these links as displayed on Site A is:



Which solution should the Architect choose while keeping performance in mind?

A. Create a new customattribute on the Category. Populate the attribute with the other entire site URLs corresponding to locales In JSON Format. Use the attribute to display the hreflang link tag.

B. Create a new custom object type Populate the hreflang mapping for each category and locale in this custom object. Use the custom object to display the hreflang link tag.

C. Create additional locales in al realms create a new custom attribute on the category that is localized. Populate the attribute with the other site URLs and use it todisplay the hreflang tag.

D. Create a custom Business Manager module. Ask the business to maintain the hreflang link tags for each regional site in this Business Manager module.

A.   Create a new customattribute on the Category. Populate the attribute with the other entire site URLs corresponding to locales In JSON Format. Use the attribute to display the hreflang link tag.

Explanation:

✅ Option A: Create a new custom attribute on the Category. Populate the attribute with the other entire site URLs corresponding to locales in JSON Format. Use the attribute to display the hreflang link tag.
This solution is optimal for performance and scalability. By creating a custom attribute on the category and storing the hreflang links in a JSON format, the data can be easily retrieved and used to display the correct hreflang link tag on each category page. Storing this information as a JSON object makes it easy to map the category to other regional sites and locales without needing additional objects or complex queries. It keeps the solution simple, fast, and easy to maintain, especially if the category structure changes frequently. This approach also minimizes the number of database calls and ensures that the hreflang data is stored efficiently.

❌ Option B: Create a new custom object type. Populate the hreflang mapping for each category and locale in this custom object. Use the custom object to display the hreflang link tag.
While this approach could work, it is less efficient than using a custom attribute. Storing hreflang links in a custom object type requires more complex management and adds overhead for every API call, as custom objects are usually stored in a more resource-intensive way than simple attributes. It could lead to unnecessary database lookups for each page, negatively impacting performance, especially if there are frequent updates to the category structure.

❌ Option C: Create additional locales in all realms, create a new custom attribute on the category that is localized. Populate the attribute with the other site URLs and use it to display the hreflang tag.
This approach is not ideal because creating additional locales in all realms adds unnecessary complexity. It would require managing multiple locales for each site, which could be cumbersome to maintain, especially given the frequent updates in the category structure. Furthermore, this method would increase the administrative overhead, as the hreflang links would need to be manually managed across all the different locales and realms. It's not the most efficient solution in terms of performance or maintainability.

❌ Option D: Create a custom Business Manager module. Ask the business to maintain the hreflang link tags for each regional site in this Business Manager module.
While this solution allows for manual maintenance of hreflang tags, it introduces a heavy manual management process that could become error-prone and hard to scale. The business would need to manually update the hreflang tags in the Business Manager every time the category structure changes. This is not efficient for maintaining and updating links across multiple regional sites, especially with frequent changes to the category structure. It also introduces more complexity in managing the hreflang tags rather than automating this process.

B2C-Commerce-Architect Practice-Test - Home Previous
Page 4 out of 64 Pages