Q27 Redis Domain 2 · 25–30% of exam

An AI application uses Azure Cache for Redis to cache embedding vectors to avoid redundant inference calls. Which Redis command stores a vector as a binary string?

  1. A SET key vector_bytes (correct answer)
  2. B HSET key field vector_bytes
  3. C RPUSH key vector_bytes
  4. D ZADD key score vector_bytes

Shortcut: , float32 bytes) and stored as binary strings via SET/GET. For structured caching with expiry, SET with EX (expiry) is most common.

Embedding vectors are typically serialized (e.g., float32 bytes) and stored as binary strings via SET/GET. For structured caching with expiry, SET with EX (expiry) is most common.