DevOps Engineer interview question · Most asked

Why is deploying the latest tag a bad idea, and what should you do instead?

Create a free account to save this page, take notes and track your progress. Sign in

Summary

Tags are mutable: latest (or node:22) points to different content over time, so nodes may run different images, rebuilds produce different artifacts and rollbacks can't identify the previous version. Build once, tag with the commit SHA, deploy by immutable tag or digest, and pin base images with automated update PRs.

Longer Answer

Enforce it with admission policies that reject :latest, immutable tags in the registry, and lock files for application dependencies. Renovate or Dependabot keep pinned versions fresh.

Key Points

  • Tags move; digests don't.
  • Deploy by SHA tag or digest.
  • Pin base images and lock dependencies.
  • Automate updates.

Deep dive: DevOps in Production: Same Commit, Different Build

Explanation

What interviewers look for

Reproducibility and rollback reasoning.

More most-asked DevOps Engineer questions

← All DevOps Engineer questions

Was this page helpful?