ARC-300 practice question 5 of 15
During a technical review, the Client raises a need to display product pricing on the Product Detail Page (PDP) with discounted values per promotion…
Full set: 65 questionsThe most effective solution is to vary the page cache based on the promotion. This creates distinct cached versions of the Product Detail Page (PDP): one for when a specific promotion is active and another for when it is not. This technique, often implemented using cache variation rules (e.g., "Vary By" headers or platform-specific tags), ensures that the correct price is always displayed from the cache. It directly resolves the user experience issue of price discrepancies without sacrificing the performance benefits of caching, as the page remains fully cacheable for each variation.
1. Salesforce B2C Commerce Cloud Documentation
tag: The varyby attribute of the tag is designed for this exact purpose. It allows developers to create different cache versions of a page based on parameters like price books or promotions. This ensures that when a promotion changes
a new version of the page is cached and served.
Source: Salesforce B2C Commerce Developer Center
"Caching" section
documentation for the ISML tag.
2. Salesforce B2C Commerce Cloud Documentation
Caching Strategies: Official architect-level documentation emphasizes using cache variations to handle personalized or context-specific content
such as promotions
to maximize cache hits while ensuring data accuracy. Disabling caching is discouraged due to performance degradation.
Source: Salesforce Partner Community
"Salesforce B2C Commerce Architect: Caching Strategies" guide. (Note: Access is typically restricted
but the principle is a core part of the curriculum).
3. General Web Architecture Principles: The use of the Vary HTTP response header serves a similar function at the CDN or browser level
instructing caches to key content based on headers (e.g.
Cookie
Accept-Language). Varying by promotion is a specific application of this well-established architectural pattern for efficient caching of dynamic content.
Source: MDN Web Docs
"Vary" HTTP response header. (While not a vendor-specific source
it describes the universal web standard that underpins the recommended platform-specific solution).
Keep practicing
Take the free ARC-300 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ARC-300 practice questions
- Question 1An ecommerce site has dynamic shipping cost calculation. it allows the customers to see t…
- Question 4During code review, the Architect found that there is a service call on every visit of th…
- Question 6The storefront integrates with a REST based Address verification service (AVS) that uses …
- Question 7An Architect is documenting the technical design for a single B2C Commerce storefront. Th…
- Question 8Which two activities should an Architect encourage the replication team to follow based o…
- Question 9The following promotions are configured with no exclusivity (can be combined with any oth…
