All Questions
Redis medium

Why is executing the `KEYS *` command considered a high-risk operation in a production Redis cluster with millions of keys?

  1. A It automatically truncates any keys that do not strictly adhere to the internal UTF-8 encoding standard.
  2. B It generates an extremely large network payload that can saturate the local NIC the instance is running on.
  3. C It is an O(N) blocking operation that prevents all other client commands from running until scan completion.
  4. D It forces a full cluster-wide re-sharding event to occur, potentially leading to transient data inconsistency.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions