0
0
Nginxdevops~10 mins

Open file cache 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 open file cache in nginx.

Nginx
open_file_cache [1];
Drag options to blanks, or click blank then click option'
Aoff
Bon
Cenable
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' or 'true' instead of 'on'.
Leaving the directive off or empty.
2fill in blank
medium

Complete the code to set the maximum number of cached files.

Nginx
open_file_cache max=[1];
Drag options to blanks, or click blank then click option'
A100
B5000
C1000
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Setting the value too low like 10, which limits caching.
Setting an excessively high value like 5000 without need.
3fill in blank
hard

Fix the error in the open file cache timeout setting.

Nginx
open_file_cache_valid [1];
Drag options to blanks, or click blank then click option'
A30sec
B30
C30seconds
D30s
Attempts:
3 left
💡 Hint
Common Mistakes
Using just a number without units.
Using incorrect unit words like 'sec' or 'seconds'.
4fill in blank
hard

Fill both blanks to configure open file cache with max files and inactive timeout.

Nginx
open_file_cache [1] inactive=[2];
Drag options to blanks, or click blank then click option'
Amax=200
B10m
Cmax=100
D5m
Attempts:
3 left
💡 Hint
Common Mistakes
Using just numbers without 'max=' for max files.
Using invalid time units for inactive timeout.
5fill in blank
hard

Fill all three blanks to complete the open file cache configuration with max files, inactive timeout, and min uses.

Nginx
open_file_cache [1] inactive=[2];
open_file_cache_min_uses [3];
Drag options to blanks, or click blank then click option'
Amax=150
B15m
C2
Dmax=50
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing min uses with timeout values.
Omitting 'max=' prefix for max files.
Using invalid time units.