A team deploys its API by referencing myapp:latest. After a scale-out, new instances started running a build that was pushed an hour earlier and never tested, while older instances kept the tested build. The team wants every instance to run exactly the build that passed testing and keep releasing several times a day. What should the team change?
Choose one.
Stable tags move to new builds; unique tags identify one build forever.
The symptom comes from a stable tag: latest was reassigned to a newer push, so instances that pulled after the push got the untested build. Deploying a unique tag per build (build ID, commit SHA or date stamp) makes every pull deterministic while new releases simply get new tags. Locking latest blocks releases, and a version tag such as 1.4 is still a stable tag that is expected to be reassigned.
- Recognise the drift: instances pulling the same tag at different times got different images.
- Ask whether the tag can be reassigned; latest and 1.4 both can.
- Deploy a tag that is written once per build.
Exam tip: Deploy unique tags; keep stable tags for base images and humans.
AI-200 Container Hosting: Azure Container Registry, ACR Tasks and App Service Containers — the lesson that teaches this.