0
0
Microservicessystem_design~10 mins

Why externalized config enables flexibility in Microservices - Test Your Understanding

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

Complete the code to show where configuration is stored externally.

Microservices
config = load_config_from([1])
Drag options to blanks, or click blank then click option'
Ahardcoded_values
Blocal_variables
Cdatabase
Dinline_constants
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing config inside the code like hardcoded values.
2fill in blank
medium

Complete the code to fetch config dynamically in a microservice.

Microservices
service_config = fetch_config_from([1])
Drag options to blanks, or click blank then click option'
Alocal_cache
Bstatic_files
Cembedded_constants
Denvironment_variables
Attempts:
3 left
💡 Hint
Common Mistakes
Using static files which require redeployment to change.
3fill in blank
hard

Fix the error in the code to reload config without restarting the service.

Microservices
if config_source.has_changed():
    config = [1]_config()
Drag options to blanks, or click blank then click option'
Areload
Brestart
Chardcode
Dignore
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing restart which causes downtime.
4fill in blank
hard

Fill both blanks to show how externalized config improves deployment and scaling.

Microservices
deployments.use([1]) to avoid code changes and [2] config for different environments
Drag options to blanks, or click blank then click option'
Aexternalized_config
Bhardcoded_values
Cenvironment_specific
Dinline_constants
Attempts:
3 left
💡 Hint
Common Mistakes
Using hardcoded or inline constants which reduce flexibility.
5fill in blank
hard

Fill all three blanks to complete the benefits of externalized config in microservices.

Microservices
Externalized config allows [1] updates, supports [2] deployment, and enables [3] scaling.
Drag options to blanks, or click blank then click option'
Adynamic
Bindependent
Celastic
Dstatic
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing static which contradicts flexibility.