AWS core: IAM, VPC, compute and load balancing, S3, RDS, EKS specifics

Three planes: identity decides if the call is allowed, the network decides if the packet arrives, the service decides what it guarantees. Most incidents are one plane's assumption meeting another's reality.

Read the briefing
About 4 min to read 9 drills

What to remember

  1. Explicit deny wins; then allow from identity or resource policy. Cross-account needs both sides. Boundaries and SCPs only subtract.
  2. Trust policy = who may assume; permissions policy = what they can then do. Confusing the two is the most common IAM interview stumble.
  3. Multi-AZ RDS is availability, not read scale. The standby serves nothing. Read replicas are async, and their lag is your RPO.
  4. NAT gateways are zonal — one per zone. A shared NAT turns one zone's failure into everyone's egress outage.
  5. IRSA keeps the node role minimal. Without it, anything on the node inherits whatever the node can do.

The big picture

AWS questions in SRE loops are rarely trivia; they test whether you can predict behaviour: how an IAM decision is reached, why a private subnet cannot reach the internet, what an ASG replaces and when, what S3 and RDS actually guarantee, and how a pod gets credentials on EKS. The same reasoning transfers to other clouds, and interviewers say so.

The mental model

Three planes. Identity decides whether the call is allowed (explicit deny wins, then allow from identity or resource policy, then boundaries and SCPs). The network decides whether the packet arrives (route table, then stateful security group, then stateless NACL). The service decides what it guarantees (durability, consistency, failover). Most incidents are one plane's assumption meeting another's reality.

In depth

IAM: evaluation, roles, and the common traps

Evaluation order in one account: an explicit Deny anywhere wins; otherwise an Allow in either the identity policy or the resource policy suffices; permission boundaries and Organizations SCPs act as ceilings that can only remove permissions. Cross-account access needs an allow on both sides: the resource policy (or trust policy) in the target account and the identity policy in the calling account.

A role is assumed via STS for short-lived credentials: its trust policy says who may assume it, its permissions policy says what it can then do; confusing the two is the most common IAM interview stumble. Conditions (aws:SourceArn, sts:ExternalId, aws:PrincipalOrgID) are what make a trust policy safe. Traps: wildcard actions on wildcard resources, policies that grant iam:PassRole without a resource constraint (privilege escalation), and long-lived access keys where a role would do.

VPC, compute, and load balancing

A VPC spans availability zones through subnets, each with a route table. A subnet is "public" only because its route table sends 0.0.0.0/0 to an internet gateway; private subnets egress through a NAT gateway, which is zonal (put one per zone and route each subnet to its own, or a zone failure takes out other zones' egress and you pay cross-zone charges). Security groups are stateful allow-lists that can reference other security groups; NACLs are stateless and need ephemeral-port rules for return traffic.

An Auto Scaling Group replaces instances failing EC2 status checks and, when configured, ELB target health checks: forgetting to enable ELB health checks means an instance that is up but not serving stays in the group forever. An ALB terminates HTTP(S), routes by host and path, and needs a health check path that does not cascade; an NLB is L4, preserves the client source IP (on by default for instance targets; IP targets on TCP/TLS need the preserve_client_ip.enabled attribute, or Proxy Protocol v2 to carry it), and scales to very high throughput. Target group deregistration delay is the draining knob.

S3, RDS, and EKS specifics

S3 is strongly consistent for reads after writes and for list operations; versioning keeps every version and turns deletions into delete markers (so "deleted" objects still cost money until lifecycle rules expire them); bucket policies plus Block Public Access are the guardrail against the classic public-bucket incident; pre-signed URLs delegate time-bounded access without credentials.

RDS Multi-AZ instance deployments keep a synchronous standby in another zone for automatic failover and serve no reads from it: it is availability, not scale. Read replicas are asynchronous and add read capacity with lag you must monitor; promoting one is a data-loss decision bounded by that lag. Parameter groups, maintenance windows, and storage autoscaling are the operational levers that show up in incidents.

EKS: IRSA (or EKS Pod Identity) maps a Kubernetes service account to an IAM role through the cluster's OIDC provider, so pods get scoped short-lived credentials instead of node-role permissions; the node role should be minimal precisely because anything on the node inherits it otherwise. The VPC CNI gives pods real VPC addresses, which means pod density is bounded by ENI limits per instance type and IP address planning is a real constraint.

Myths and facts

Myth: An identity policy allowing an action is enough for cross-account access.

Fact: Cross-account calls need an allow in both accounts: the resource or trust policy and the caller's identity policy.

Myth: A NAT gateway makes private instances reachable from the internet.

Fact: NAT is outbound only; inbound needs a load balancer, DNAT, or a public address.

Myth: RDS Multi-AZ gives you a read replica.

Fact: The standby serves no traffic; it exists for failover. Read scaling needs read replicas.

Myth: Security groups need outbound rules for replies.

Fact: They are stateful; NACLs are the stateless layer that needs ephemeral-port rules.

Myth: S3 is eventually consistent.

Fact: It has been strongly consistent for reads-after-writes and for lists since December 2020.

How pros do it

  • Prefer roles and short-lived credentials over access keys; constrain iam:PassRole and use conditions in trust policies.
  • One NAT gateway per zone with per-zone route tables; expect and monitor NAT port allocation errors.
  • Enable ELB health checks on ASGs and match deregistration delay to your slowest request.
  • Turn on S3 Block Public Access and versioning with lifecycle expiry; use pre-signed URLs for delegated access.
  • On EKS, use IRSA/Pod Identity per workload, keep node roles minimal, and plan pod IP capacity against ENI limits.

Questions people ask

My pod gets AccessDenied but the role has the permission. Where do I look?

Walk the layers in order and say so: first whether the pod is actually using the role (the service-account annotation, the projected token, AWS_ROLE_ARN in the pod; aws sts get-caller-identity from inside the pod settles it), then an explicit Deny, an SCP, or a permissions boundary above the role, then the resource policy on the target (bucket policy, KMS key policy). The point being graded is that an Allow in the role is necessary, not sufficient.

Do I need NACLs if I use security groups?

Usually only for coarse subnet-level denies; say why security groups carry the policy: they are stateful, attach to the ENI, and can reference other security groups, which expresses tier-to-tier intent. If you do add NACL rules, remember they are stateless and need ephemeral-port rules for return traffic.

Instances are 'healthy' in the ASG but serve errors. Why?

Say the two meanings of healthy: the ASG is using EC2 status checks, which test the hypervisor and OS, not the application. Enable ELB health checks on the group so target-group failures trigger replacement, and set the grace period from measured warm-up so the fix does not start a launch-and-kill loop.

How much data does an RDS read-replica promotion lose?

Up to the replication lag at the moment of failure, because replicas are asynchronous; say that you monitor ReplicaLag and treat it as your RPO. Contrast it with Multi-AZ, whose synchronous standby loses nothing on failover but serves no reads.

Why did our pods stop getting IPs?

Name it as VPC CNI address exhaustion: pods take real VPC addresses, so either the subnet CIDR is too small or the ENI and IP limits of the instance type are reached. Say you plan IP space per cluster (larger subnets, secondary CIDRs, prefix delegation) and alert on subnet free-IP counts.

Further reading

Drills · 9

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

A private subnet's network ACL has one inbound rule: allow TCP 443 from 10.0.1.0/24. Its outbound rules were 'mirrored' from inbound: allow TCP 443 to 10.0.1.0/24, and nothing else. The instance's security group allows inbound TCP 443 from 10.0.1.0/24. Clients in 10.0.1.0/24 open a connection to the instance on port 443 and it times out during the TCP handshake. Why?

  1. Network ACLs only filter traffic that crosses the internet gateway, so these rules are irrelevant and the failure is a routing problem. A NACL evaluates every packet entering or leaving its subnet, including traffic from other subnets in the same VPC.
  2. The NACL must also allow ICMP; without it the TCP handshake cannot negotiate MSS and never completes. The three-way handshake carries MSS inside TCP options; ICMP matters for path-MTU discovery and ping, not for SYN/SYN-ACK.
  3. Network ACLs are stateless: the SYN-ACK goes back to the client's ephemeral source port (1024–65535), which the outbound rule for port 443 does not match, so the subnet drops it. Add an outbound allow for TCP 1024–65535 to 10.0.1.0/24. Each direction is evaluated independently by a NACL; return traffic needs its own rule covering the client's ephemeral port range.
  4. The security group needs a matching outbound rule for TCP 443 so the reply can leave the instance. Security groups are stateful: replies to an allowed inbound connection are permitted regardless of outbound rules.
In short

Network ACLs are stateless, so the reply needs its own outbound rule for the client's ephemeral ports 1024-65535.

Why

Security groups attach to an ENI and are stateful: connection tracking lets the reply to an allowed inbound flow leave without an outbound rule. Network ACLs attach to a subnet and are stateless: inbound and outbound rule lists are evaluated separately, in ascending rule-number order, first match wins. A client's connection arrives on port 443 but its reply travels to the client's ephemeral port, so the outbound list needs a rule for 1024–65535 (the range AWS documents for ELBs and NAT gateways; Linux clients use a subset of it). The interview tell is a candidate who "mirrors" inbound rules to outbound and cannot explain why the handshake stalls.

The common mistake

'Mirroring' the inbound rule to outbound on the same port. The reply goes to the client's ephemeral port, not to the service port, so the SYN-ACK is dropped and the handshake times out.

Read the docs

2 Answer out loud

A pod on EKS needs to read one S3 bucket and nothing else. Explain, end to end, how IAM Roles for Service Accounts gets scoped credentials into that pod, and why it is preferred over the node instance profile. Three to six sentences.

In short

A strong answer says the pod's service-account token is exchanged with STS for short-lived role credentials through the cluster's OIDC provider.

What a strong answer does
  • mechanism: Cluster OIDC issuer registered as an IAM identity provider; SA annotated with the role ARN; webhook injects a projected SA token and env vars; SDK calls sts:AssumeRoleWithWebIdentity; trust policy conditions on the token's sub (system:serviceaccount:ns:name) and audience; credentials are short-lived and refreshed.
  • security reasoning: Instance-profile credentials sit on the metadata endpoint reachable by any pod, so every pod gets the union of node permissions; IRSA gives one role per workload, no static keys, and CloudTrail attribution per service account; mentions blocking IMDS from pods or EKS Pod Identity as the agent-based alternative.
  • communication: Setup → pod start → credential exchange → why, told once, with correct names and no filler.
Why

IRSA is workload identity by OIDC federation: Kubernetes signs a token asserting which service account a pod runs as, IAM trusts the cluster's issuer, and STS exchanges that token for role credentials whose trust policy is pinned to one namespace and service account. The node instance profile is the anti-pattern because credentials on the metadata endpoint are readable by every pod on the node. Interviewers listen for the trust-policy condition on sub, the projected token, and AssumeRoleWithWebIdentity; a staff-level answer also names EKS Pod Identity (agent-based, no per-cluster OIDC provider) as the newer alternative and notes the same pattern exists on other clouds as workload identity.

The common mistake

Saying 'attach the role to the pod' or describing the node instance profile. The mechanism is a token exchange with a trust policy pinned to one service account; without the sub condition, any service account in the cluster can assume the role.

Read the docs

3 Read the output

The role calls s3:PutObject on acme-raw/2024/part-0.parquet, then s3:GetObject on the same key. What is the result of each call?

# Identity-based policy attached to role "data-loader"
{
  "Version": "2012-10-17",
  "Statement": [
    { "Effect": "Allow", "Action": "s3:*",
      "Resource": ["arn:aws:s3:::acme-raw", "arn:aws:s3:::acme-raw/*"] }
  ]
}

# Permissions boundary set on role "data-loader"
{
  "Version": "2012-10-17",
  "Statement": [
    { "Effect": "Allow", "Action": ["s3:GetObject", "s3:ListBucket"], "Resource": "*" }
  ]
}

# SCP attached to the OU that contains this account
{
  "Version": "2012-10-17",
  "Statement": [
    { "Effect": "Allow", "Action": "*", "Resource": "*" },
    { "Effect": "Deny",  "Action": "s3:DeleteBucket", "Resource": "*" }
  ]
}
  1. PutObject succeeds and GetObject fails: the boundary's Resource '*' is broader than the bucket ARN, and the narrower resource wins. There is no narrower-wins rule; each layer is evaluated independently and the request needs an Allow in every applicable layer.
  2. Both are denied: the SCP contains an explicit Deny, and any Deny in an SCP blocks the whole service in that account. An explicit Deny applies only to the actions and resources it names; other S3 actions are evaluated normally.
  3. Both succeed: the identity policy grants s3:* and a permissions boundary can only add the permissions it lists. A permissions boundary never grants anything; it is a ceiling that the identity policy must fit inside.
  4. PutObject → AccessDenied; GetObject → succeeds. The boundary caps the identity policy, so an action must be allowed by both; the SCP permits everything except DeleteBucket and blocks neither call. Effective permissions are the intersection of SCP, permissions boundary, and identity policy; PutObject finds no Allow in the boundary.
In short

PutObject is denied and GetObject succeeds: the permissions boundary caps the identity policy, and the SCP blocks neither call.

Why

Evaluation order: an explicit Deny anywhere ends the request as denied. Otherwise the request must find an Allow in every layer that applies — the SCP (organization ceiling), the permissions boundary if one is attached, a session policy if one was passed at AssumeRole time, and finally the identity policy (or, in the same account, a resource policy). The boundary here allows only GetObject and ListBucket, so PutObject falls to an implicit deny even though the identity policy says s3:. When a role "has s3: but still gets AccessDenied", the first things to check are a boundary, an SCP, and a session policy — none of them appear in the role's own policy list.

The common mistake

Treating a permissions boundary or an SCP as something that grants. Both are ceilings; they can only remove, and an Allow in the identity policy that the boundary does not also allow is an implicit deny.

Read the docs

4 Pick the strongest answer

A team enables Multi-AZ on a PostgreSQL RDS instance (a Multi-AZ DB instance deployment, not a Multi-AZ DB cluster) to relieve read pressure on the primary. A week later the primary's CPU is unchanged and no queries hit the second AZ. Why, and what should they have done?

  1. Multi-AZ spreads queries across both AZs only for engines with native clustering, so PostgreSQL needs Aurora for this. Multi-AZ never load-balances queries for any engine; it is a failover mechanism.
  2. Read replicas would not help either, because RDS replication is synchronous and adds latency to every write. Read replicas use the engine's asynchronous replication: writes are not delayed, replicas may lag.
  3. The standby serves reads automatically once the DNS endpoint updates; they forgot to repoint the application at the new endpoint. The single instance endpoint always resolves to the current primary; the standby never accepts client connections.
  4. The Multi-AZ standby is a synchronous replica that accepts no connections; it exists for failover. Read scaling needs read replicas (asynchronous), with the application sending reads to the replica endpoints. In an instance deployment the standby is invisible to clients; read replicas are the read-scaling primitive and carry replica lag.
In short

The Multi-AZ standby takes no reads; it exists for failover, so read scaling needs read replicas.

Why

A Multi-AZ instance deployment keeps a synchronously replicated standby in another AZ and, on failure, flips the instance endpoint's DNS to it; the standby is for durability and failover, not for load. Read replicas are separate instances fed asynchronously, each with its own endpoint, so the application must route reads to them and tolerate lag; a replica can be promoted to a standalone primary. The staff-level nuance is the Multi-AZ DB cluster deployment, which has two readable standbys behind a reader endpoint — the one case where "Multi-AZ" also scales reads.

Read the docs

5 Pick the strongest answer

A service must present a fixed pair of IP addresses for a partner's firewall allowlist, and the backend must see the real client source IP at the TCP level without parsing HTTP headers. Which load balancer satisfies both?

  1. An Application Load Balancer with static IPs enabled in the listener settings. An ALB is addressed by DNS name and its IPs change; fixed IPs require putting an NLB or Global Accelerator in front of it.
  2. Either works: both ALB and NLB operate at layer 7 and inject X-Forwarded-For. An NLB does not look inside HTTP; its equivalent for passing the client address is source-IP preservation or Proxy Protocol v2.
  3. An Application Load Balancer, since it keeps the client's TCP connection intact and you can attach Elastic IPs to it. An ALB terminates the client connection and opens a new one to the target; the client IP survives only in X-Forwarded-For.
  4. A Network Load Balancer: one static (or Elastic) IP per AZ, layer-4 forwarding that preserves the client source IP to instance targets by default. NLB offers a fixed IP per enabled AZ and forwards TCP flows with the original source address.
In short

A Network Load Balancer: it gives one static IP per zone and passes the client's real source IP to the targets.

Why

An ALB is an HTTP(S) reverse proxy: it terminates TLS, routes on host, path, and headers, and makes a fresh connection to the target, which therefore sees the ALB's private IP and must read X-Forwarded-For. An NLB works on flows: it forwards TCP/UDP (optionally terminating TLS) with one static IP per AZ, preserves the client source IP for instance targets, and handles non-HTTP protocols and very high connection rates. Choose ALB for content routing and WAF, NLB for fixed IPs, source-IP preservation, or raw TCP/UDP; a common design puts an NLB in front of an ALB when you need both.

Read the docs

6 Find what's broken

A monitoring vendor operating from AWS account 999999999999 needs read-only access to CloudWatch metrics in your account. This PR creates the cross-account role. Which lines would you block the PR on, and what is the fix for each?

# trust policy: role "vendor-monitoring-readonly" in account 111111111111
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": { "AWS": "*" },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": { "sts:ExternalId": "acme-7f3a" }
      }
    }
  ]
}

# permissions policy attached to the role
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadMetrics",
      "Effect": "Allow",
      "Action": ["cloudwatch:*", "logs:*"],
      "Resource": "*"
    },
    {
      "Sid": "TagRead",
      "Effect": "Allow",
      "Action": "tag:GetResources",
      "Resource": "*"
    }
  ]
}
In short

Line 7 lets any AWS account assume the role, and line 23 grants far more than reading metrics; pin the principal and list only read actions.

What's broken
  • Line 7: Principal '*' lets any IAM principal in any AWS account assume the role as long as it supplies the ExternalId; the ExternalId is a shared identifier against the confused-deputy problem, not a secret credential.
  • Line 23: cloudwatch: and logs: grant far more than reading metrics: PutMetricData, DeleteAlarms, DeleteLogGroup, and reading every log line in the account.
Why

Two separate documents gate an assumed role: the trust policy answers who may assume and the permissions policy answers what the session may do, and a request needs both. A wildcard principal with only an ExternalId condition is the classic misuse: the ExternalId stops one of the vendor's customers from pointing the vendor at another customer's role, but it is passed around in plaintext and does not identify anyone, so the principal must still name the vendor's account. Line 24's Resource: "*" is correct, not a fault: CloudWatch metric read APIs such as GetMetricData and ListMetrics do not support resource-level ARNs. Cross-account, the vendor's own identity policy must also allow sts:AssumeRole on your role ARN — your trust policy alone does not complete the handshake.

