Azure Container Registry and Container Instances · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions

A production team deploys an image from Azure Container Registry to Azure Container Instances. The team must ensure that a restart or a later deploym…

Practice question from Azure Container Registry and Container Instances (AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions), with the correct answer and a step-by-step solution.

hard · MCQ · Q-4AB496

A production team deploys an image from Azure Container Registry to Azure Container Instances. The team must ensure that a restart or a later deployment always uses the exact image that was tested, even if another build later reuses the same tag. Which image reference should the deployment use?

  1. A.contosoregistry.azurecr.io/orders:latest
  2. B.contosoregistry.azurecr.io/orders:production
  3. C.contosoregistry.azurecr.io/orders@sha256:<tested-manifest-digest>Correct answer
  4. D.contosoregistry.azurecr.io/orders:restart-safe

Solution

An image digest identifies an immutable registry manifest, so it continues to refer to the exact tested image. Tags such as latest and production are mutable and can be reassigned to another image.

More from Azure Container Registry and Container Instances

All of Azure Container Registry and Container Instances

Practise more Develop Azure Compute Solutions

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed