0
0
Nginxdevops~10 mins

Streaming and chunked transfer 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 enable chunked transfer encoding in nginx.

Nginx
proxy_set_header Transfer-Encoding [1];
Drag options to blanks, or click blank then click option'
Acompress
Bchunked
Cdeflate
Dgzip
Attempts:
3 left
💡 Hint
Common Mistakes
Using compression types instead of 'chunked' for Transfer-Encoding.
Forgetting to set the Transfer-Encoding header.
2fill in blank
medium

Complete the code to enable streaming of responses in nginx.

Nginx
proxy_buffering [1];
Drag options to blanks, or click blank then click option'
Aoff
Bon
Cauto
Dstream
Attempts:
3 left
💡 Hint
Common Mistakes
Setting proxy_buffering to 'on' which buffers the response.
Using invalid values like 'stream' for proxy_buffering.
3fill in blank
hard

Fix the error in the nginx config to properly enable chunked transfer.

Nginx
chunked_transfer_encoding [1];
Drag options to blanks, or click blank then click option'
Aon
Benable
Ctrue
Dyes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' instead of 'on' for boolean directives.
Using 'true' or 'yes' which nginx does not recognize.
4fill in blank
hard

Fill both blanks to configure nginx for streaming with chunked transfer.

Nginx
proxy_buffering [1];
chunked_transfer_encoding [2];
Drag options to blanks, or click blank then click option'
Aoff
Bon
Ctrue
Ddisable
Attempts:
3 left
💡 Hint
Common Mistakes
Turning buffering on disables streaming.
Setting chunked_transfer_encoding to invalid values.
5fill in blank
hard

Fill all three blanks to create a minimal nginx config snippet for streaming chunked responses.

Nginx
location /stream {
    proxy_pass http://backend;
    proxy_buffering [1];
    chunked_transfer_encoding [2];
    proxy_http_version [3];
}
Drag options to blanks, or click blank then click option'
Aoff
Bon
C1.1
D1.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTP/1.0 which does not support chunked transfer.
Leaving proxy_buffering on which buffers data.
Setting chunked_transfer_encoding off disables chunked transfer.