0
0
Azurecloud~20 mins

Application settings and connection strings in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure App Settings Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Azure App Service Application Settings

In Azure App Service, what is the primary purpose of application settings?

ATo define the scaling rules for the app service
BTo store the source code of the application
CTo manage user access permissions to the app service
DTo store configuration values that override settings in the app's code or config files at runtime
Attempts:
2 left
💡 Hint

Think about how you can change app behavior without changing code.

Configuration
intermediate
2:00remaining
Correctly Configuring a Connection String in Azure App Service

You want to add a SQL Database connection string to your Azure App Service. Which of the following is the correct way to add it so that your app can access it securely?

AHardcode the connection string inside your app's source code
BAdd the connection string under 'Connection strings' in the Azure portal with the correct name and type, so it is injected as environment variables
CStore the connection string in a public blob storage and read it at runtime
DAdd the connection string as a regular application setting without specifying the type
Attempts:
2 left
💡 Hint

Consider how Azure App Service manages connection strings differently from regular app settings.

Architecture
advanced
2:30remaining
Designing Secure Application Settings for Multi-Environment Deployment

You have a web app deployed in development, staging, and production environments. You want to manage application settings and connection strings securely and avoid accidental exposure or overwriting. Which approach best meets this requirement?

AStore all secrets directly in the app's code and deploy the same code to all environments
BUse the same application settings and connection strings for all environments to simplify management
CUse Azure App Service application settings and connection strings per environment, and store secrets in Azure Key Vault referenced by managed identity
DUse environment variables on your local machine and copy them manually to each environment
Attempts:
2 left
💡 Hint

Think about security and environment isolation best practices.

service_behavior
advanced
1:30remaining
Effect of Changing Application Settings at Runtime

After updating an application setting in Azure App Service via the portal, what happens immediately to the running application?

AThe app service automatically restarts the app to apply the new settings
BThe app continues running without any change until manually restarted
CThe app crashes and stops running until fixed
DThe app settings update only after redeploying the app
Attempts:
2 left
💡 Hint

Consider how Azure applies configuration changes to running apps.

security
expert
3:00remaining
Preventing Exposure of Sensitive Connection Strings in Logs

Your Azure App Service logs show connection strings in plain text, which is a security risk. What is the best way to prevent this exposure while keeping the app functional?

AUse Azure Key Vault references in application settings and configure the app to not log environment variables
BRemove all connection strings from the app and hardcode them in the source code
CDisable all logging in the app service to avoid logging sensitive data
DStore connection strings in a public GitHub repository for transparency
Attempts:
2 left
💡 Hint

Think about secure secret management and logging best practices.