QuizzesProducers, Consumers & Brokers — Concept Check
intermediate
rabbitmq

Producers, Consumers & Brokers — Concept Check

Questions on Producers, Consumers & Brokers. Producers publish messages to an exchange; the broker routes them to bound queues; consumers subscribe to queues and process messages, optionally acknowledging completion.

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 Producers, Consumers & Brokers — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A producer is publishing messages to an exchange, but no consumers are receiving them. The exchange and queues are correctly configured. What could be the issue?

    • AThe consumers are not acknowledging the messages.
    • BThe producer is not using a durable exchange.
    • CThe routing key used by the producer does not match any queue bindings.
    • DThe broker is not acknowledging messages from the producer.
  2. 2.A consumer subscribed to a queue processes messages but some messages are not acknowledged. What happens to these messages?

    • AThey are sent to a dead-letter exchange immediately.
    • BThey are permanently lost and not retried.
    • CThey are redelivered to the same consumer when it reconnects.
    • DThey are automatically acknowledged by the broker.
  3. 3.A RabbitMQ broker is configured with multiple queues. One queue is showing a backlog. What could be the cause?

    • AThe broker is not routing messages to the correct exchange.
    • BThe consumers for that queue are too slow to process messages.
    • CThe exchange is not durable.
    • DThe producer is not publishing messages fast enough.
  4. 4.A consumer application using Spring AMQP is configured with ackMode='MANUAL'. What must the consumer do?

    • ARely on the broker to automatically acknowledge messages.
    • BDeclare the exchange before consuming messages.
    • CUse a different routing key for each message.
    • DExplicitly acknowledge each message after processing.
  5. 5.During a network partition, a producer continues to publish messages. What happens to these messages?

    • AThey are lost if not acknowledged by the broker.
    • BThey are stored in the broker's queue if the exchange is durable.
    • CThey are held by the producer until the network is restored.
    • DThey are automatically sent to a dead-letter exchange.
  6. 6.A developer believes that producers can directly publish messages to queues. Why is this incorrect?

    • AExchanges are only for routing, not for receiving messages.
    • BProducers publish messages to exchanges, not directly to queues.
    • CQueues cannot receive messages without a consumer.
    • DMessages must be acknowledged before reaching a queue.
  7. 7.A consumer using basicConsume is not receiving messages as expected. What might be the issue?

    • AThe producer is not publishing messages to the exchange.
    • BThe exchange type does not support message routing.
    • CThe broker is not configured to store messages durably.
    • DThe consumer is not properly subscribed to the queue.
  8. 8.A developer configures a consumer with concurrency='2-5'. What does this setting imply?

    • AThe exchange will route messages to 2 to 5 different consumers.
    • BThe broker will deliver messages to 2 to 5 different queues.
    • CThe consumer will process messages in batches of 2 to 5.
    • DThe consumer can run between 2 and 5 threads for processing messages.