Cloud IAM & misconfiguration
Least-privilege IAM, over-permissive roles, wildcard policies, and the confused-deputy problem. Most cloud breaches are misconfigurations, not zero-days.
The mental model
Cloud IAM (Identity and Access Management) is the answer to one question asked millions of times a day: **"is this principal allowed to perform this action on this resource, under these conditions?"** Every API call to a cloud provider is evaluated against policy before it runs. Get the policy right and the cloud is a fortress of least privilege; get it wrong — grant one wildcard too many — and a single compromised credential owns the account. The defining fact of cloud security is that **most breaches are misconfigurations, not zero-days**: nobody breaks the provider's crypto; they walk in through a role that was granted * on *.
The analogy that sticks: IAM is a corporate keycard system where you write the access rules yourself. **Least privilege** is giving each employee a card that opens exactly the rooms their job needs — the mailroom clerk cannot open the CFO's safe. A **wildcard policy** (Action: "*", Resource: "*") is issuing a master key "to save time," then wondering why a stolen intern badge drained the vault. The confused deputy is the security guard who will open any door if you show them a work order — so an attacker who forges a work order gets the guard to use *their* master key on the attacker's behalf. Blast radius is the honest question after any card is stolen: which rooms does it actually open?
Why this dominates cloud-security interviews: the cloud's power is that any workload can call any API, so the *only* thing standing between a foothold and total account compromise is the policy attached to that workload's identity. Interviewers probe whether you think in principals, actions, resources, and conditions, whether you reach for least privilege and blast-radius reduction unprompted, and whether you can spot the wildcard, the over-trusting trust policy, and the confused-deputy gap in a policy JSON handed to you cold.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision