0
0
Azurecloud~20 mins

Creating a web app in Azure - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Web App Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Choosing the right Azure App Service plan for a web app

You want to deploy a web app on Azure that needs to handle sudden traffic spikes and requires automatic scaling. Which Azure App Service plan should you choose?

AFree plan with limited CPU and memory, no auto-scaling
BBasic plan with manual scaling only
CStandard plan with auto-scaling and load balancing
DShared plan with limited resources and no SLA
Attempts:
2 left
💡 Hint

Consider plans that support automatic scaling and load balancing for traffic spikes.

Configuration
intermediate
2:00remaining
Configuring environment variables for an Azure web app

You want to securely store and access a database connection string in your Azure web app without hardcoding it in your code. Where should you configure this connection string?

AIn a text file uploaded to the web app's root directory
BDirectly inside the source code as a constant string
CIn the Azure Storage Blob container
DIn the web app's Application Settings under Configuration in Azure Portal
Attempts:
2 left
💡 Hint

Think about secure and manageable ways to store sensitive configuration data in Azure.

service_behavior
advanced
2:00remaining
Understanding deployment slots behavior in Azure App Service

You have two deployment slots: production and staging. You deploy a new version to staging and want to swap it with production. What happens to the app settings marked as 'slot setting' during the swap?

ASlot settings remain with their respective slots and do not swap
BSlot settings swap along with the code and content
CSlot settings are deleted during the swap
DSlot settings are merged between slots after the swap
Attempts:
2 left
💡 Hint

Consider how slot settings are designed to keep environment-specific configurations isolated.

security
advanced
2:00remaining
Securing Azure web app with Managed Identity

You want your Azure web app to access an Azure SQL Database securely without storing credentials in the app code or configuration. What is the best way to achieve this?

AEnable a system-assigned Managed Identity for the web app and grant it access to the database
BStore the database username and password in Application Settings
CUse a shared access signature (SAS) token in the app code
DCreate a service principal and hardcode its credentials in the app
Attempts:
2 left
💡 Hint

Think about Azure features that allow apps to authenticate securely without secrets.

Best Practice
expert
2:00remaining
Optimizing cost and performance for a global Azure web app

You have a web app serving users worldwide. You want to reduce latency and optimize costs while maintaining high availability. Which architecture should you implement?

ADeploy the web app in a single Azure region with Standard plan and use Azure CDN for static content
BDeploy multiple instances of the web app in multiple Azure regions with Traffic Manager and use auto-scaling in each region
CDeploy the web app in multiple regions but disable auto-scaling to save costs
DDeploy the web app in a single region with Premium plan and rely on Azure Front Door for global routing
Attempts:
2 left
💡 Hint

Consider global distribution, load balancing, and scaling features for performance and cost.