Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following commands is used to post the message to the channel?

Answer»

Which of the following commands is used to POST the message to the channel?
Choose the correct the OPTION from below list
(1)PUBLISH
(2)PRINT
(3)All the options

Answer:-(1)PUBLISH

2.

_________ is the number of sentinels that need to agree the fact that the master is not reachable and make a failover procedure promoting slave to mas

Answer»

_________ is the number of sentinels that need to AGREE the fact that the master is not reachable and make a failover procedure promoting slave to master.
Choose the CORRECT option from below LIST
(1)Quorum
(2)Master
(3)Sentinel
(4)Total number of servers in the cluster.

Answer:-(1)Quorum

3.

In Redis context, senders are named as __________ and receivers are named as Subscribers.

Answer»

In Redis context, senders are named as __________ and RECEIVERS are named as Subscribers.
Choose the correct the option from below list
(1)Clients
(2)Channels
(3)MESSAGE BROKERS
(4)Publishers

Answer:-(4)Publishers

4.

Which configuration setting is used to specify the memory eviction policy in Redis?

Answer»

Which configuration SETTING is used to specify the memory eviction policy in Redis?
Choose the correct the option from below LIST
(1)max-memory
(2)flushdb
(3)maxmemory-samples
(4)maxmemory-policy

Answer:-(4)maxmemory-policy

5.

Redis provides multi state architecture during replication where every instance can both read and write.

Answer»

Redis PROVIDES multi STATE architecture during replication where every instance can both read and write.
Choose the CORRECT option from below list
(1)False
(2)True
Answer:-(1)False

6.

__________ is an implementation of partitioning where you can send your query to a random instance, and the instance will forward your query to the ri

Answer»

__________ is an implementation of partitioning where you can send your query to a random instance, and the instance will FORWARD your query to the right node.
Choose the correct the option from below list
(1)Query routing
(2)Client SIDE partitioning
(3)PROXY assisted partitioning

Answer:-(1)Query routing

7.

Which among the following are the data structures that are commonly used in Redis?

Answer»

Which among the FOLLOWING are the data structures that are commonly used in Redis?
Choose the CORRECT option from below list
(1)Get
(2)SETS
(3)Batches
(4)Queue

Answer:-(2)Sets

8.

__________ is used for failover process when a master is not working, promoting the slave to master.

Answer»

__________ is used for FAILOVER process when a master is not WORKING, PROMOTING the slave to master.
Choose the correct the OPTION from below list
(1)Slave
(2)Quorum
(3)Master Server
(4)Sentinel

Answer:-(2)Quorum

9.

Sets are unordered collection of strings

Answer»

Sets are unordered COLLECTION of strings
Choose the CORRECT option from below LIST
(1)False
(2)TRUE

Answer:-(2)True

10.

Which is the best way for persistence in Redis?

Answer»

Which is the BEST way for persistence in Redis?
CHOOSE the correct option from below list
(1)SAVE command
(2)AOF
(3)VALUE
(4)Fork ()

Answer:-(2)AOF

11.

Which of the following is not a Key Value database?

Answer»

Which of the following is not a Key VALUE database?
CHOOSE the correct option from below LIST
(1)Redis
(2)MongoDB
(3)RIAK
(4)Memcached

Answer:-(2)MongoDB

12.

When using Pipelining, will the additional memory used be high?

Answer»

When USING Pipelining, will the additional memory used be HIGH?
Choose the correct option from below list
(1)Very less
(2)Partially high
(3)No
(4)YES

Answer:-(4)Yes

13.

Which configuration setting specifies the file to which RDB snapshot dump is saved to _______?

Answer»

Which configuration SETTING specifies the FILE to which RDB snapshot dump is SAVED to _______
Choose the CORRECT option from below list
(1)dir
(2)dbfilename
(3)pidfile
(4)logfile

Answer:-(2)dbfilename

14.

Which among the following is a benefit of Pipelining?

Answer»

Which among the following is a BENEFIT of Pipelining?
Choose the correct the option from below list
(1)Primary memory
(2)Less COMMANDS
(3)SPEED
(4)data as batches

Answer:-(3)Speed

15.

Which among the following does Redis Hashes stores?

Answer»

Which AMONG the following does REDIS Hashes stores?
Choose the correct option from below LIST
(1)Value
(2)Length of FILE
(3)Key
(4)Key value pairs

Answer:-(4)Key value pairs

16.

What are the 10 most important features of Redis

Answer»

What are the 10 most important FEATURES of Redis
Below are the 10 most important features of Redis
(1)One important features is that it is portable.
(2)It is very easy to install and manage to Redis.
(3)Redis have the advantage to support various types of data structure such as strings, hashes, sets, lists sorted sets etc.
(4)Redis has also supporting various programming languages like C,C++,C#,RUBY,Phython,PHP,Erlang,Tcl,Perl,Lua,Java,Scala etc.
(5)Redis supports simple master to slave replication.
(6)Redis has one of the most powerfull feature is that it is very fast and can execute 100000 queries per second.
(7)The reason of fastest speed is that data is persistent in memory as well as stored on the disk.
(8)One more reason of its speed is that it loads the whole DATASET in primary memory.
(9)If we want use our favorite language which is not supported yet then we can write our own client library which is enabled here quite easily.
(10)Redis operations WORKING on different data types are ATOMIC so these operations can be accomplished safely.

17.

_______ sets the key to expire within the given number of seconds.

Answer»

_______ SETS the key to expire WITHIN the given number of seconds.
Choose the CORRECT option from below list
(1)EXPIRE
(2)PERSIST
(3)ZRANGE
(4)TTL

Answer:-(1)EXPIRE

18.

_______ returns an array of values.

Answer»

_______ returns an ARRAY of values.
Choose the correct OPTION from below list
(1)HGET
(2)ZADD
(3)HKEYS
(4)HMGET

Answer:-(1)HGET

19.

Which is the best way to achieve persistence in Redis?

Answer»

Which is the best way to achieve persistence in Redis?
Choose the correct the option from below LIST
(1)FORK ()
(2)Value
(3)SAVE command
(4)AOF

Answer:-(4)AOF

20.

___________ command will add elements to the set.

Answer»

___________ COMMAND will ADD elements to the set.
Choose the correct option from below list
(1)SMEMBERS
(2)SADD
(3)SISMEMBER
(4)SINTER

Answer:-(2)SADD

21.

The configuration setting in redis.conf that could be configured to the number of samples of keys to be checked, to evict keys with the oldest access

Answer»

The configuration setting in redis.conf that COULD be CONFIGURED to the number of SAMPLES of keys to be checked, to EVICT keys with the oldest access time is ___________
Choose the correct the option from below list
(1)maxmemory
(2)maxmemory-samples
(3)maxmemory-policy

Answer:-(1)maxmemory

22.

The data structure commonly used in Redis is ___________.

Answer»

The data structure commonly USED in Redis is ___________.
Choose the CORRECT the option from below list
(1)QUEUE
(2)Get
(3)Sets
(4)Batches

Answer:-(3)Sets

23.

In-Memory database stores data in the memory

Answer»

In-Memory database stores data in the memory
Choose the correct the OPTION from below LIST
(1)False
(2)TRUE

Answer:-(2)True

24.

__________ is the technique of breaking down data into multiple parts.

Answer»

__________ is the technique of breaking down DATA into multiple parts.
Choose the correct the option from below LIST
(1)Optimizing
(2)HASHING
(3)Sharding

Answer:-(3)Sharding

25.

The environment continues to work even if a slave fails.

Answer»

The environment continues to work EVEN if a slave fails.
Choose the correct the option from below list
(1)True
(2)False

Answer:-(1)True

26.

__________ is the configuration setting that tells the maximum number of items allowed in a Hash table for ziplist encoding.

Answer»

__________ is the configuration setting that tells the maximum number of ITEMS allowed in a HASH table for ziplist encoding.
Choose the CORRECT the OPTION from below list
(1)list-max-ziplist-entries
(2)hash-max-ziplist-entries
(3)hash-max-ziplist-value
(4)list-max-ziplist

Answer:-(2)hash-max-ziplist-entries

27.

Redis provides the output of all commands in ____________.

Answer»

Redis provides the output of all COMMANDS in ____________.
CHOOSE the correct the option from below list
(1)A SINGLE step
(2)Batches
(3)Queue
(4)MULTIPLE steps

Answer:-(1)A single step

28.

Which of the following set commands removes and returns members of a set?

Answer»

Which of the following set commands removes and RETURNS MEMBERS of a set?
Choose the correct the option from below list
(1)SMOVE
(2)SREM
(3)SDEL
(4)SPOP

Answer:-(4)SPOP

29.

__________ is/are used to store, retrieve and update data.

Answer»

__________ is/are used to STORE, retrieve and UPDATE data.
Choose the CORRECT the OPTION from below list
(1)redis.conf
(2)Memory
(3)config
(4)Commands

Answer:-(4)Commands

30.

Which is the mechanism to enforce limits on the access of a resource when multiple threads are executed?

Answer»

Which is the mechanism to enforce limits on the ACCESS of a resource when multiple threads are executed?
Choose the correct the option from below list
(1)EXPIRE
(2)PUBLISH
(3)LOCKING
(4)PERSIST

Answer:-(3)Locking

31.

Which one is a difference between Memcached and Redis?

Answer»

Which ONE is a DIFFERENCE between Memcached and Redis?
Choose the correct option from below list
(1)Key-value data STORE
(2)USED for caching
(3)Single threaded
(4)In-memory

Answer:-(3)Single threaded

32.

Redis is widely used as a secondary database for ___________.

Answer»

Redis is widely used as a secondary DATABASE for ___________
CHOOSE the CORRECT option from below LIST
(1)Secondary Memory
(2)Caching
(3)Primary Memory
(4)Storing

Answer:-(2)Caching

33.

Which is the default persistence mode in Redis?

Answer»

Which is the default persistence mode in Redis?
Choose the CORRECT option from below list
(1)RDB
(2)AOF

Answer:-(2)AOF

34.

The _________ command is used to remove the expiration from a key.

Answer»

The _________ command is USED to remove the EXPIRATION from a key.
Choose the correct option from below list
(1)Expire
(2)Persist
(3)Del
(4)Rem

Answer:-(2)Persist

35.

Redis is single threaded

Answer» REDIS is single threaded
Choose the correct option from below LIST
(1)True
(2)False

Answer:-(1)True
36.

In a Redis transaction, we can use ________ command to enter into the transaction and queue the transaction commands instead of executing them.

Answer»

In a Redis TRANSACTION, we can use ________ command to enter into the transaction and queue the transaction commands INSTEAD of executing them.
Choose the CORRECT the option from below list
(1)Discard
(2)EXEC
(3)Multi

Answer:-(3)Multi