AD0-E708 practice question 7 of 15
Your customer has recently experienced a large uptick in traffic and added a second server. After the new server went online users started reporting they are losing all their products in their cart. After an engineer investigates you are told the sessions are being written to the file system while the cache is written to Redis. Which two options will resolve the problem? Choose 2 answers
Full set: 61 questionsThe core issue is the loss of session data in a multi-server, load-balanced environment. When sessions are stored on the local file system, each server maintains its own separate session files. If a user's request is routed to a different server than their previous one, the new server cannot access the original session data, leading to a lost cart. To resolve this, session storage must be centralized so all web servers can access it. Both saving sessions to a shared database or to a Redis instance are standard, supported methods in Adobe Commerce for centralizing session storage and ensuring persistence across a server cluster.
A. A custom URL for the cart is a front-end or routing change and does not address the back-end session storage location.
B. Eliminating the load balancer would defeat the purpose of adding a second server for high availability and traffic distribution.
1. Adobe Commerce Developer Documentation
Configure sessions: "By default
Adobe Commerce stores sessions in files. This can be problematic in a production environment with a load balancer and multiple web nodes. A user’s subsequent request can go to a different node
resulting in the loss of the user’s shopping cart and other information. To avoid this
you can store sessions in the database or in Redis." This document explicitly identifies the problem and presents saving sessions to the database or Redis as the solutions.
Source: Adobe Commerce Developer Documentation > Configuration Guide > Performance > Configure sessions.
2. Adobe Commerce Developer Documentation
Session size best practices: This document outlines the different mechanisms for session storage available in Adobe Commerce. It lists "File system"
"Database"
and "Redis" as the primary options
confirming that the database and Redis are valid alternatives to the problematic file system storage in a multi-server setup.
Source: Adobe Commerce Developer Documentation > Best practices > Performance > Session size best practices > Session storage.
Keep practicing
Take the free AD0-E708 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E708 practice questions
- Question 1You decide to purchase an extension from the Magento Marketplace that fulfills a business…
- Question 2A merchant has asked you to make their site WCAG 2.0 sections A & AA compliant. What Kind…
- Question 3A merchant wants to notify their customer when a product comes back in stock. Allow Alert…
- Question 4A retail sells their products on their Magento Commerce site and in physical stores, they…
- Question 5A merchant has two websites, one for the US and one for the EU. The US website is availab…
- Question 6A merchant selling tools want a specialized shop for a specific profession. It requires a…
