AD0-E722 practice question 7 of 10
A merchant is using a unified website that supports native Adobe Commerce B2B and B2C with a single store view. The merchant's objective is to…
Full set: 50 questionsThe core challenge is to vary content within a globally cached block (the header) based on user type (B2B vs. B2C) without degrading performance. Option (B) is the direct, low-level solution. Creating a custom HTTP Context variable allows the full-page cache (Varnish) to store and serve distinct cached versions of the page for B2B and non-B2B users. This is the standard, performant architectural pattern for cache variation in Adobe Commerce. Option (D) provides a higher-level, feature-driven solution. Customer Segments are designed for personalization and are integrated with the full-page cache. A custom segment condition can identify B2B users without relying on customer groups, enabling the display of targeted content in a cache-friendly manner.
A. Switching the entire theme is architecturally excessive and inefficient for a minor header modification.
C. Using session data directly in a block requires disabling caching for that block, causing significant performance degradation on every page.
E. Checking user status directly within the block class forces the block to be uncacheable ("hole-punched"), which severely harms site-wide performance.
1. Adobe Commerce Developer Documentation - Content variation: This document explicitly details the use of HTTP context variables to serve different cached content. It states, "The value of this variable is used to create a separate cache variation for each different value." This directly supports option B as the correct mechanism for cache-aware content variation.
Source: Adobe Commerce Developer Documentation, Frontend Developer Guide > Varnish > Content variation.
2. Adobe Commerce Developer Documentation - Private content: This page explains the concept of "hole punching" and why it should be avoided for performance reasons. It clarifies that blocks accessing session data or other private information must be marked uncacheable, which validates why options C and E are incorrect.
Source: Adobe Commerce Developer Documentation, Frontend Developer Guide > Layout > Private content.
3. Adobe Commerce User Guide - Customer Segments: This guide describes how Customer Segments enable the display of dynamic content to specific customers. It notes that segment information is used by the full-page cache to serve the correct content, confirming that segments are a cache-aware solution, which supports option D.
Source: Adobe Commerce User Guide, Chapter: Customers > Customer Segments.
Keep practicing
Take the free AD0-E722 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E722 practice questions
- Question 3An Architect needs to integrate an Adobe Commerce store with a new Shipping Carrier. Cart…
- Question 4Due to a marketing campaign, a website is experiencing a very large number of simultaneou…
- Question 6In a custom module, an Architect wants to define a new xml configuration file. The module…
- Question 8An Adobe Commerce Architect is asked by a merchant using B2B features to help with a conf…
- Question 9An Adobe Commerce Architect is troubleshooting an issue on an Adobe Commerce Cloud projec…
