Made with Palestinian hands Support EmuPath ☕

No results found.

Try another search or remove some filters.

All practice exams
Data / FOUR DIFFICULTY LEVELS

Redis Data & Operations

Practice Redis data structures, expiration, transactions, persistence and reliable application design with explained scenarios.

Four self-study difficulty levels, from basic concepts to advanced scenarios. Difficulty is an editorial guide, not an official certification ranking. Redis command and operational concepts. Examples do not assume a particular managed-service tier; configuration and deployment topology determine production behavior.

YOUR PRACTICE SPACE

Learn it. Test it. Understand it.

Choose your difficulty

Recognize core concepts and trace a single step.

10 questions in Easy · one answer per question · no timer

Choose a mode

Free, no account needed. Answers stay in this tab and reset on reload. This is self-study, not a proctored exam or certificate.

Choose the right challenge

Easy checks core concepts. Medium applies them to tasks. Hard examines edge cases and failure modes. Very advanced combines constraints such as concurrency, security and recovery. Start where you are comfortable; each level has its own attempt and result. These labels are editorial, not certification grades.

What you will learn

  • Choose data structures and reason about key expiration.
  • Distinguish atomic commands, optimistic transactions and message delivery.
  • Evaluate persistence, replication and cache-failure tradeoffs.

Think through a real scenario

An application keeps account summaries in Redis while a database remains authoritative. A cache key expires during a burst of requests, causing many simultaneous database reads. A longer TTL alone does not resolve coordinated refreshes or stale data. Decide how to coalesce work, how long stale summaries remain acceptable, and how the application behaves if Redis is unavailable. Verify the recovery behavior instead of treating a healthy cache as proof of durable storage.

Turn your result into a study plan

For each missed question, write down the rule you overlooked and test it with a small example. Avoid memorizing an option’s position: understanding the behavior matters more than recognizing the wording. In exam mode explanations stay hidden until you submit; in practice mode use “Check answer” to see feedback immediately.

Read further

The questions and explanations are original EmuPath teaching material. These references provide background for further study; their publishers do not endorse this exam.

Found an ambiguous question? Include the track and question text in your correction report.

Sample Redis Data & Operations questions with explanations

Preview one question from each difficulty level before choosing a practice session. These examples also appear in the question bank. Try answering first, then open the explanation to check your reasoning.

Easy: Strings

Which Redis command retrieves a key’s string value?

  1. GET
  2. HGETALL
  3. SMEMBERS
  4. LRANGE
Show answer and explanation

GET

GET operates on a string key. Hashes, sets and lists have their own access commands and cannot be read interchangeably as strings.

Medium: Conditional writes

What does SET lock token NX EX 10 attempt as one command?

  1. Create the key only if absent and give it a ten-second expiration
  2. Overwrite every key and remove all expirations
  3. Subscribe to a channel for ten seconds
  4. Increment an existing key by ten
Show answer and explanation

Create the key only if absent and give it a ten-second expiration

NX makes creation conditional on absence and EX supplies a lifetime. This is a useful primitive, but a complete lock protocol also needs ownership and failure handling.

Hard: Runtime transaction errors

During EXEC, one queued command fails because it uses the wrong value type. What should the client expect for other valid queued commands?

  1. They can still execute; Redis does not roll the transaction back
  2. Every earlier command is automatically undone
  3. Every later command is always discarded
  4. The server converts all values to the required type
Show answer and explanation

They can still execute; Redis does not roll the transaction back

Redis transactions do not provide rollback for runtime command errors. Inspect each EXEC reply and design commands so partial logical success is handled deliberately.

Very advanced: Distributed lock release

A client’s lock lease expired and another client acquired the key. Why is an unconditional DEL by the old client unsafe?

  1. It can delete the new owner’s lock
  2. DEL automatically renews the old lease
  3. The key cannot be recreated after expiry
  4. Redis serializes client lifetimes globally
Show answer and explanation

It can delete the new owner’s lock

The lock value should identify ownership, and release should atomically verify that identity before deleting. A delayed former owner must not release another owner’s lease.