Read the docs

7 Scenario: what do you do next?

14:05. A marketing push triples traffic to the api service. Its Auto Scaling Group (min 6, max 20, health check type ELB, health check grace period 60s) scales from 6 to 12 instances behind an ALB. From 14:08 the ALB's HTTPCode_ELB_504_Count and HTTPCode_Target_5XX_Count both climb; about 8% of requests fail and p99 latency has tripled. The EC2 console shows all 12 instances passing status checks, but the ASG activity history shows an instance being terminated and a replacement launched every two or three minutes.

Step 1. You have two minutes before the incident channel asks for a status. What do you look at first?

  1. SSH to one new instance and tail the application log. Useful in step two, but a single instance cannot show the fleet-wide pattern that the ALB and ASG already record.
  2. Raise the ASG max size to 24 so healthy capacity outweighs the failures. If new instances are cycling, more of them cycle too; you add churn, not capacity.
  3. Roll back the last application deploy. No deploy happened; the trigger was a scale-out. Rolling back on a guess costs time and proves nothing.
  4. The target group's health (describe-target-health) and HealthyHostCount against the ASG's InService count, plus the split between ELB-generated and target-generated 5xx. The ALB's view of health is the one that decides who gets traffic; EC2 status checks say nothing about the application. The 5xx split tells you whether the ALB cannot reach targets or targets are failing.

