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 questions
During a technical review, the Client raises a need to display product pricing on the Product Detail Page (PDP) with discounted values per promotion. The Client notes customers complained of bad user experiences in the past when they would add a product to the basket from the cached PDP and then see a higher price when they started checkout as the promotion had expired. What should the Architect suggest be implemented for this given that performance should be minimally impact?
Answer options
A: Remove caching of the product page during the promotion.
B: Adjust the PDP to have a low caching period during the promotion.
C: Modify the page to vary the cache by price and promotion. Correct answer
D: Create a separate template or view based on the promotion.
Correct Answer:
C. Modify the page to vary the cache by price and promotion.
Explanation

The 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.

References

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).

Scroll to Top