Redis Course Credit 6
Redis Course Credit 6
RDB
AOF
Which configuration setting specifies the file to which the RDB snapshot dump is
saved?
dfilename
12 13
sets
Persist
HGET
ZRANGEBYEX
_________ is used to flush the transaction queue and exit from the transaction.
Discard
__ is a type of lock that allows you to limit the number of processes that can
concurrently access a resource to some fixed number.
Optimistic locking wrong
In a Redis transaction, we can use ________ command to enter into the transaction
and queue the transaction commands instead of executing them.
multi
Which is the short structure that Redis provides for the compact representation of
Sets?
ziplist wrong
Which among the following factors helps in calculating the number of shards in
Redis?
________ implies the maximum allowed size of each individual element in the data
structure to be encoded to ziplist short structure.
list-max-ziplist-value
Which of the following commands is used to post the message to the channel?
publish
is the number of sentinels that need to agree to the fact that the master is not
reachable and make a failover procedure promoting the slave to the master.
Quorum
is the memory eviction policy where keys are evicted by removing the less recently
used keys first but only among keys that have an 'expire' field set, to make space
for the newly added data.
Volatile-lru
The persistent server should be the _________ once the whole environment is
started.
Master Server
SET wrong
Consider an example where a range of users from 0 to 10000 goes to a Redis instance
R0, and another range of users 10001 to 20000 goes to R1. This is _________
partitioning.
Range partitioning
Speed
________ is used for failover process when a master is not working, promoting the
slave to master.
Sentinel
is the memory policy that returns errors when the memory limit is reached, and the
client is trying to execute commands that result in higher memory usage.
noeviction
Optimizing
Which is the mechanism to enforce limits on the access of a resource when multiple
threads are executed?
Locking
In Redis context, senders are named as _________ and receivers are named as
Subscribers.
Publishers
True
Key
Centralized cache
A single step
HANDSON 1
Redis Strings
after installation
run below command
redis-cli ping
redis-cli
HANDSON 3
Redis
Lists
Redis
Strings
after installation
run below command
redis-cli ping
redis-cli
Using lists, write a command to add the list of avaiable items under key ava
rough
LLEN chocolates
HANDSON 4
Redis Sets
after installation
run below command
redis-cli ping
redis-cli
HANDSON 5
Hands
On - Redis Hashes
redis-cli
https://stackoverflow.com/questions/62992675/how-to-store-a-json-
structure-as-a-hash-data-structure-in-redis
SADD roomrate:New_Delhi:Maidens_Hotel:2017-10-
06:single:availroomnumbers 3 7 23 29 41
HANDSON 6
Sorted Sets
redis-cli