fivenines

Practice / target 80%

Redis Object Model Practice

01

A key stores a hash encoded compactly. Which field says it is a hash, and which field says how it is physically stored?

intro

Scenario

You are inspecting how the server represents a small hash internally after a few HSET commands.

02

Why is upgrading a hash from compact encoding to a hash table invisible to clients?

intro

Scenario

A growing hash has just crossed the threshold where its compact layout is converted to a real hash table.

03

Predict the result of `LPUSH profile Ada` when `profile` currently holds a string.

applied

Scenario

A developer accidentally runs a list command against a key that currently holds a plain string value.

04

Which object metadata helps eviction policy, and which metadata helps command validation?

applied

Scenario

You are auditing which parts of the object header each subsystem actually reads.

05

Why is it useful for persistence to see logical type rather than only raw memory bytes?

advanced

Scenario

You are designing the save path and must decide what the snapshot format records about each value.