Step 2. describe-target-health: the 6 original targets are healthy; every new target sits in initial, flips to unhealthy, and is then terminated by the ASG. HealthyHostCount has been flat at 6 the whole time. The health check is GET /health, interval 10s, unhealthy threshold 3. On one new instance the application log shows cache priming taking about 90 seconds before /health returns 200. What is your mitigation?

  1. Suspend the ASG's ReplaceUnhealthy process (or raise the health-check grace period well above 90s) so new instances finish warming and pass the check, then watch HealthyHostCount and 5xx. Breaks the launch-and-kill loop immediately and reversibly with no code change; instances that finish warming turn healthy and start absorbing load.
  2. Switch the ASG health check type from ELB to EC2. Stops the churn, but the ASG will never again replace an instance whose OS is up and application is dead — you trade this outage for a worse one later.
  3. Loosen the ALB health check to a 30s interval and unhealthy threshold of 10. Slows detection of genuinely broken instances for every future incident and does not address the real mismatch: grace period shorter than warm-up.
  4. Terminate the 6 old instances so the ASG replaces everything with fresh capacity. They are the only healthy targets; the ALB would return 503 for every request.

Step 3. After suspending ReplaceUnhealthy, the six new instances turn healthy within two minutes, HealthyHostCount reaches 12, and 5xx returns to baseline. For the postmortem, what systemic fix do you propose?

  1. Add a runbook step: if 5xx after a scale-out, suspend ReplaceUnhealthy. A runbook for a fully understood configuration bug is a smell; fix the configuration so the page never fires.
  2. Set the grace period from measured warm-up with margin in the IaC that defines the ASG (or gate registration with a launch lifecycle hook that completes after warm-up), and add an alert on HealthyHostCount diverging from the ASG's InService count. Fixes the mechanism where it lives, adds a detector for this failure class, and puts the number under review instead of in someone's memory.
  3. Pre-scale the ASG to 12 permanently so scale-outs are rare. Doubles steady-state cost and leaves the loop in place for the next spike past 12.
  4. Change the health check to a TCP check on the listening port so instances pass as soon as the socket opens. A TCP check passes before the app can serve, so the ALB routes traffic to cold instances and users see errors and latency instead.
