Microsoft Certified: Azure Developer Associate Azure App Service and Containerization 1 — Questions and Answers
Question 1: Which Azure App Service deployment slot feature allows you to swap a staging slot into production without downtime?
- Blue-green deployment
- Slot swap (Correct answer)
- Rolling update
- Canary release
Correct answer: Slot swap
Azure App Service slot swap moves the staging slot into production instantly, swapping routing without downtime.
Question 2: What is the purpose of the `WEBSITE_RUN_FROM_PACKAGE` application setting in Azure App Service?
- Runs the app directly from a ZIP package without extracting files (Correct answer)
- Sets the package manager for npm install
- Enables Docker container deployment
- Configures the .NET runtime version
Correct answer: Runs the app directly from a ZIP package without extracting files
`WEBSITE_RUN_FROM_PACKAGE=1` mounts a ZIP file as a read-only file system so the app runs without file extraction.
Question 3: Which Azure service lets you run containers without managing virtual machines or clusters?
- Azure Kubernetes Service
- Azure Container Instances (Correct answer)
- Azure Container Apps
- Azure Batch
Correct answer: Azure Container Instances
Azure Container Instances (ACI) runs containers on-demand in a serverless manner with no infrastructure management.
Question 4: In Azure Container Registry, which command authenticates the Docker CLI to a private registry?
- az acr login --name <registry> (Correct answer)
- docker login azure
- az acr authenticate
- az login --container
Correct answer: az acr login --name <registry>
`az acr login --name <registry>` uses Azure CLI credentials to authenticate Docker with the specified ACR instance.
Question 5: What App Service plan tier is required to use custom domains and SSL certificates?
- Free
- Shared
- Basic or higher (Correct answer)
- Consumption
Correct answer: Basic or higher
Custom domains and SSL/TLS bindings require at least the Basic (B1) tier in Azure App Service.
Question 6: Which configuration setting in an Azure Web App controls which version of the .NET runtime is used?
- DOTNET_VERSION (Correct answer)
- FUNCTIONS_WORKER_RUNTIME
- WEBSITE_DOTNET_FRAMEWORK
- ASPNETCORE_ENVIRONMENT
Correct answer: DOTNET_VERSION
The `DOTNET_VERSION` app setting (or the stack settings in the portal) tells the App Service runtime which .NET version to use.
Which Azure App Service deployment slot feature allows you to swap a staging slot into production without downtime?