AZ-305 exam dumps

AZ-305 practice question 192 of 243

Designing Microsoft Azure Infrastructure Solutions. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AZ-305 Question 192

Select 2

A company has modernized its web application into containerized microservices. The source code is hosted in a private GitHub repository, and they want a fully automated process to build, test, and deploy new application versions on every commit. They also need to store container images in a secure, centralized registry and deploy to an Azure Kubernetes Service (AKS) cluster. Which of the following solutions should you recommend to meet these requirements?

  1. A

    Use GitHub Actions to build container images, push them to Azure Container Registry, and automatically deploy to AKS.

  2. B

    Use manual Docker commands to build images locally, then push to AKS with kubectl apply for each commit.

  3. C

    Use Azure DevOps Pipelines to build and test the container images, store them in Azure Container Registry, and automatically roll out updates to AKS.

  4. D

    Use local Docker Compose to build images and publish them to an external repository with no integration to Azure.

Show answer and explanation

Correct answers: A, C

Explanation

Both GitHub Actions and Azure DevOps Pipelines are recognized automation tools that seamlessly integrate with Azure services (e.g., Azure Container Registry and AKS). Following best practices, container images should be built, tested, and pushed into a trusted registry, like Azure Container Registry, before deployment to AKS. For further details, refer to Microsoft’s documentation on CI/CD using GitHub Actions (https://docs.github.com/actions) and Azure DevOps Pipelines (https://docs.microsoft.com/azure/devops/pipelines).

  • A. Correct.

    Option 1 is correct. GitHub Actions can be configured for continuous integration and deployment (CI/CD). By integrating with Azure Container Registry (ACR), you can store images securely and then deploy them to AKS automatically via workflows, meeting the requirement for an end-to-end automated deployment process.

  • B. Incorrect.

    Option 2 is incorrect. Relying on manual Docker and kubectl commands for each commit does not provide an end-to-end automated process. This approach is error-prone and does not scale well for continuous deployment scenarios.

  • C. Correct.

    Option 3 is correct. Azure DevOps Pipelines allow you to set up CI/CD workflows, build images, store them in ACR, and deploy updates to AKS. This meets the requirements for secure storage, automated testing, and rapid deployment on every change.

  • D. Incorrect.

    Option 4 is incorrect. Local Docker Compose builds and external repositories without any Azure-based integration do not fulfill the requirement for an automated CI/CD pipeline or a secure container registry integrated with AKS.

Timed practice exam

Take a AZ-305 practice test under exam conditions

70 questions in 100 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam