0
0
Azurecloud~20 mins

Deployment methods (Git, ZIP, CI/CD) in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Output of Azure CLI Git deployment command
What is the output of the following Azure CLI command when deploying code via Git to an Azure Web App?
Azure
az webapp deployment source config-local-git --name MyWebApp --resource-group MyResourceGroup
ADeployment successful: Code pushed to Azure Web App
BError: Resource group 'MyResourceGroup' not found
CGit URL for deployment: https://<username>@mywebapp.scm.azurewebsites.net/MyWebApp.git
DWarning: Git deployment not supported for this app service plan
Attempts:
2 left
💡 Hint
This command configures local Git deployment and returns the Git URL to push code.
🧠 Conceptual
intermediate
2:00remaining
Understanding ZIP deployment behavior
When deploying an application to Azure App Service using ZIP deployment, what happens to the existing files in the wwwroot folder?
ADeployment fails if wwwroot folder is not empty
BNew files are added, but existing files remain unchanged
CExisting files are backed up and merged with new files
DExisting files are completely replaced by the contents of the ZIP file
Attempts:
2 left
💡 Hint
Think about how ZIP deployment updates the app content folder.
🔀 Workflow
advanced
3:00remaining
Correct order of steps in a CI/CD pipeline for Azure Web App deployment
Arrange the following steps in the correct order for a CI/CD pipeline deploying code to an Azure Web App:
A4, 2, 1, 3
B4, 1, 2, 3
C2, 4, 1, 3
D4, 2, 3, 1
Attempts:
2 left
💡 Hint
Think about what happens first when code changes, then building, testing, and deploying.
Troubleshoot
advanced
2:30remaining
Identifying cause of deployment failure in Azure DevOps pipeline
An Azure DevOps pipeline deploying to an Azure Web App fails with the error: '403 Forbidden - Access Denied'. Which is the most likely cause?
AZIP deployment package is corrupted
BIncorrect service connection permissions for Azure subscription
CBuild agent does not have enough memory
DApp Service plan is stopped
Attempts:
2 left
💡 Hint
403 Forbidden usually relates to permission issues.
Best Practice
expert
3:00remaining
Best practice for secure CI/CD deployment to Azure Web Apps
Which practice best improves security when deploying to Azure Web Apps using CI/CD pipelines?
AUse managed identities and Azure Key Vault to handle secrets
BStore deployment credentials directly in pipeline YAML files
CDisable HTTPS to simplify deployment
DAllow anonymous access to the deployment endpoint
Attempts:
2 left
💡 Hint
Think about secure secret management and identity in Azure.