Bird
0
0

You have a RabbitMQ client that opens multiple connections and channels but notices high resource usage. What is the likely problem in the code?

medium📝 Troubleshoot Q14 of 15
RabbitMQ - Performance Tuning
You have a RabbitMQ client that opens multiple connections and channels but notices high resource usage. What is the likely problem in the code?
AChannels are not closed after use, causing resource leaks.
BUsing only one connection with many channels.
CClosing channels too early before sending messages.
DReusing the same channel for all tasks.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze resource usage cause

    Opening many connections and channels without closing them wastes memory and CPU.
  2. Step 2: Identify correct fix

    Properly closing channels and connections after use frees resources and prevents leaks.
  3. Final Answer:

    Channels are not closed after use, causing resource leaks. -> Option A
  4. Quick Check:

    Always close channels to avoid leaks [OK]
Quick Trick: Always close channels and connections after use [OK]
Common Mistakes:
MISTAKES
  • Thinking one connection causes high usage
  • Closing channels too early breaks messaging
  • Reusing channels is good, not a problem

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More RabbitMQ Quizzes