0
0
Nginxdevops~10 mins

Buffer sizes optimization 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 client header buffer size to 8k.

Nginx
client_header_buffer_size [1];
Drag options to blanks, or click blank then click option'
A8k
B16k
C4k
D32k
Attempts:
3 left
💡 Hint
Common Mistakes
Using a size smaller than needed causing header truncation.
Forgetting the 'k' suffix for kilobytes.
2fill in blank
medium

Complete the code to set the large client header buffers to 4 buffers of 16k each.

Nginx
large_client_header_buffers [1] [2];
Drag options to blanks, or click blank then click option'
A2
B4
C8
D16k
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the number and size values.
Using sizes without the 'k' suffix.
3fill in blank
hard

Fix the error in the buffer size directive to use a valid size.

Nginx
client_body_buffer_size [1];
Drag options to blanks, or click blank then click option'
A512k
B1024
C1m
D2048b
Attempts:
3 left
💡 Hint
Common Mistakes
Using plain numbers without units (interpreted as bytes, often too small).
Using invalid units like 'b' for bytes.
4fill in blank
hard

Fill both blanks to configure buffer sizes for client headers and body.

Nginx
client_header_buffer_size [1];
client_body_buffer_size [2];
Drag options to blanks, or click blank then click option'
A8k
B16k
C4k
D32k
Attempts:
3 left
💡 Hint
Common Mistakes
Setting body buffer smaller than header buffer.
Using inconsistent units.
5fill in blank
hard

Fill all three blanks to set large client header buffers with 4 buffers of 8k each and client body buffer size to 16k.

Nginx
large_client_header_buffers [1] [2];
client_body_buffer_size [3];
Drag options to blanks, or click blank then click option'
A4
B8k
C16k
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the number of buffers and buffer size.
Using inconsistent or missing units.