Transactions & Scripting interview questions

15 real Transactions & Scripting questions from the Redis bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is MULTI/EXEC block?

Junior
  1. A.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  2. B.queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
  3. C.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  4. D.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
Reveal the answer + AI explanation — free account

2. Which term means: "queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them"?

Junior
  1. A.Functions library
  2. B.Optimistic locking
  3. C.MULTI/EXEC block
  4. D.Script atomicity
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.MULTI/EXEC block — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  2. B.MULTI/EXEC block — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  3. C.MULTI/EXEC block — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
  4. D.MULTI/EXEC block — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
Reveal the answer + AI explanation — free account

4. What is Optimistic locking?

Mid
  1. A.queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
  2. B.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
  3. C.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  4. D.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
Reveal the answer + AI explanation — free account

5. Which term means: "watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran"?

Mid
  1. A.Optimistic locking
  2. B.Lua scripting
  3. C.MULTI/EXEC block
  4. D.Script atomicity
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Optimistic locking — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  2. B.Optimistic locking — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  3. C.Optimistic locking — the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  4. D.Optimistic locking — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
Reveal the answer + AI explanation — free account

7. What is Lua scripting?

Mid
  1. A.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  2. B.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
  3. C.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  4. D.queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
Reveal the answer + AI explanation — free account

8. Which term means: "embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions"?

Mid
  1. A.Lua scripting
  2. B.Script atomicity
  3. C.MULTI/EXEC block
  4. D.Optimistic locking
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Lua scripting — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  2. B.Lua scripting — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  3. C.Lua scripting — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
  4. D.Lua scripting — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
Reveal the answer + AI explanation — free account

10. What is Script atomicity?

Senior
  1. A.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
  2. B.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  3. C.a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  4. D.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
Reveal the answer + AI explanation — free account

11. Which term means: "the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes"?

Senior
  1. A.Functions library
  2. B.Script atomicity
  3. C.MULTI/EXEC block
  4. D.Optimistic locking
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.Script atomicity — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  2. B.Script atomicity — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  3. C.Script atomicity — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
  4. D.Script atomicity — the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
Reveal the answer + AI explanation — free account

13. What is Functions library?

Senior
  1. A.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
  2. B.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
  3. C.a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  4. D.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
Reveal the answer + AI explanation — free account

14. Which term means: "a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts"?

Senior
  1. A.Script atomicity
  2. B.MULTI/EXEC block
  3. C.Optimistic locking
  4. D.Functions library
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Functions library — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
  2. B.Functions library — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
  3. C.Functions library — the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
  4. D.Functions library — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Transactions & Scripting free