0
0
Azurecloud~20 mins

Environment variables and configuration in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Environment Variables Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Azure App Service handle environment variables during deployment?

When you deploy an application to Azure App Service and set environment variables in the Application Settings, what happens to these variables during the app's runtime?

AThe environment variables are injected into the app's runtime environment and override any variables set in the app code or container.
BThe environment variables are ignored unless explicitly read from a configuration file inside the app.
CThe environment variables are encrypted and cannot be accessed by the app.
DThe environment variables are only available during build time, not at runtime.
Attempts:
2 left
💡 Hint

Think about how Azure App Service manages configuration for running apps.

Configuration
intermediate
2:00remaining
Which Azure service is best for securely storing environment variables for multiple apps?

You want to store sensitive environment variables like API keys and database passwords securely and share them across multiple Azure applications. Which Azure service should you use?

AAzure Cosmos DB
BAzure Key Vault
CAzure App Service Application Settings
DAzure Blob Storage
Attempts:
2 left
💡 Hint

Consider which service is designed for secure secret storage and access control.

Architecture
advanced
3:00remaining
How to design an Azure Function app to use environment variables securely and update them without redeploying?

You have an Azure Function app that needs to use environment variables for configuration. You want to update these variables securely without redeploying the function app. Which architecture approach achieves this?

AStore environment variables in a local JSON file inside the function app and update the file via FTP.
BHardcode environment variables in the function app code and redeploy when changes are needed.
CStore secrets in Azure Key Vault and configure the function app to reference them via managed identity and Key Vault references in Application Settings.
DUse Azure Blob Storage to store environment variables and read them at function startup.
Attempts:
2 left
💡 Hint

Think about secure secret storage and how Azure Functions can access secrets dynamically.

security
advanced
2:00remaining
What is the risk of storing sensitive environment variables directly in Azure App Service Application Settings without encryption?

Consider storing sensitive data like database passwords directly in Azure App Service Application Settings without additional encryption. What is the main security risk?

AThe app will fail to start because it cannot read unencrypted environment variables.
BThe sensitive data will be hidden from all users except the app itself.
CThe environment variables will be automatically encrypted and safe from all access.
DAnyone with access to the Azure portal or deployment pipeline can view the sensitive values in plain text.
Attempts:
2 left
💡 Hint

Think about who can access Application Settings in Azure portal.

Best Practice
expert
3:00remaining
What is the recommended method to manage environment variables for a multi-region Azure Kubernetes Service (AKS) deployment?

You have an application deployed on AKS clusters in multiple Azure regions. You want to manage environment variables consistently and securely across all clusters. Which approach is best?

AUse Azure Key Vault with Azure AD Pod Identity to inject secrets as environment variables dynamically in each AKS cluster.
BManually update environment variables in each cluster's deployment YAML files and redeploy.
CStore environment variables in ConfigMaps without encryption and mount them as environment variables.
DHardcode environment variables inside container images before deployment.
Attempts:
2 left
💡 Hint

Consider secure, centralized secret management integrated with AKS.