DVA-C02 Development with AWS Services Practice Question
A developer needs to store session state for a stateless web application running on EC2 instances behind an Application Load Balancer. Which AWS service should the developer use to ensure session data is not lost if an instance fails?
⚠ Common exam trap
Do not assume ElastiCache is always the only choice for session state. While ElastiCache (Redis) is an excellent in-memory option, DynamoDB is the standard serverless, durable key-value store recommended for session state in many DVA-C02 scenarios because it requires no cluster provisioning or management.
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
✓
Amazon DynamoDB
Amazon DynamoDB is a fully managed NoSQL database that provides fast and predictable performance with seamless scalability. It is highly recommended for storing session state in stateless applications because it is serverless, highly durable, and requires no cluster management, unlike ElastiCache. AWS SDKs even offer native session state providers for DynamoDB.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Amazon S3
Why it's wrong here
Amazon S3 is an object storage service designed for highly durable, available, and scalable storage of static files and large objects. It operates with eventual consistency for some operations and does not provide the low-latency, in-memory access patterns required for real-time session state management. Using S3 for session state would introduce significant latency and complexity, making it unsuitable for interactive web applications that demand quick data retrieval.
- ✓
Amazon DynamoDB
Why this is correct
DynamoDB is a NoSQL key-value store, not a session state cache; it lacks the low-latency, in-memory read performance and automatic expiry mechanisms that ElastiCache provides for session management. It is tempting because it offers durable, scalable storage for any application data, and would be correct for persisting session history or user profiles across restarts, but the stem requires a solution that prevents data loss during instance failure without introducing the latency of disk-based persistence.
- ✗
Amazon ElastiCache
Why it's wrong here
Amazon ElastiCache is a fully managed, in-memory caching service that supports Redis and Memcached engines. It provides extremely low-latency data retrieval and high throughput, which is crucial for quickly accessing and updating user session data without impacting application responsiveness. By externalizing session state to ElastiCache, web servers remain stateless, significantly improving scalability, fault tolerance, and simplifying horizontal scaling for web applications.
- ✗
Amazon RDS
Why it's wrong here
Amazon RDS is a managed relational database service designed for structured data storage, complex querying, and strong transactional consistency and durability. While it can technically store session data, using a full relational database for this purpose introduces unnecessary overhead, higher latency due to disk-based operations, and increased cost compared to an in-memory cache. Its primary design is not optimized for the high-volume, low-latency key-value access patterns typical of session state management.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 1,135 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DVA-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 DVA-C02 exam.