Interview Prep/Real-World Interview/Deployments and releases

Your deployment pipeline is green but users report the old version is still live. What happened?

BeginnerScenarioDeployments and releases
Answer

Situation read → The pipeline reported success but the running thing didn't change. Usually caching or tagging.

What I'd do →

  1. Check what's actually running:
kubectl get deploy web -n prod -o jsonpath='{.spec.template.spec.containers[0].image}'
  1. If the image tag is latest or reused, Kubernetes saw no spec change and didn't roll pods; or nodes used a cached image with imagePullPolicy: IfNotPresent.
  2. For frontends, check the CDN: CloudFront still serving the old index.html. Invalidate it:
aws cloudfront create-invalidation --distribution-id E123ABC --paths "/index.html"
  1. Check browser caching headers: index.html should be no-cache; hashed assets can be cached forever.
  2. Fix the root cause: unique immutable tags (Git SHA), and a post-deploy check that queries /version.

Why → A deploy isn't done until you verify the running version, not the pipeline status.

Interview tip → "Never deploy latest to production" is an easy point to score.

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases