QuizzesMessage Persistence — Concept Check
intermediate
rabbitmq

Message Persistence — Concept Check

Questions on Message Persistence. Set delivery_mode=2 (persistent) on messages AND use a durable queue to survive broker restart; fsync overhead makes persistent messages slower than transient ones.

7 minutes 7 questions Pass at 70%
Time Limit
7 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

7 questions on Message Persistence — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer sets up a RabbitMQ queue with durability but forgets to set delivery_mode=2 for messages. What happens if the broker restarts?

    • AMessages are duplicated
    • BMessages persist despite restart
    • CMessages are delayed
    • DMessages are lost on restart
  2. 2.What is the primary advantage of using quorum queues over classic durable queues in RabbitMQ?

    • AQuorum queues provide stronger durability by replicating to a majority of nodes
    • BQuorum queues require fewer resources
    • CQuorum queues are easier to configure
    • DQuorum queues are faster due to in-memory processing
  3. 3.A system experiences increased latency after enabling message persistence in RabbitMQ. What is the likely cause?

    • AIncreased CPU usage is slowing down processing
    • BMemory leaks are causing the slowdown
    • CDisk writes add latency compared to in-memory queuing
    • DNetwork issues are causing the delay
  4. 4.Why might a developer choose to use publisher confirms in RabbitMQ?

    • ATo reduce the size of message payloads
    • BTo automatically retry failed messages
    • CTo ensure messages are written to disk before an ack is sent
    • DTo increase the speed of message delivery
  5. 5.A developer uses Spring AMQP and sets MessageProperties.PERSISTENT_TEXT_PLAIN. What does this achieve?

    • AAutomatically retries failed message deliveries
    • BEnsures messages are always delivered in order
    • CReduces message size for faster transmission
    • DSets delivery_mode=2 for message persistence
  6. 6.In RabbitMQ, what happens if a persistent message is sent to a non-durable queue?

    • AThe message is duplicated on restart
    • BThe message delivery is delayed
    • CThe message persists through restarts
    • DThe message is lost on broker restart
  7. 7.What is the role of fsync in RabbitMQ message persistence?

    • AIncreases message throughput by batching writes
    • BReduces latency by caching messages in memory
    • CEnsures data is written to disk before an ack is sent
    • DAutomatically retries failed message deliveries