Interview Prep/Real-World Interview/CI/CD pipeline deep-dive

How did your pipeline authenticate to AWS (or your cloud)?

IntermediateBehavioralCI/CD pipeline deep-dive
Answer

Good answer looks like → "OIDC federation. GitHub's OIDC provider is registered in IAM; each repo has a role whose trust policy checks token.actions.githubusercontent.com:aud is sts.amazonaws.com and sub matches repo:org/orders-api:environment:production. The workflow uses aws-actions/configure-aws-credentials with role-to-assume. No long-lived keys anywhere."

Follow-ups to expect → What stops a fork's PR from assuming the role? What permissions did the role have? What did you do before OIDC?

Red flags → AWS access keys stored as repo secrets with admin rights.

All Real-World Interview questions Roadmap: Interview readiness

More on CI/CD pipeline deep-dive