Courseiva

SOA-C02 Reliability and Business Continuity Practice Question

A company runs a critical application on EC2 instances in an Auto Scaling group. The application stores state information locally on the instance. The SysOps administrator needs to ensure that if an instance fails, the state is not lost. What should the administrator do?

⚠ Common exam trap

SOA-C02 often tests the misconception that EBS volumes with DeleteOnTermination=false provide high availability for state; candidates must recognize that shared, external state stores are required for Auto Scaling groups.

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

✓

Move the state data to an external data store such as ElastiCache or RDS.

State stored locally on an EC2 instance is ephemeral and lost if the instance fails or is terminated. The most reliable solution is to externalize state to a durable, shared data store such as ElastiCache (for session state) or RDS (for relational state). This decouples the application from the instance lifecycle and allows any instance in the Auto Scaling group to serve requests.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Move the state data to an external data store such as ElastiCache or RDS.

    Why this is correct

    Externalizing state to a managed service like ElastiCache or RDS decouples application data from the EC2 instance lifecycle, so any instance failure, termination, or replacement has no impact on data availability. ElastiCache provides extremely low-latency in-memory state ideal for session/state caching, while RDS offers durable, ACID-compliant storage with automated backups and multi-AZ failover. This design pattern makes the application stateless at the instance tier, enabling Auto Scaling, rolling deployments, and immediate recovery because new instances simply reconnect to the same external state store.

  • ✗

    Attach an EBS volume and set the 'DeleteOnTermination' flag to false.

    Why it's wrong here

    Setting DeleteOnTermination=false preserves the EBS volume after instance termination, but the volume remains bound to a single Availability Zone and cannot be attached to a different instance across AZs without an elaborate snapshot/restore workflow. Even within the same AZ, you must manually detach the volume from the terminated instance and attach it to a replacement, causing a significant recovery delay, and the data could be inconsistent if the crash occurred mid-write. EBS volumes are also exclusively attachable to one instance at a time, so this approach cannot support horizontal scaling or automated failover, which is essential for a critical application.

  • ✗

    Use instance store volumes for the state data.

    Why it's wrong here

    Instance store volumes are ephemeral block storage physically attached to the host server; their data persists only during the life of the running instance. If the instance is stopped, terminated, or experiences a host failure, all data on instance store volumes is permanently lost. This is fundamentally unsuitable for any state that must survive instance replacement, and using it would actually increase risk rather than provide resilience. Instance store should be reserved for transient data such as caches, buffers, or scratch files that can be rebuilt or repopulated from other sources.

  • ✗

    Use Amazon SQS to store the state data.

    Why it's wrong here

    Amazon SQS is a fully managed message queueing service designed for asynchronous decoupling of application components, not for storing authoritative application state. Messages are retained for a maximum of 14 days, can be consumed and deleted by consumers, and there is no query or indexed-lookup capability to retrieve historical state on demand. Storing state in SQS would require building a custom, fragile layer to mimic a database, and any consumption of the 'state' messages would inadvertently erase the data. Its delivery semantics (at-least-once, best-effort ordering) make it inappropriate for state that must be consistent and immediately accessible.

About these practice questions

This SOA-C02 question is part of Courseiva's 1,169-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way 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. A company runs a stateful application on EC2 instances in an Auto Scaling group. The application maintains state in memory. The SysOps administrator wants to ensure that when an instance is terminated, the state is preserved and a new instance can resume operation. Which approach should the administrator use?

hard
  • ✓ A.Use an Auto Scaling lifecycle hook to offload state before termination.
  • B.Use a warm standby instance that takes over when the primary fails.
  • C.Configure the EC2 instance to run a script on shutdown to save state locally.
  • D.Enable connection draining on the ALB.

Why A: An Auto Scaling lifecycle hook can be configured to execute a custom action (e.g., offloading in-memory state to Amazon S3 or ElastiCache) before the instance is terminated. The lifecycle hook places the instance in a 'terminating:wait' state, allowing the administrator to run a script that preserves state, and then completes the termination via CompleteLifecycleAction. This ensures state is saved before the instance is fully terminated, enabling a new instance to resume operation.

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

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.