Practise the standard verbs for using Lua scripts for atomic Redis operations.
0 / 5 completed
1 / 5
Fill in: 'We ___ a Lua script for the read-then-write so the whole operation runs atomically on the Redis server.'
We 'write a script' — the standard, simple collocation for authoring a piece of code. The other options are less idiomatic here.
2 / 5
Fill in: 'Running separate GET and SET commands instead of a script can ___ a race condition under concurrent load.'
We say separate commands will 'create' a race condition — the standard, simple collocation for the resulting bug. The other options aren't idiomatic here.
3 / 5
Fill in: 'We ___ a script's SHA with SCRIPT LOAD so later calls send only the hash instead of the full script body.'
We 'cache a hash' — the standard, established Redis collocation for storing a compiled script reference. The other options aren't the recognised term here.
4 / 5
Fill in: 'We ___ every key a script touches through KEYS arguments so Redis Cluster can route it to the right slot.'
We 'pass keys' — the standard, simple collocation for supplying arguments to a script call. The other options are less idiomatic here.
5 / 5
Fill in: 'We ___ script execution time closely since a slow Lua script blocks the entire single-threaded Redis instance.'
We 'monitor' time — the standard collocation for ongoing observation of a metric. The other options aren't idiomatic here.