Question 1,059 of 1,546
Reliability and Business ContinuitymediumMultiple ChoiceObjective-mapped

Session Externalization with ElastiCache — Handle Deployments Gracefully | AWS SysOps Associate Explained

This SOA-C02 practice question tests your understanding of reliability and business continuity. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company runs a critical web application on EC2 instances behind an Application Load Balancer (ALB) across three Availability Zones. The application stores session data in memory on the EC2 instances. During a deployment, a new version of the application is released by terminating and replacing instances. Users report that they are unexpectedly logged out during the deployment. What should a SysOps administrator do to improve the reliability of the application during deployments?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use an ElastiCache cluster to store session state externally.

Option D is correct because storing session state externally in an ElastiCache cluster decouples session data from individual EC2 instances. When instances are terminated and replaced during deployment, the new instances can retrieve session state from the shared ElastiCache cluster, preventing users from being logged out. This approach ensures that session data persists independently of the EC2 instance lifecycle, maintaining application reliability during rolling updates.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Reduce the deployment to a single Availability Zone to minimize instance churn.

    Why it's wrong here

    Reducing AZs decreases fault tolerance and reliability.

  • Store session data in an RDS Multi-AZ database.

    Why it's wrong here

    RDS is not optimized for high-throughput transient session data and adds latency.

  • Enable sticky sessions (session affinity) on the ALB.

    Why it's wrong here

    Sticky sessions tie a user to a specific instance; if that instance is terminated, the session is lost.

  • Use an ElastiCache cluster to store session state externally.

    Why this is correct

    Externalizing session state to ElastiCache ensures sessions survive instance replacements.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse sticky sessions (which only route traffic to the same instance) with external session storage, failing to realize that sticky sessions do not preserve session data when the instance itself is terminated.

Detailed technical explanation

How to think about this question

ElastiCache for Redis or Memcached provides sub-millisecond read/write performance, making it ideal for session state that must be accessed frequently by multiple instances. Under the hood, the ALB distributes requests across instances, and each instance reads/writes session data to the same ElastiCache cluster using a session handler configured in the application (e.g., PHP session handler for Redis). In a real-world scenario, this pattern is critical for auto-scaling groups where instances are frequently replaced, as it ensures zero session loss during scaling events or deployments.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SOA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SOA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SOA-C02 question test?

Reliability and Business Continuity — This question tests Reliability and Business Continuity — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use an ElastiCache cluster to store session state externally. — Option D is correct because storing session state externally in an ElastiCache cluster decouples session data from individual EC2 instances. When instances are terminated and replaced during deployment, the new instances can retrieve session state from the shared ElastiCache cluster, preventing users from being logged out. This approach ensures that session data persists independently of the EC2 instance lifecycle, maintaining application reliability during rolling updates.

What should I do if I get this SOA-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

4 more ways this is tested on SOA-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. An application running on EC2 instances stores session data in an attached EBS volume. The company wants to ensure session data is not lost if an instance fails. Which solution should the administrator implement?

medium
  • A.Move session storage to Amazon ElastiCache for Redis with replication.
  • B.Use EBS Multi-Attach to attach the volume to multiple instances.
  • C.Take frequent EBS snapshots of the volume.
  • D.Use a larger EC2 instance type with more memory.

Why A: Amazon ElastiCache for Redis with replication provides a highly available, in-memory data store that persists session data independently of EC2 instances. If an instance fails, the session data remains intact in the replicated Redis cluster, ensuring zero data loss and seamless failover. This decouples session state from ephemeral compute resources, aligning with the reliability and business continuity requirements.

Variation 2. A company is running a web application on EC2 instances in an Auto Scaling group behind an Application Load Balancer. The application stores session data on the local instance storage. Users are experiencing session loss during scaling events. What should a SysOps administrator do to maintain session persistence?

medium
  • A.Move session data to an ElastiCache for Redis cluster.
  • B.Increase the EC2 instance size to reduce the frequency of scaling events.
  • C.Attach an Amazon EBS volume to each instance and store session data there.
  • D.Enable sticky sessions on the Application Load Balancer.

Why A: Session data stored on local instance storage is ephemeral and lost when instances are terminated or replaced during scaling events. Moving session data to ElastiCache for Redis provides a centralized, durable, and low-latency session store that persists independently of EC2 instance lifecycles, ensuring session continuity across scaling operations.

Variation 3. A company runs a web application on EC2 instances in an Auto Scaling group behind an Application Load Balancer. The application stores session data on local instance storage. Users report that they are unexpectedly logged out during peak traffic. Which action should the SysOps Administrator take to improve reliability?

easy
  • A.Move the session storage to an instance store volume.
  • B.Enable sticky sessions on the Application Load Balancer.
  • C.Increase the size of the Auto Scaling group to handle peak traffic.
  • D.Configure an ElastiCache Redis cluster to store session state externally.

Why D: Storing session data on local instance storage is ephemeral; if an instance is terminated or replaced during scaling events, session data is lost, causing users to be logged out. Moving session state to an external, highly available service like ElastiCache Redis ensures persistence across instance lifecycles and improves reliability under peak traffic.

Variation 4. A company runs a web application on EC2 instances in an Auto Scaling group behind an Application Load Balancer. The application stores session data in an in-memory cache on the EC2 instances. During an instance refresh, users lose their session data. Which action should be taken to improve reliability without major application changes?

easy
  • A.Use ElastiCache for Memcached with auto-discovery.
  • B.Move session state to Amazon ElastiCache for Redis.
  • C.Increase the minimum size of the Auto Scaling group.
  • D.Enable sticky sessions (session affinity) on the ALB target group.

Why B: Option B is correct because Amazon ElastiCache for Redis provides a fully managed, external, and highly available in-memory data store that can be used to persist session state outside of the EC2 instances. By moving session data to Redis, the session state survives instance refreshes, terminations, or scaling events without requiring any changes to the application's session management logic beyond pointing to the Redis endpoint. This decouples session state from the compute layer, ensuring reliability and data durability during Auto Scaling lifecycle events.

Keep practising

More SOA-C02 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.