Skip to the page

AWS design and SRE · mid

AWS network design, accounts and IAM denials

A solid AWS base has non-overlapping CIDRs, public, private and data subnets in three AZs, VPC endpoints, separate accounts, central sign-in and IAM policies that are read with the full evaluation rules.

The notes

What you must know

  • Network: a VPC CIDR from a company IP plan that does not overlap other VPCs, DR regions, offices or partners. Three AZs.
  • Per AZ: a small public subnet (load balancers, NAT), a large private app subnet (nodes and pods), and a private data subnet with no route to the internet.
  • Private subnets reach the internet through NAT, one per AZ to avoid cross-AZ dependency. Use VPC endpoints (an S3 gateway endpoint, interface endpoints for ECR and others) so AWS API traffic does not pass through NAT.
  • An account is the strongest isolation boundary. Use AWS Organizations with OUs (security, infrastructure, workloads, sandbox) and a landing zone.
  • People sign in through IAM Identity Center tied to the company identity provider, with permission sets per account, short sessions and MFA, not IAM users. Production admin is limited or approved just in time.
  • Service control policies set guardrails, for example deny leaving the organization and deny disabling audit logging.
  • AccessDenied: object actions need the object ARN with /*, and ListBucket needs the bucket ARN. A customer-managed KMS key needs kms:GenerateDataKey and kms:Decrypt for the role, and the key policy must allow it.
  • Evaluation: an explicit deny wins. Otherwise a request needs an allow, and nothing blocking from SCPs, permission boundaries, session policies or endpoint policies.

The red pen

Common traps: mistake → fix

  • Mistake: IAM allow is enough

    Fix: SCPs, boundaries and key policies can still block.

  • Mistake: One account with tags is isolation

    Fix: accounts are the real boundary.

  • Mistake: NAT is the way to reach S3 from private subnets

    Fix: use endpoints and save cost.

Easy to hard

Questions interviewers ask, easy to hard

  1. Design the VPC for a new product in Mumbai.
  2. Design AWS accounts and access for a growing fintech.
  3. This role gets AccessDenied on S3 with a KMS key. Find every reason.
  4. Why are VPC endpoints useful?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview