exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 7 question 71 discussion

Actual exam question from Microsoft's AZ-400
Question #: 71
Topic #: 7
[All AZ-400 Questions]

You have a project in Azure DevOps named Project1. Project1 contains a pipeline that builds a container image named Image1 and pushes Image1 to an Azure container registry named ACR1. Image1 uses a base image stored in Docker Hub.
You need to ensure that Image1 is updated automatically whenever the base image is updated.
What should you do?

  • A. Enable the Azure Event Grid resource provider and subscribe to registry events.
  • B. Add a Docker Hub service connection to Azure Pipelines.
  • C. Create and run an Azure Container Registry task.
  • D. Create a service hook in Project1.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Hooters
Highly Voted 4 years ago
C. Create and run an Azure Container Registry task
upvoted 19 times
...
kumardeb
Highly Voted 3 years, 11 months ago
C. Create and run an Azure Container Registry task.
upvoted 8 times
...
UrbanRellik
Most Recent 5 months ago
Selected Answer: C
C. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-base-images
upvoted 1 times
...
renzoku
1 year, 3 months ago
Selected Answer: C
C. Create and run an Azure Container Registry task. Can automatically build and update container images whenever the base image is changed. >Enable Task in ACR -ACR tasks allow you to automate container image builds whenever there are changes to the base image. >Create ACR Task -Automating actions based on changes in external container registries like Docker Hub. >Save and Run Task Run the task manually, this will be automatically triggered whenever the base image is updated in Docker Hub. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-base-images I think you can achieve the same using Docker Hub service connection in Azure Pipelines, but involves a lot more configuration than using Azure Container Registry task.
upvoted 1 times
...
zellck
1 year, 5 months ago
Selected Answer: C
C is the answer. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview#task-scenarios
upvoted 2 times
...
Fal991l
1 year, 7 months ago
Selected Answer: B
Yes, creating a Docker Hub service connection in Azure Pipelines is also a valid approach to automatically update Image1 whenever the base image is updated on Docker Hub. Here are the steps you can follow: In Azure DevOps, navigate to the Project Settings > Service connections. Click the "New service connection" button, and select "Docker Registry". Enter the Docker Hub registry URL and credentials. Save the service connection. In your build pipeline, add a Docker task to build and push the Image1 container to ACR1. In the Docker task, specify the base image from Docker Hub in the "FROM" statement in your Dockerfile. Enable the "Use Cache" option in the Docker task to speed up the build process..
upvoted 1 times
Fal991l
1 year, 7 months ago
Set the Docker task to check for updates to the base image on Docker Hub before building Image1. Save the changes to your build pipeline and run the pipeline to build and push Image1 to ACR1. By creating a Docker Hub service connection and configuring the Docker task to check for updates to the base image, Azure Pipelines will automatically pull the updated base image from Docker Hub and rebuild Image1 with the latest changes
upvoted 1 times
...
...
badaboom
1 year, 10 months ago
Selected Answer: C
Creating and running an Azure Container Registry task is one approach you could take to update Image1 automatically whenever the base image is updated on Docker Hub. Here is an example of how you could do this: In your build pipeline in Azure DevOps, add an Azure Container Registry task to the build step that generates Image1. In the Azure Container Registry task, specify the container registry (ACR1) where Image1 is stored and the name of the base image on Docker Hub. Set the task to check for updates to the base image on Docker Hub before building Image1. Save the changes to your build pipeline and run the pipeline to build and push Image1 to ACR1. Verify that the Azure Container Registry task updates Image1 automatically whenever the base image is updated on Docker Hub.
upvoted 3 times
...
syu31svc
2 years, 3 months ago
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-base-image-update "ACR Tasks supports automated container image builds when a container's base image is updated, such as when you patch the OS or application framework in one of your base images" C for correct
upvoted 2 times
...
Eltooth
2 years, 5 months ago
Selected Answer: C
C is correct answer.
upvoted 2 times
...
rdemontis
2 years, 7 months ago
Selected Answer: C
correct answer
upvoted 3 times
...
Sant25
3 years, 1 month ago
ANS - C https://azure.microsoft.com/en-in/updates/acr-tasks-ga/
upvoted 2 times
...
Dalias
3 years, 4 months ago
got this in 30 Jun 2021 exams. scored 800+ marks. C is correct
upvoted 6 times
...
Sylph
3 years, 6 months ago
Base images from a public repo in Docker Hub or MCR - For base images in public repositories, an ACR task checks for image updates at a random interval of between 10 and 60 minutes. Dependent tasks are run accordingly. https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-base-images#base-image-notifications
upvoted 5 times
...
27close
4 years ago
ACR Tasks supports automated container image builds when a container's base image is updated, such as when you patch the OS or application framework in one of your base images. ACR is the answer
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago