AZ-400 Container and Microservices Deployment — Questions and Answers
Question 1: What is the benefit of containerization in Azure DevOps deployments?
- Larger deployment packages
- Consistent environments from development through production (Correct answer)
- Slower deployments
- More manual configuration
Correct answer: Consistent environments from development through production
Containerization ensures applications run identically across all environments by packaging code with all its dependencies.
Question 2: Which Azure service is commonly used for container orchestration with Azure DevOps?
- Azure SQL
- Azure Kubernetes Service (AKS) (Correct answer)
- Azure Storage
- Azure AD
Correct answer: Azure Kubernetes Service (AKS)
Azure Kubernetes Service provides managed container orchestration, integrating with Azure DevOps for automated deployment of containerized applications.
Question 3: What is a container registry in Azure DevOps workflows?
- A code repository
- A storage service for container images (Correct answer)
- A build agent
- A test environment
Correct answer: A storage service for container images
A container registry stores and manages container images that are built in CI pipelines and deployed through CD pipelines.
Question 4: What is the sidecar pattern in microservices architecture?
- A backup database
- A companion container that provides supporting functionality to the main service (Correct answer)
- A deployment strategy
- A monitoring tool
Correct answer: A companion container that provides supporting functionality to the main service
The sidecar pattern deploys a companion container alongside the main service to provide cross-cutting functionality like logging or security.
Question 5: Which deployment strategy gradually shifts traffic to new container versions?
- Big bang deployment
- Canary deployment (Correct answer)
- Complete replacement
- Manual cutover
Correct answer: Canary deployment
Canary deployment gradually routes a small percentage of traffic to the new version, allowing validation before full rollout.
Question 6: What is a Helm chart used for in Kubernetes deployments?
- Creating virtual machines
- Packaging and managing Kubernetes application deployments (Correct answer)
- Writing unit tests
- Managing source control
Correct answer: Packaging and managing Kubernetes application deployments
Helm charts package Kubernetes resource definitions into reusable, versioned bundles that simplify application deployment and management.
What is the benefit of containerization in Azure DevOps deployments?