1.Foundations and Identity — Four Questions Every Interview Opens With
The first four questions test whether you understand the failure boundary and the identity model. Region versus Availability Zone is really a question about what multi-AZ does and does not protect against. The three identity questions test whether you know that a role has no password, that an explicit deny always wins, and that a credential which expires cannot be leaked permanently.
Key features
- An Availability Zone is one or more discrete data centres with independent power, cooling and networking, physically separated inside one Region
- Multi-AZ protects against the loss of a zone — it does not protect against a bad deploy, a corrupted row, a deleted bucket or a Region-wide event
- A user is a long-lived identity with credentials; a role is an identity anything can assume to receive temporary credentials, and has no password
- Identity-based policies attach to a principal and say what it may do; resource-based policies attach to a resource and name who may reach it
- Evaluation order: an explicit deny always wins, then an organization SCP or permission boundary must allow, then an explicit allow is required — anything not allowed is denied
- Temporary credentials expire on their own, which removes the rotation task and caps the useful life of a leaked credential to the session length
The four questions, the answer in one breath, and the follow-up that separates people
- Three nested boxes showing the containment levels, with two failure types outside them.
- Outermost: the Region, a geographic area such as eu-west-1, containing multiple Availability Zones.
- Inside it: two Availability Zones, each one or more discrete data centres with independent power, cooling and networking.
- Inside each zone: subnets and the resources placed in them.
- Multi-AZ deployment spans both zones, so losing one zone leaves the workload running in the other.
- Two failures cross every boundary: a bad deployment, which ships to both zones at once, and data corruption or deletion, which replicates to both.
- The control for those two is a tested rollback and a tested restore, not more zones.
Signature
Region ⊃ AZ · user vs role · identity vs resource policy · deny > allow > implicit deny
Multi-AZ contains a zone failure and nothing else — not a bad deploy, not a corrupted row, not a deleted bucket. A role is permissions plus a trust policy and has no credentials until assumed. Explicit deny always wins, an allow is always required, and an unexplained AccessDenied on an encrypted object is usually the KMS key policy.