An auditor asks you to prove that all production changes in the last year were reviewed. How do you produce it?
IntermediateScenarioCloud IAM and Compliance
Answer
Situation read → If deploys only come from merged PRs, evidence is a query. If people deploy by hand, you have a gap.
What I'd do →
- Export merged PRs to
mainwith approvers via GitHub API:gh pr list --state merged --base main --limit 1000 --json number,mergedAt,reviews. - Match deployments (Argo CD history, CI deploy jobs) to PR commits.
- Show branch protection settings and their history (audit log) to prove no bypass.
- List exceptions (break-glass deploys) with their post-review tickets.
- Show CloudTrail to prove there were no console changes outside the pipeline, or explain the ones found.
Why → A control is only as good as its evidence trail.
Interview tip → Say "every prod change maps to a PR, an approver and a pipeline run".
More on Cloud IAM and Compliance
You find an IAM policy with `"Action": "*", "Resource": "*"` attached to an application role. How do you right-size it?BeginnerYour company has 40 AWS accounts with no central controls. How do you set up preventive guardrails?IntermediateGuardDuty reports `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS`. What happened and what do you do?AdvancedYour company must pass SOC 2 Type II in six months. What does DevOps own, and how do you automate evidence?IntermediateA partner needs access to one S3 bucket in your account. How do you set up cross-account access safely?IntermediateSomeone logged in with the AWS root user last night. How do you react, and how should you have known?Beginner