Q20 Redis Domain 2 · 25–30% of exam Priority · Real Exam

Which command pipeline reduces round-trip latency for 100 independent SET operations?

  1. A Sending them individually and awaiting each reply
  2. B Pipelining all 100 commands and reading replies together (correct answer)
  3. C Using MULTI without EXEC
  4. D Using KEYS first

Shortcut: Pipelining writes all commands to the socket before reading replies, collapsing 100 round trips into roughly one. MULTI adds transactional semantics but not the latency benefit by itself.