QuizzesConsumer Acknowledgements (ack/nack) — Concept Check
intermediate
rabbitmq

Consumer Acknowledgements (ack/nack) — Concept Check

Questions on Consumer Acknowledgements (ack/nack). basicAck signals successful processing; basicNack/basicReject requeues or discards the message. Unacknowledged messages are redelivered if the consumer disconnects.

8 minutes 8 questions Pass at 70%
Time Limit
8 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

8 questions on Consumer Acknowledgements (ack/nack) — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A RabbitMQ consumer processes messages and crashes before acknowledging. What happens to the messages?

    • AThey are sent to a dead-letter queue.
    • BThey are permanently lost.
    • CThey are requeued for another consumer.
    • DThey are automatically acknowledged.
  2. 2.A developer sets autoAck=true in RabbitMQ. What risk does this pose?

    • AMessages are processed twice by the same consumer.
    • BMessages may be lost if the consumer crashes.
    • CMessages are always sent to a dead-letter queue.
    • DMessages are never removed from the queue.
  3. 3.In RabbitMQ, which method should be used to acknowledge a successfully processed message?

    • AbasicReject
    • BbasicNack
    • CbasicConsume
    • DbasicAck
  4. 4.A message fails processing due to a transient error. What is the best RabbitMQ action?

    • AUse basicReject with requeue=false.
    • BUse basicNack with requeue=false.
    • CUse basicAck to remove the message.
    • DUse basicNack with requeue=true.
  5. 5.A poisoned message fails repeatedly. What should be done to prevent an infinite loop?

    • AUse basicAck after failure.
    • BUse basicReject with requeue=true.
    • CRoute to a DLQ after max retries.
    • DIncrease prefetch count.
  6. 6.What is the role of the 'multiple' flag in basicAck?

    • ARequeue all messages up to deliveryTag.
    • BAcknowledge all messages up to deliveryTag.
    • CReject all messages up to deliveryTag.
    • DAcknowledge only the current message.
  7. 7.A service uses manual-ack with prefetch=1. What is the benefit of this setup?

    • AAllows multiple consumers to process the same message.
    • BEnsures fair dispatch by limiting unacked messages.
    • CAutomatically routes failed messages to DLQ.
    • DIncreases throughput by processing multiple messages simultaneously.
  8. 8.What happens if basicReject is called with requeue=false?

    • AThe message is requeued for another consumer.
    • BThe message is processed again by the same consumer.
    • CThe message is acknowledged as successful.
    • DThe message is discarded or sent to DLX.