0
0
RabbitMQdevops~10 mins

Flow control mechanism in RabbitMQ - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable flow control on a RabbitMQ channel.

RabbitMQ
channel.[1]()
Drag options to blanks, or click blank then click option'
Aflow
Bstart_flow
Cenable_flow
Dbegin_flow
Attempts:
3 left
💡 Hint
Common Mistakes
Using a method name that does not exist like 'start_flow' or 'enable_flow'.
Confusing flow control with starting or stopping the channel.
2fill in blank
medium

Complete the code to disable flow control on a RabbitMQ channel.

RabbitMQ
channel.[1](False)
Drag options to blanks, or click blank then click option'
Aenable_flow
Bset_flow
Cflow
Dtoggle_flow
Attempts:
3 left
💡 Hint
Common Mistakes
Using a method that does not exist like 'set_flow' or 'toggle_flow'.
Passing a string 'true' instead of boolean True.
3fill in blank
hard

Fix the error in the code to correctly check if flow control is active.

RabbitMQ
if channel.[1]() == False:
    print('Flow control is active')
Drag options to blanks, or click blank then click option'
Ais_flowing
Bcheck_flow
Cflowing
Dflow
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-existent methods like 'is_flowing' or 'check_flow'.
Calling the method with parameters when checking state.
4fill in blank
hard

Fill both blanks to pause and then resume message flow on the channel.

RabbitMQ
channel.[1](False)
channel.[2](True)
Drag options to blanks, or click blank then click option'
Aflow
Bpause
Cstop
Dresume
Attempts:
3 left
💡 Hint
Common Mistakes
Using different method names for pause and resume.
Passing string values instead of boolean.
5fill in blank
hard

Fill all three blanks to create a flow control handler that pauses flow when buffer is full and resumes when cleared.

RabbitMQ
def flow_control_handler(channel, [1]):
    if [2]:
        channel.[3](False)
    else:
        channel.flow(True)
Drag options to blanks, or click blank then click option'
Ais_buffer_full
Cflow
Dpause
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names in parameter and condition.
Using a non-existent method like 'pause' instead of 'flow'.