Question 862 of 1,000
mediummultiple choiceObjective-mapped

SAA-C03 Practice Question: ElastiCache Redis supports sorted sets (ZSET) for…

This SAA-C03 practice question tests your understanding of elasticache redis supports sorted sets (zset) for…. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: elastiCache Redis supports sorted sets (ZSET) for ordering data by score — ideal for session expiry queues. 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 needs to implement session management for a web application. Sessions must persist across multiple EC2 instances, survive EC2 failures, and be accessible with sub-millisecond latency. Sessions must also be sortable by last-access time to expire the oldest sessions first. Which caching solution should a solutions architect recommend?

Question 1mediummultiple choice
Full question →

A company needs to implement session management for a web application. Sessions must persist across multiple EC2 instances, survive EC2 failures, and be accessible with sub-millisecond latency. Sessions must also be sortable by last-access time to expire the oldest sessions first. Which caching solution should a solutions architect recommend?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Amazon DynamoDB with TTL enabled for session expiration

DynamoDB achieves single-digit millisecond latency, not sub-millisecond. It also lacks native sorted set operations. ElastiCache Redis provides the required sub-millisecond in-memory latency.

B

Best answer

Amazon ElastiCache for Redis with sessions stored as sorted sets

Redis provides sub-millisecond latency, sorted sets for ordering by last-access score, Multi-AZ replication, and external storage for cross-instance availability. All requirements are met.

C

Distractor review

ElastiCache for Redis with sticky sessions enabled on the Application Load Balancer

ALB sticky sessions pin clients to specific EC2 instances. If an instance fails, those sessions are lost. External Redis sessions (without ALB stickiness) are the correct cross-instance resilient approach.

D

Distractor review

Amazon ElastiCache for Memcached with session data stored as key-value pairs

Memcached supports only simple key-value pairs and cannot perform sorted set operations. Memcached also lacks replication — a node failure destroys all cached sessions.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Memcached and Redis are both ElastiCache engines, but they serve different needs. Any requirement involving sorted data, complex data structures, persistence, or replication eliminates Memcached. Redis sorted sets (ZSET) store members with numeric scores and support range queries — perfect for session expiry queues ordered by last-access timestamp.

Technical deep dive

How to think about this question

ElastiCache Redis vs Memcached: | Feature | Redis | Memcached | | Data types | Strings, lists, sets, sorted sets, hashes | Strings only | | Persistence | Yes (RDB, AOF) | No | | Replication/Multi-AZ | Yes | No | | Pub/Sub | Yes | No | | Multi-threading | No (single core) | Yes | Redis sorted set commands for sessions: ZADD sessions <timestamp> <session_id> ZRANGEBYSCORE sessions 0 <cutoff_time> -- get expired sessions ZREM sessions <session_id> -- remove session Sub-millisecond note: ElastiCache delivers microsecond-range latency for in-memory operations. DynamoDB achieves single-digit millisecond — faster than disk but slower than in-memory cache.

KKey Concepts to Remember

  • ElastiCache Redis supports sorted sets (ZSET) for ordering data by score — ideal for session expiry queues
  • Redis supports persistence (RDB snapshots, AOF) and Multi-AZ replication
  • Memcached supports only simple key-value pairs with no data structure operations
  • ElastiCache delivers sub-millisecond (microsecond) in-memory latency
  • Externalizing sessions to ElastiCache makes them available across all EC2 instances

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

ElastiCache Redis supports sorted sets (ZSET) for ordering data by score — ideal for session expiry queues

Related practice questions

Related SAA-C03 practice-question pages

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

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

Practice this exam

Start a free SAA-C03 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 SAA-C03 question test?

ElastiCache Redis supports sorted sets (ZSET) for ordering data by score — ideal for session expiry queues

What is the correct answer to this question?

The correct answer is: Amazon ElastiCache for Redis with sessions stored as sorted sets — Amazon ElastiCache for Redis satisfies all requirements: multi-instance session sharing (sessions stored externally), sub-millisecond latency, survival of EC2 failures (stored outside instances), and sorted sets (ZSET data structure) for ordering sessions by last-access score. Memcached supports only simple key-value pairs — it cannot perform sorted set operations to order sessions by last-access time. Memcached also lacks replication, meaning a node failure loses all cached sessions.

What should I do if I get this SAA-C03 question wrong?

Review elastiCache Redis supports sorted sets (ZSET) for ordering data by score — ideal for session expiry queues, then practise related SAA-C03 questions on the same topic to reinforce the concept.

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

Discussion

Loading comments…

Sign in to join the discussion.

This SAA-C03 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 SAA-C03 exam.