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

CertStreak
Menu

Build, store, version, and manage container images by using Azure Container Registry

A worked example

Single answer

Your team publishes the inference-api image to Azure Container Registry and follows semantic versioning (MAJOR.MINOR.PATCH). The current release is 1.3.2. The new build adds a new, backward-compatible model endpoint. It was produced by pipeline run 4567 from Git commit abc123f.

Requirements:

  • Consumers that reference inference-api:1 must receive the new release without changing their configuration.
  • Production deployments must reference a tag that is never reused and that links to both the pipeline run and the source commit.

Which set of tags should you apply to the new image?

Choose one answer
Why

In semantic versioning, a backward-compatible new feature increments MINOR, so 1.3.2 becomes 1.4.0. Moving the stable major-version tag 1 to the new image gives automatic updates to consumers that reference inference-api:1. Production needs a unique tag that is never reused, and combining the version, build ID and commit SHA in one tag links the image to both the pipeline run and the source code.

  • Not correct: 1, 1.3, and 1.3.3-build4567-abc123f. PATCH is for bug fixes and security patches. A new backward-compatible feature requires a MINOR increment, not 1.3.3.
  • Not correct: 1.4, 1.4.0, and 1.4.0-build4567-abc123f. The stable 1 tag is not moved to the new image. Consumers that reference inference-api:1 would therefore keep pulling the previous image.
  • Not correct: 2, 2.0, and 2.0.0-build4567-abc123f. MAJOR is incremented only for breaking changes. Tagging the build 2.x also means consumers that reference inference-api:1 would not receive it.
  • Correct: 1, 1.4, and 1.4.0-build4567-abc123f. A backward-compatible feature increments MINOR, so the version is 1.4.0. Moving the stable 1 tag gives inference-api:1 consumers the update. The combined tag is unique and includes both the build ID and the commit SHA.
  • Not correct: 1, 1.4, and latest. latest, 1, and 1.4 are all stable tags that move with later pushes. None of them is unique or carries the build ID and commit SHA.

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