Redis

Redis

Test your Redis knowledge with free quizzes on MyCodeSkills covering core concepts.


  1. What is Redis primarily used for?

    • File storage
    • Document editing
    • In-memory data store
    • Email sending
  2. What data structure does Redis use for key-value pairs?

    • Tree
    • List
    • Hash
    • Table
  3. Which command sets a string value in Redis?

    • SET
    • GET
    • PUSH
    • ADD
  4. Which command retrieves a value by key in Redis?

    • GET
    • SET
    • HGET
    • LPUSH
  5. Which command deletes a key in Redis?

    • DEL
    • REMOVE
    • DELETE
    • ERASE
  6. Which command appends a value to a string?

    • APPEND
    • ADD
    • SETEXT
    • CONCAT
  7. What does the EXPIRE command do?

    • Deletes key immediately
    • Makes key persistent
    • Sets TTL on a key
    • Extends key forever
  8. Which command returns the number of elements in a set?

    • SCOUNT
    • SCARD
    • SETLEN
    • SIZE
  9. What does Redis WATCH command do?

    • Monitors key for updates
    • Schedules key deletion
    • Tracks memory
    • Initiates Pub/Sub
  10. Which command starts a transaction block?

    • BEGIN
    • MULTI
    • START
    • EXEC
  11. What does Redis Sentinel primarily provide?

    • Security
    • Monitoring
    • High Availability
    • Authentication
  12. Which command adds a message to a stream?

    • XPUSH
    • XADD
    • XWRITE
    • XSET
  13. In Redis Cluster, how many hash slots are there?

    • 512
    • 1024
    • 16384
    • 32768
  14. Which command reads messages from a stream for a consumer group?

    • XGROUP
    • XREAD
    • XREADGROUP
    • XGET
  15. What is the purpose of Lua scripting in Redis?

    • Styling
    • UI Automation
    • Atomic Execution
    • Graphing