Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Build and run images by using Azure Container Registry Tasks

A worked example

Multiple answers

Your team keeps the source code for an inference API in a private GitHub repository. The Dockerfile for the inference-api image starts with FROM myregistry.azurecr.io/pytorch-base:2.4. The pytorch-base image and the inference-api image are both stored in the same Azure Container Registry, myregistry.

The inference-api image must be rebuilt in Azure without anyone running a command:

  • each time code is committed to the main branch
  • each time the pytorch-base image is updated in the registry

Which two ACR Tasks capabilities should you use to meet the rebuild requirements? Each correct answer presents part of the solution. Select two.

Choose 2 answers.
Why

Two separate automatic triggers are needed. A source code trigger uses a webhook in the repository to start a build when code is committed. A base image trigger rebuilds images whose Dockerfile FROM statement names an updated base image. For a private base image, this works when the base image and the application image are in the same registry, as they are here. Scheduled triggers run on a timetable, and quick tasks and az acr run are started by hand.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free