In short

Check the target group's health first, suspend ReplaceUnhealthy to stop the kill loop, then set the grace period from measured warm-up.

Why

There are two unrelated meanings of "healthy" here. EC2 status checks test the hypervisor and OS; ELB target health tests the application through the health-check path, and an ALB only routes to targets that have passed it (targets in initial receive nothing). With health check type ELB, the ASG acts on the ALB's verdict after the grace period expires — and if warm-up is longer than the grace period, every new instance is killed before it can ever pass, so capacity never grows, the original instances saturate, and the ALB emits 504s while the ASG log looks busy. The shape interviewers score: read the load balancer's view before touching anything, stop the loop with a reversible action, then fix the number in IaC and add a detector.

Read the docs

8 Design round

A 40-engineer startup runs everything — prod, staging, CI, and three teams' experiments — in one AWS account with IAM users and shared access keys. You have six months to move to a multi-account setup without a freeze on feature work. Design the landing zone: account structure, identity, guardrails, logging, and networking, then say how you would migrate and how you would prove the guardrails work.

  • Three product teams plus platform; prod and non-prod must be separable for compliance and blast radius.
  • Central, tamper-evident audit logs are a hard requirement from the first week.
  • No IAM users or long-lived access keys for humans in the end state.
  • Six months, no feature freeze; the existing account cannot be rebuilt from scratch.
In short

A strong design uses a new empty management account, SCPs on OUs, Identity Center for people, a locked log-archive account, and a hub network.

A strong answer covers
  • Organization with OUs (Security, Infrastructure, Workloads/Prod, Workloads/NonProd, Sandbox) and accounts per team-and-environment; a new empty management account, with the legacy account joining as one workload account.
  • Guardrails as SCPs on OUs: deny leaving the organization, deny disabling or altering CloudTrail and Config, restrict regions, deny root-user actions; knows SCPs only restrict and do not apply to the management account.
  • Human identity through IAM Identity Center with permission sets mapped to IdP groups; workloads use roles (IRSA, instance profiles, CI OIDC); a break-glass role whose use pages someone.
  • Log-archive account receiving an organization CloudTrail and Config into an S3 bucket with versioning, Object Lock or a write-only bucket policy, plus a security-tooling account as delegated admin for GuardDuty and Security Hub.
  • Networking: an IPAM/CIDR plan with no overlaps and a Transit Gateway hub (or RAM-shared VPCs) with central egress instead of a peering mesh.
  • Migration and verification: account vending with an IaC baseline; non-prod moves first; SCPs tested by attempting denied actions from a sandbox role and checking CloudTrail; cost allocation by account and tag.
What a strong answer does
  • design quality: Separate management account, OU-scoped SCPs with the right denies, Identity Center plus workload roles, locked log archive, hub network with IPAM, IaC vending, and a migration order.
  • tradeoffs: Two or more tradeoffs with a decision each (TGW vs shared VPC, Object Lock retention irreversibility, account sprawl vs isolation).
  • communication: Restates constraints, walks structure, guardrails, identity, logging, network, migration, verification, and closes with decisions.
Why

The landing-zone primitives interviewers expect: an Organization whose management account holds nothing but the organization, OUs as the unit of policy, SCPs as guardrails that restrict rather than grant, federated human identity with short-lived sessions, a log archive that even administrators cannot rewrite, and a hub network with a CIDR plan. The two gotchas that separate candidates are that SCPs do not apply to the management account (so the legacy account must not become it) and that Object Lock compliance retention is irreversible. A migration plan that starts with non-prod and proves guardrails with deliberate denied actions shows the difference between drawing boxes and operating them.

Read the docs

9 Quick recall

Versioning is on for a bucket. Someone 'cleans up' by deleting thousands of objects with plain DELETEs (no version id), and the storage bill does not move. What did each DELETE actually create, instead of removing data?

In short

The answer is a delete marker.

Accepted

delete marker · Delete marker · Delete Marker

Why

A simple DELETE on a versioned bucket inserts a delete marker as the new current version; GET returns 404 while every prior version remains and is listed by list-object-versions. Deleting the marker itself (by version id) 'undeletes' the object, and lifecycle rules can expire noncurrent versions and clean up expired markers.

Read the docs

Next lesson CI/CD pipelines: artifacts, caching, secrets, environments, GitOps, rollbacks
Drill · AWS core
0:00

Loading…