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
A.watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
B.queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
C.the guarantee that no other command runs while an embedded server-side program executes, blocking the single event loop until it finishes
D.embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
A.MULTI/EXEC block — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
B.MULTI/EXEC block — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
C.MULTI/EXEC block — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
D.MULTI/EXEC block — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
A.Optimistic locking — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
B.Optimistic locking — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
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
D.Optimistic locking — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
A.Lua scripting — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
B.Lua scripting — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
C.Lua scripting — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
D.Lua scripting — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
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"?
A.Script atomicity — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
B.Script atomicity — watching one or more keys so a queued transaction aborts automatically if any watched key changed before it ran
C.Script atomicity — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
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
14. Which term means: "a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts"?
A.Functions library — a persisted, named collection of server-side procedures registered once and invoked by name, surviving restarts unlike ad hoc scripts
B.Functions library — embedding server-side logic that executes atomically as a single step, reducing round trips and race conditions
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
D.Functions library — queuing several commands so they run sequentially as an isolated unit with no other client interleaved between them
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.