0
0
Nginxdevops~10 mins

Burst and nodelay options in Nginx - Interactive Code Practice

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

Complete the code to set the burst limit in the rate limiting configuration.

Nginx
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s;
limit_req zone=mylimit burst=[1];
Drag options to blanks, or click blank then click option'
A10
B5
C20
D50
Attempts:
3 left
💡 Hint
Common Mistakes
Using a very high burst value can cause server overload.
Omitting the burst option disables bursting.
2fill in blank
medium

Complete the code to enable the nodelay option in the limit_req directive.

Nginx
limit_req zone=mylimit burst=5 [1];
Drag options to blanks, or click blank then click option'
Anodelay
Bimmediate
Cfast
Ddelay
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delay' instead of 'nodelay' causes requests to be delayed.
Misspelling the option name.
3fill in blank
hard

Fix the error in the limit_req directive to correctly apply burst and nodelay options.

Nginx
limit_req zone=mylimit burst=[1] nodelay;
Drag options to blanks, or click blank then click option'
Aten
B10
C5
Dfive
Attempts:
3 left
💡 Hint
Common Mistakes
Writing numbers as words causes syntax errors.
Using values not supported by nginx.
4fill in blank
hard

Fill both blanks to configure a limit_req with burst and nodelay options correctly.

Nginx
limit_req zone=mylimit burst=[1] [2];
Drag options to blanks, or click blank then click option'
A10
Bnodelay
Cdelay
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping burst and nodelay positions.
Using 'delay' instead of 'nodelay'.
5fill in blank
hard

Fill all three blanks to create a limit_req_zone and limit_req with burst and nodelay options.

Nginx
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=[1];
limit_req zone=mylimit burst=[2] [3];
Drag options to blanks, or click blank then click option'
A1r/s
Bnodelay
C5
D10r/s
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect rate format.
Omitting nodelay when bursts should be immediate.