Interview Prep/Real-World Interview/Deployments and releases

A release needs a new IAM permission. The deploy went out but the feature fails with AccessDenied. What's the fix and the lesson?

BeginnerScenarioDeployments and releases
Answer

Situation read → The code shipped before the permission it depends on. A sequencing problem between app and infra pipelines.

What I'd do →

  1. Confirm from the logs: AccessDeniedException: User: arn:aws:sts::...:assumed-role/api-irsa/... is not authorized to perform: sqs:SendMessage.
  2. Add the permission in Terraform to the pod's IRSA or Pod Identity role, review the plan, apply.
  3. Pods pick up new IAM policy without restart, since credentials are fetched per call, though IAM changes can take a few seconds to propagate.
  4. Lesson: infra changes ship before the app that needs them. Either keep the IAM policy in the same repo and pipeline as the service, or make the app pipeline check that the infra version is applied first.

Why → The permission is part of the release; treating it as separate guarantees this outage again.

Interview tip → Quote the error format; it shows you have read real AccessDenied messages.

All Real-World Interview questions Roadmap: Interview readiness

More on Deployments and releases