30 min readAI-assisted

Chapter Self-Check

Companion question bank for the 19-part tutorial series in this folder: 01-fundamentals-and-account-structure.md, 02-iam-and-identity.md, 03-compute-ec2-and-autoscaling.md, 04-networking-vpc-deep-dive.md, 05-storage-s3-ebs-efs.md, 06-managed-databases-and-data-services.md, 07-containers-and-serverless.md, 08-load-balancing-cdn-and-dns.md, 09-security-and-compliance.md, 10-monitoring-logging-and-tracing.md, 11-cicd-iac-and-messaging.md, 12-multi-region-dr-migration-and-cheatsheet.md, 13-api-gateway-integration-and-identity.md, 14-beanstalk-sam-and-developer-tooling.md, 15-systems-manager-and-fleet-operations.md, 16-cost-optimization-and-finops.md, 17-migration-and-modernization.md, 18-data-analytics-and-engineering.md, 19-machine-learning-and-ai.md.

Answers are short and plain — expand out loud using the diagrams and worked examples in the tutorials.


Part 1 Questions: Fundamentals & Account Structure#

What's the difference between a Region and an Availability Zone?

A Region is a large geographic area; an AZ is one or more physically separate data centers within that region, with independent power/cooling, connected to other AZs via fast private links.

Why is a single, shared AWS account for everything considered a trap?

No real isolation — a mistake or compromise in one area (dev, staging, one team) has a blast radius spanning the entire account, including production.

What does an SCP actually do?

Sets a maximum-possible-permissions ceiling for an account/OU — it never grants anything on its own; an IAM policy inside the account still has to separately grant the actual permission.

Why should the Organizations management account never run workloads?

It has ultimate authority over every member account — mixing that high-privilege control plane with ordinary application risk is unnecessary privilege concentration.

Why centralize audit logs in a separate log-archive account?

A compromised workload account's own local logs could be tampered with or deleted — a separate account the workload has no delete permission on guarantees a tamper-evident trail.

What are the six pillars of the Well-Architected Framework?

Operational Excellence, Security, Reliability, Performance Efficiency, Cost Optimization, Sustainability.

How does the Shared Responsibility Model's line move between EC2 and Lambda?

For EC2 you patch the guest OS yourself; for Lambda AWS handles the OS entirely — your data and access configuration are always your responsibility regardless.

Why does a Tag Policy differ from an SCP for enforcing tagging?

An SCP can only allow/deny an API call outright; a Tag Policy reports non-compliance without necessarily blocking the action — often the more practical, gradual enforcement path.

What's the risk of never reviewing Service Quotas before a launch?

A silently-hit quota (e.g. EC2 instance limit) can look identical to an unrelated outage — new instances simply fail to launch with no obvious signal why.


Part 2 Questions: IAM & Identity#

What's the single most important property of an IAM role vs an IAM user?

A role provides temporary, automatically-expiring credentials via STS; a user's access keys are long-lived, standing credentials that can leak.

Precisely how does AWS evaluate a permission request?

SCP deny wins first, then any explicit Deny anywhere wins, then any explicit Allow grants access, and everything else is implicitly denied by default.

What's the difference between identity-based and resource-based policies?

Identity-based is attached to a user/group/role, answering "what can this identity do"; resource-based is attached directly to a resource, answering "who can access this resource" — and can grant cross-account access.

Why is IRSA needed for EKS instead of just using the node's instance profile?

Without it, every pod on a node shares the same broad node-level IAM permissions — IRSA lets each Kubernetes ServiceAccount assume its own narrowly-scoped role.

What's a Permission Boundary, and how does it differ from an SCP?

A ceiling for ONE specific IAM user/role (not an entire account/OU like an SCP) — used to safely delegate role-creation ability to a less-trusted process.

What does ABAC let you do that traditional RBAC-style policies can't scale to?

One policy, using a variable comparing the principal's tag to the resource's tag, automatically scopes correctly for every team/resource pair — no new policy needed per new team.

Why federate through a corporate IdP instead of managing per-account IAM users?

Exactly one place to revoke access (the IdP) instead of hunting down and deleting IAM users across every account when someone leaves.

What's a break-glass access path, and what must accompany it?

Pre-provisioned emergency credentials for when normal federated access is itself unavailable — must have automatic, immediate alerting on every use.


Part 3 Questions: Compute: EC2 & Auto Scaling#

What does the "t" in a "t3.micro" instance type signify?

Burstable performance — earns CPU credits, throttles hard once credits run out.

Why prefer a golden AMI over a lengthy user-data bootstrap script at scale?

Bakes configuration in ahead of time so new instances are ready to serve traffic the moment they boot, instead of waiting through a slow bootstrap script during every scale-out.

What's the difference between a STOPPED and a TERMINATED EC2 instance?

Stopped: still exists, root EBS volume persists, can restart with the same ID. Terminated: gone permanently, root volume deleted by default.

Why does IMDSv2 matter for security?

Requires a session token via a PUT request first — closes the SSRF-to-credential-theft attack path that IMDSv1's simple unauthenticated GET allowed (as in the 2019 Capital One breach).

What's the real tradeoff of Spot instances?

Steep discount in exchange for only a 2-minute interruption notice — a strong fit for stateless, horizontally-redundant fleets, a poor fit for non-redundant stateful workloads.

Why must an ASG span multiple AZs with ELB (not just EC2) health checks?

Multi-AZ spreads fault tolerance; ELB health checks catch application-level failures (deadlocks, 500s) that EC2 status checks (hardware/OS only) would miss entirely.

What problem do Warm Pools solve?

Reduce cold-start lag for ASGs by keeping pre-initialized instances ready, instead of booting and bootstrapping fully from scratch during a demand spike.

Why use SSM Session Manager instead of SSH?

Eliminates the need for any open inbound port, authenticating and authorizing entirely through IAM, fully logged in CloudTrail.


Part 4 Questions: Networking: VPC Deep Dive#

Why must VPC CIDR ranges be planned organization-wide before creation?

Two VPCs with overlapping CIDR blocks can never be connected via Peering or Transit Gateway — routing can't distinguish which VPC an address belongs to.

What makes a subnet "public" vs "private" vs "isolated"?

Its route table configuration — public routes 0.0.0.0/0 to an Internet Gateway, private routes it to a NAT Gateway, isolated has no internet route at all.

Why deploy one NAT Gateway per AZ instead of sharing one?

A shared NAT Gateway reintroduces a single point of failure — that AZ's outage removes outbound internet access for every other AZ's private subnets too.

What's the key difference between Security Groups and NACLs?

Security Groups are stateful (return traffic auto-allowed), instance-level, allow-only. NACLs are stateless (return traffic needs its own rule), subnet-level, allow+deny.

Why chain security groups by reference instead of hardcoded CIDR blocks?

Automatically stays correct as an Auto Scaling Group's instances scale in/out — no manual updates needed as IPs change.

Why is VPC Peering not transitive?

Each peering connection is a direct, point-to-point link only — A peered with B peered with C does NOT let A reach C through B.

What problem does Transit Gateway solve that Peering doesn't?

Avoids the N² mesh of pairwise peering connections as VPC count grows — a hub-and-spoke model instead.

What's the difference between a Gateway Endpoint and an Interface Endpoint?

Gateway Endpoints (S3/DynamoDB only) are free route table entries. Interface Endpoints (via PrivateLink, everything else) are actual ENIs with a private IP and small cost.

What does VPC Reachability Analyzer do that Flow Logs alone don't?

Automatically evaluates the entire path (route tables, SGs, NACLs, Transit Gateway routing) and names the exact blocking component in seconds — Flow Logs require manual correlation.

What does IPAM solve that a shared spreadsheet can't?

Makes overlapping CIDR allocations structurally impossible by construction, since VPCs request blocks FROM a centrally tracked pool.


Part 5 Questions: Storage: S3, EBS & EFS#

What's S3's current consistency model?

Strong read-after-write consistency for ALL operations (since 2020) — a PUT followed by a GET always returns the latest version.

Why enable Block Public Access at the account level, not just per-bucket?

A structural safety net overriding even a future accidental public-granting bucket policy — most real S3 data exposures trace back to a missing version of this control.

What's the difference between S3 Versioning and Object Lock in COMPLIANCE mode?

Versioning lets a sufficiently privileged admin still permanently delete a version; Object Lock COMPLIANCE mode makes it structurally impossible for ANYONE, including root, until retention expires.

Why must EBS volumes be in the same AZ as their attached instance?

A physical, network-attached-disk constraint — this is exactly why EBS data doesn't automatically survive an AZ failure without a snapshot.

What's the key improvement of gp3 over gp2 EBS volumes?

IOPS/throughput are provisioned independently of volume size — no need to over-provision capacity just to get more speed.

When is EFS the right choice over EBS?

When MANY instances need genuine, concurrent, multi-AZ shared file access with real POSIX semantics — EBS structurally can't provide this (one-instance, or narrowly-Multi-Attach with no file-level coordination).

What does Fast Snapshot Restore fix?

Eliminates the lazy-loading latency penalty a volume created from a snapshot would otherwise have on first access to each block.


Part 6 Questions: Managed Databases & Data Services#

Can you query an RDS Multi-AZ standby directly for read scaling?

No — it's a synchronous failover target only, not readable. Use a dedicated Read Replica instead.

What makes Aurora's replication meaningfully different from standard RDS?

Aurora's storage layer replicates 6 ways across 3 AZs BELOW the database engine, using quorum-based writes — resulting in single-digit-ms replica lag vs RDS's binlog-based tens-to-hundreds of ms.

Why can't you SSH into RDS to tune my.cnf directly?

It's a managed service — Parameter Groups are the only sanctioned way to change engine-level configuration.

What problem does RDS Proxy solve?

Prevents connection exhaustion from serverless (Lambda) workloads opening far more direct connections than the database can handle, by pooling and multiplexing.

Why must RDS encryption be enabled at creation time?

No flag exists to encrypt an existing unencrypted instance in place — requires a snapshot-copy-with-KMS-key, then restore-as-new-instance migration.

When would you choose Redshift over Athena for analytics?

Redshift for sustained, high-concurrency, performance-critical analytical workloads justifying dedicated warehouse cost; Athena for infrequent, ad hoc queries directly against S3 with zero standing infrastructure.


Part 7 Questions: Containers & Serverless#

Is Fargate a competitor to EKS?

No — Fargate is a serverless compute engine that EKS (and ECS) can both run on top of; orchestrator and compute engine are two independent decisions.

What's the ECS equivalent of a Kubernetes Deployment?

An ECS Service (keeps a desired task count running); a Task Definition maps to a Pod spec, a Task maps to a running Pod.

Why can tasks get stuck PENDING on the EC2 launch type but not Fargate?

On EC2, Service Auto Scaling (task count) and Cluster Auto Scaling (instance count) are separate mechanisms that must both scale together; Fargate has no underlying cluster capacity to manage.

What causes a Lambda cold start?

No warm execution environment is available — AWS must provision a new one and initialize the runtime before running the invocation.

What's the difference between Reserved and Provisioned Concurrency?

Reserved sets a ceiling (protects other functions' share); Provisioned sets a floor (pre-warmed environments, eliminating cold starts at a standing cost).

Why is ECS Exec the only way to debug a Fargate task interactively?

Fargate tasks have no underlying EC2 instance to SSH into at all — ECS Exec provides IAM-authenticated shell access with zero open ports.

What happens to a Lambda event if all retries fail and no DLQ is configured?

It's silently discarded — no error surfaces anywhere and no record of the failure is retained.


Part 8 Questions: Load Balancing, CDN & DNS#

What's the key functional difference between ALB and NLB?

ALB (Layer 7) does content-based routing on path/host/header; NLB (Layer 4) offers static IPs and extreme throughput for non-HTTP or allowlist-driven needs.

Why must an S3 origin behind CloudFront use Origin Access Control?

Without it, making the bucket public enough for CloudFront also makes it public enough for anyone to bypass CloudFront and hit S3 directly.

Why is DNS-based failover never truly instantaneous?

Client/resolver TTL caching means some clients keep using a stale, unhealthy IP until their local cache expires.

What's the ALIAS record type for, precisely?

An AWS-specific extension letting a domain's APEX/root point at an AWS resource (like an ALB) — standard DNS forbids a CNAME at the zone apex.

When would you use a Weighted routing policy?

To implement a canary deployment or gradual traffic migration at the DNS layer, splitting traffic by percentage across endpoints.

Why prefer CloudFront Functions over Lambda@Edge for simple logic?

Sub-millisecond execution and meaningfully cheaper — Lambda@Edge's fuller capability is unnecessary overhead for something as simple as a header rewrite.


Part 9 Questions: Security & Compliance#

Why is an IAM Allow never sufficient to grant KMS access alone?

KMS key policies are a separate, mandatory gate — the key policy must also explicitly allow the principal, a deliberate extra defense-in-depth layer.

What does envelope encryption actually do, mechanically?

KMS generates a data key in both plaintext and KMS-encrypted form; the plaintext key encrypts the actual data locally (fast), and only the encrypted data key is stored.

Why choose Secrets Manager over Parameter Store for a database password?

Secrets Manager provides native automatic rotation (via a Lambda function correctly sequencing credential change); Parameter Store has none built in.

What's the difference between CloudTrail management and data events?

Management events (control-plane, e.g. bucket creation) are logged by default and free; data events (e.g. individual GetObject calls) require explicit enablement and cost extra.

Why isolate, not immediately terminate, a suspected-compromised instance?

Terminating destroys volatile forensic evidence (processes, connections, memory state) needed to understand how the compromise happened.

What does GuardDuty analyze to detect threats?

VPC Flow Logs, CloudTrail logs, and DNS logs, using machine learning and threat-intelligence feeds — zero custom rule-writing required.

What does Amazon Detective add beyond a raw GuardDuty finding?

Automatically builds a visual behavior graph correlating CloudTrail/Flow Log activity, avoiding manual multi-source log correlation during an investigation.


Part 10 Questions: Monitoring, Logging & Tracing#

Why isn't EC2 memory utilization a standard, zero-setup metric?

AWS's hypervisor has no visibility inside the guest OS's memory — only the CloudWatch Agent, running inside the instance, can observe and report it.

What problem do Composite Alarms solve?

Combine multiple correlated symptom alarms (errors up AND latency up) into a single page, reducing alert-fatigue-inducing duplicate pages for one real incident.

Why is Embedded Metric Format preferred over direct PutMetricData calls for high-volume custom metrics?

Writing structured JSON to logs is essentially free and adds no synchronous API call latency to the application's hot path.

What does CloudWatch Anomaly Detection solve that a fixed threshold can't?

Learns a metric's own normal daily/weekly seasonal pattern, avoiding the tradeoff where one static threshold is either too loose during peaks or too tight during quiet periods.

Why alarm on Lambda Throttles separately from Errors?

A throttled invocation is rejected BEFORE the function code ever runs, due to concurrency limits — it can never appear in the Errors metric.

Why use Synthetics alongside RUM, not instead of it?

Synthetics proactively catches a broken flow regardless of real traffic volume; RUM shows what real users actually experience but only after they encounter a problem.


Part 11 Questions: CI/CD, IaC & Messaging#

What's the CloudFormation equivalent of terraform plan?

A Change Set — preview exactly what will change before actually applying it.

What does CloudFormation StackSets solve?

Deploys the same template across many accounts/regions from one place — with auto-deployment, new accounts under an OU automatically receive the baseline.

Why is "no separate state file" a real CloudFormation advantage over Terraform?

State is natively tracked by AWS as part of the stack resource — no state file that can go missing, get corrupted, or need locking.

What's the key difference between SQS Standard and FIFO queues?

Standard: best-effort ordering, at-least-once delivery, near-unlimited throughput. FIFO: strict ordering, exactly-once processing, capped throughput.

Why can a short SQS visibility timeout cause duplicate processing?

If processing takes longer than the timeout, the message becomes visible to a second consumer while the first is still working on it.

What does the SNS fan-out pattern achieve that a single SQS queue can't?

One event reliably delivered to MULTIPLE independent consumers, each with its own queue — a slow/failing consumer never blocks the others.

When would you choose EventBridge over SNS?

When routing decisions need to depend on the actual CONTENT of an event, not just which topic it was published to.

What makes Kinesis fundamentally different from SQS?

Kinesis retains and allows REPLAY of data by multiple independent consumers; SQS deletes a message once successfully processed.


Part 12 Questions: Multi-Region, DR, Migration & Cheat Sheet#

What's the RTO/RPO tradeoff across the four DR strategies on AWS?

Backup & Restore (hours, cheapest) → Pilot Light (tens of minutes) → Warm Standby (minutes) → Multi-Site Active-Active (near-zero, most expensive).

What AWS service implements Pilot Light's continuously-replicated core?

Aurora Global Database — kept running continuously while compute is pre-built as IaC but not running until failover.

What does AWS Backup's tag-based selection achieve?

A new resource created with the right tag is automatically covered by the backup plan, with zero additional configuration — governance by construction.

What are the 6 R's of migration?

Rehost, Replatform, Repurchase, Refactor/Re-architect, Retire, Retain.

Why is "Retire" often a genuinely valuable migration-planning outcome?

Discovery routinely surfaces systems with zero actual users still running — retiring them is a real, immediate cost win requiring no migration effort.

Why run Application Discovery Service before finalizing a migration plan?

Migration plans based on incomplete/outdated inventories miss critical dependencies discovered painfully mid-migration instead of during planning.

What does an FIS experiment's stopCondition do?

Automatically halts the chaos experiment if it starts causing genuine, unacceptable customer impact, tied to a real CloudWatch alarm.


Part 13 Questions: API Gateway, Cognito & Event Integration#

Why should a new serverless project default to HTTP APIs instead of REST APIs?

HTTP APIs cost roughly 70% less per million requests and include native JWT authorization — REST APIs' extra features (caching, usage plans, WAF, request validation) are only worth the added cost when a project actually needs one of them.

What's the actual difference between a Cognito user pool and an identity pool?

A user pool authenticates — it proves who a user is and issues JWTs. An identity pool authorizes — it exchanges a valid token for temporary AWS credentials via STS, scoped by an IAM role.

Why is an API key not a form of authentication?

It only selects which usage plan (throttle/quota tier) applies to a caller — it grants no identity or authorization on its own and must be paired with a real authorizer.

When does a Lambda authorizer's cached "allow" decision actually stop being honored?

Only when its cache TTL (5 minutes by default) expires or is explicitly invalidated — a revoked token can still succeed against the cache until then.

Standard vs Express Step Functions — what decides which one to use?

Duration and volume: Standard for long-running (up to a year), exactly-once, fully-audited workflows; Express for high-volume, sub-5-minute workloads where per-state-transition Standard pricing would be far more expensive.

What's the core difference between an EventBridge rule and an EventBridge pipe?

A rule does many-to-many routing across a bus to up to five targets per match; a pipe is one source to one target with no bus in the middle, built for point-to-point delivery with inline filtering/enrichment.

Why does a public API need an idempotency key but an internal VPC-only service call usually doesn't?

Public clients on unreliable networks retry requests they never got a response for; without a deduplication check keyed on a client-generated ID, that retry silently repeats a side effect (like creating a duplicate order).

Why would a mobile app upload a photo directly to S3 using Cognito identity-pool credentials instead of through a Lambda proxy?

It removes Lambda's payload-size limits and cold-start latency from the upload path entirely, since the identity pool's temporary, sub-scoped credentials let the client talk to S3 directly with no compute relaying bytes it never needed to touch.

When does Amazon MQ make more sense than SQS/SNS for a new integration?

Almost never for genuinely new work — MQ exists specifically for migrating an application that already speaks AMQP/JMS/MQTT/STOMP without rewriting its messaging code; greenfield projects default to SQS/SNS/EventBridge.


Part 14 Questions: Elastic Beanstalk, SAM & Developer Tooling#

Why does hand-editing an Auto Scaling Group that Elastic Beanstalk manages usually not stick?

Beanstalk continuously reconciles the environment against its own stored configuration — a manual change outside that configuration gets silently reverted on the next update.

Which Elastic Beanstalk deployment policy gives the fastest, most unambiguous rollback, and why?

Blue/Green via swap-environment-URLs — the previous environment stays fully intact, so rollback is a single instant CNAME swap rather than a new deployment action.

What does a SAM template's Transform: AWS::Serverless-2016-10-31 header actually do?

It tells CloudFormation to expand SAM's simplified resource types (like AWS::Serverless::Function) into their full plain-CloudFormation equivalents before deploying — a SAM template is still just a CloudFormation template underneath.

Why should client code always invoke a Lambda function through its alias rather than a specific version ARN?

The alias is the indirection that makes traffic shifting possible — pointing at a version directly bypasses that indirection, so a canary/linear rollout would require reconfiguring every caller instead of just the alias's routing weights.

What's the practical difference between a canary deployment and a PreTraffic validation hook?

A canary still exposes some percentage of real traffic to the new version during its shift window; a PreTraffic hook runs entirely before any real traffic is shifted, so a failure there blocks the deployment before any customer is affected at all.

As of 2026, why shouldn't a brand-new AWS project default to CodeCommit or Cloud9?

Both stopped onboarding new customers years ago (CodeCommit mid-2024, Cloud9 July 2024) and aren't receiving new features — current guidance points new projects to a third-party Git host and the AWS Toolkit/CloudShell instead.

Why is storing a database credential as a Lambda environment variable worse than fetching it from Secrets Manager at runtime?

An environment variable is visible to anyone with read access to the function's configuration, with no access audit trail — a Secrets Manager GetSecretValue call is IAM-gated and logged to CloudTrail.


Part 15 Questions: Systems Manager & Fleet Operations#

Why doesn't Session Manager require an inbound security group rule to work?

The SSM Agent on the managed node initiates the connection outbound to the Systems Manager service — there's no inbound network path required at all, unlike SSH.

What two things together provide Session Manager's full audit trail?

CloudTrail logging every StartSession/TerminateSession API call (who, when, which instance) plus session log streaming to CloudWatch Logs/S3 capturing the actual command input/output.

Why does a Run Command or Patch Manager operation need rate control against a large fleet?

Without a concurrency limit and error threshold, a bad script or bad patch can hit every target simultaneously — rate control caps the blast radius the same way a canary deployment does for application traffic.

What's the standard reason to add a delay to a patch baseline's approval rules instead of auto-approving immediately?

It gives time to catch a vendor's own bad patch reported elsewhere before it reaches production — a small, deliberate exposure window traded for patching safety.

How does Session Manager port forwarding remove the need for a bastion host to reach a private RDS instance?

It tunnels a local port through the same IAM-authenticated, agent-initiated channel Session Manager already uses, directly to the private endpoint — no standing bastion EC2 instance to provision, patch, or monitor.

Why is Compute Optimizer's "performance risk" score on a downsizing recommendation worth checking before acting?

A nonzero score means the recommendation is a genuine reliability tradeoff, not a risk-free cost win — Compute Optimizer produces recommendations for a human to evaluate, not automatic changes.

What does EC2 Image Builder's automated testing step actually prevent?

A broken AMI reaching the "Available" distribution stage — the pipeline launches a temporary test instance and runs every component's validation before an image is ever eligible for production Auto Scaling Groups to launch from.


Part 16 Questions: Cost Optimization & FinOps#

Why doesn't tagging a resource automatically make it queryable by Cost Explorer?

A tag has to be explicitly activated as a cost allocation tag in the Billing console before it becomes a queryable cost dimension — the tag existing on a resource alone isn't sufficient.

Why should Budget alerts be set on forecasted spend, not just actual spend?

An actual-spend alert only fires once the threshold is already crossed, often near or after the billing period closes; a forecasted-spend alert catches a runaway trend mid-cycle, while there's still time to act.

What's the core mechanical difference between a Reserved Instance and a Savings Plan?

An RI commits to a specific instance configuration (family, size, region); a Savings Plan commits to a dollar-per-hour spend rate, applying automatically to whatever eligible usage occurs.

What's the real 2026 best practice for combining RIs, Savings Plans, and Spot?

Layer them — Standard RIs/EC2 Instance Savings Plans for the stable baseline, Compute Savings Plans for the variable remainder, and Spot for interruption-tolerant burst — rather than committing to one exclusively.

Why can downsizing an instance already covered by a Standard RI actually be a mistake?

It can strand the existing RI, leaving it paying for capacity nobody uses anymore — right-sizing and commitment coverage need to be reviewed together, not as two disconnected processes.

Why should RI/Savings Plan purchases generally happen at the AWS Organization level rather than per account?

Consolidated billing shares RI/Savings Plan discounts automatically across every account in the Organization by default — purchasing per account risks one account under-buying while a sibling over-buys the same coverage.

What's the difference between showback and chargeback?

Showback reports cost back to a team for visibility with no financial consequence; chargeback actually bills that cost against the team's budget as a real transaction — chargeback should only start once tagging coverage is reliable.

Why is judging cost health by total spend alone misleading?

A growing company should expect growing spend — unit economics (cost per customer/transaction) shows whether spend is growing faster or slower than the value it produces, which raw totals can't distinguish.


Part 17 Questions: Migration & Modernization#

Why is applying one migration strategy (say, Rehost) across an entire application portfolio a mistake?

Different applications carry wildly different business value, technical complexity, and remaining useful life — the 6 R's are meant to be applied per application based on that mix, not uniformly.

What's the practical difference between the agent-based Application Discovery Service collector and the Agentless Collector?

The agent-based collector installs on individual servers for detailed per-process data; the Agentless Collector deploys once against VMware vCenter and discovers hundreds of VMs without installing anything on each one.

As of June 2026, what happened to AWS Application Migration Service?

It was rebranded to AWS Transform MGN, reflecting its role as the replication engine powering AWS Transform, the newer agentic migration platform — functionally the same rehosting service under a new name.

Why is MGN's continuous, block-level replication safer than a one-shot cutover?

The source system keeps running fully unmodified right up until cutover, and a test launch can validate the converted target instance without ever disrupting the still-running source — any problem found gets fixed and re-tested with zero production impact before the real cutover happens.

As of November 2025, can a brand-new AWS customer order a Snowball device?

No — the Snow Family closed to new customers on that date; only existing customers can still order the remaining Snowball Edge Storage Optimized device. New customers should default to DataSync or AWS Data Transfer Terminal instead.

What's the key difference between AWS Data Transfer Terminal and the older Snowball model?

Snowball ships a device to the customer and back; Data Transfer Terminal has the customer bring their own storage hardware to a physical facility and transfer over on-site high-throughput network connectivity — the hardware never leaves the customer's possession.

Why should rollback planning happen before cutover, not after something breaks?

An untested rollback plan improvised under real incident pressure is how migrations turn into outages — the source system remains a legitimate rollback target only if the revert mechanics were planned and rehearsed in advance.

Why is a freshly rehosted workload often a strong candidate for immediate right-sizing?

A lift-and-shift is migrated as-is by design, carrying forward whatever sizing existed on-premises — which is very often oversized relative to actual cloud utilization patterns, making it a near-guaranteed source of quick Compute Optimizer wins post-migration.


Part 18 Questions: Data Analytics & Engineering#

Why does the Glue Data Catalog matter more than any single query engine in this part?

Athena, Redshift Spectrum, and EMR can all query the same underlying S3 data through the same catalog entry — it's the single source of truth for schema that keeps every consuming engine consistent, rather than each maintaining separate metadata.

Why does Athena bill and perform based on partitioning and file format, and what's the practical fix for a slow, expensive query?

Athena bills per byte scanned; converting data to a columnar format (Parquet/ORC) and partitioning it by a query-relevant column lets a filtered query skip scanning irrelevant data entirely, cutting both cost and latency.

When should a team choose Kinesis Data Streams over Amazon Data Firehose?

Only when multiple independent consumers need their own pace of access, or replay of recent history is required — Firehose delivers and forgets, with no concept of multiple consumers or replayability.

What's the core reason Redshift (a columnar warehouse) exists separately from an OLTP database like RDS?

Columnar storage dramatically accelerates aggregate, scan-heavy analytical queries across many rows, at the cost of being a poor fit for OLTP's single-row read/write pattern — the two are optimized for opposite access patterns.

What problem do zero-ETL integrations solve, and what's the mechanism underneath?

They replace hand-built CDC pipelines for near-real-time analytics on transactional data — the mechanism is Change Data Capture streaming changes from the source database into the target (e.g., Aurora into Redshift) automatically, with no additional AWS charge for the integration itself.

Why does every data-lake access request need to pass both an IAM check and a Lake Formation check?

The same dual-gate pattern as KMS (Part 9) — IAM alone can't enforce column/row-level restrictions; Lake Formation adds a data-specific fine-grained authorization layer that IAM policies alone don't provide.

Why should raw ingested data stay immutable in a separate zone from curated, transformed data?

If a transformation bug is discovered later, a corrected job can simply re-run against still-intact raw data — mutating raw data in place turns a fixable bug into an unrecoverable data-loss incident.


Part 19 Questions: Machine Learning & AI on AWS#

Why should a team check pre-built AI services before reaching for custom SageMaker training?

A pre-built service like Rekognition, Textract, or Comprehend solves the common problem shape with zero training data or training time via a direct API call — custom training is only justified when the problem genuinely doesn't fit any pre-built or Bedrock option.

What problem does SageMaker Feature Store's online/offline store pair solve?

Training-serving skew — computing a feature one way during training and a subtly different way during real-time inference — by giving both paths the same single, shared feature computation and storage layer.

Why is accuracy a misleading metric for an imbalanced classification problem like fraud detection?

A model that always predicts the majority class ("not fraud") can score very high accuracy while being completely useless — precision, recall, F1, or AUC (matched to the real cost of a false positive vs a false negative) reflect actual usefulness better.

What's the core difference between RAG (Knowledge Bases) and fine-tuning a foundation model?

RAG supplies an organization's own data as retrieved context at query time, with the model itself unchanged; fine-tuning actually adjusts the model's weights — RAG is the default for "the model needs to know our data," fine-tuning is reserved for "the model needs to behave differently."

Why does shadow testing carry zero production risk compared to A/B testing?

A shadow-tested challenger model runs against real traffic and logs its predictions for offline comparison, but its output never actually reaches a real user or downstream decision — an A/B test, by contrast, does serve some real traffic to the challenger.

What does SageMaker Model Monitor actually detect that an ordinary CloudWatch alarm wouldn't catch?

Data drift (incoming request patterns diverging from training data) and model quality drift (declining prediction accuracy) — a model silently getting worse at its job produces no obvious error-rate or latency spike for a standard alarm to catch.

Why does the Model Registry's approval gate matter for production ML deployment?

It's a deliberate checkpoint between "training finished" and "serving production traffic," preventing an automatic deployment straight from a training job — the same purpose CodeDeploy approval gates (Part 15) serve for infrastructure changes.


Quick-Fire / Rapid Recall#

QA
Strongest AWS isolation boundary?The account, stronger than a VPC or IAM policy
SCP grants permissions?No — ceiling only, never a grant
Root user restrictable by policy?No — never use for routine work
IAM role vs user, key difference?Temporary vs long-lived credentials
IAM evaluation order?SCP deny → explicit deny → explicit allow → default deny
IRSA solves what?Per-pod least privilege instead of shared node-level IAM
IMDSv2 closes what attack?SSRF-based credential theft (e.g. Capital One breach)
One NAT Gateway per what?AZ — sharing reintroduces a single point of failure
SG vs NACL statefulness?SG stateful, NACL stateless
VPC Peering transitive?No
Gateway Endpoint services?S3 and DynamoDB only
S3 consistency model?Strong read-after-write, always
EBS tied to what boundary?A single Availability Zone
EFS vs EBS for shared access?EFS — real multi-instance POSIX semantics
RDS Multi-AZ standby readable?No — Read Replicas are for that
Aurora's replication advantage?Storage-layer, 6-way/3-AZ, quorum-based, low replica lag
Fargate vs EKS?Compute engine, not a competing orchestrator
Lambda cost while idle?Zero
ALB vs NLB layer?7 vs 4
CloudFront + S3 best practice?Origin Access Control, keep bucket private
KMS double gate?IAM policy AND key policy both required
Secrets Manager's key feature?Native automatic rotation
Isolate or terminate first during compromise?Isolate — preserve forensic evidence
CloudTrail data events default?Off — must be explicitly enabled
Why memory isn't a standard EC2 metric?Hypervisor can't see inside the guest OS
SQS vs Kinesis?Delete-on-success queue vs replayable multi-consumer stream
CloudFormation's terraform plan equivalent?Change Sets
DR strategy spectrum?Backup & Restore → Pilot Light → Warm Standby → Active-Active
REST API vs HTTP API default?Default to HTTP API; REST only for caching/keys/WAF/validation
Cognito user pool vs identity pool, one line?Authenticates vs authorizes (issues AWS credentials)
Amazon MQ's one real reason to exist?Protocol-compatible migration (AMQP/JMS/MQTT), not greenfield use
Elastic Beanstalk's fastest rollback path?Swap-environment-URLs (blue/green), instant CNAME exchange
CodeGuru Reviewer status in 2026?Maintenance mode since Nov 2025 — new projects use Amazon Q Developer
CodeCommit/Cloud9 status for new projects?Both closed to new customers (2024) — use GitHub/GitLab + AWS Toolkit
Session Manager's core selling point?No inbound port, no SSH key, IAM-scoped + fully audited access
Why not auto-approve every patch instantly?No buffer to catch a vendor's own bad patch before production
Systems Manager's own base cost?Free — Session Manager, Run Command, Patch Manager, Automation all free
RI vs Savings Plan commitment unit?Specific instance config vs dollar/hour spend rate
Cheapest, lowest-risk first cost action?Idle/orphaned resource cleanup — unattached EBS, unassociated EIPs
2026 free tier for new accounts?One-time $200 credit, not the legacy per-service free tier (accounts after Jul 2025)
Snow Family status for new customers?Closed since Nov 2025 — use DataSync or Data Transfer Terminal
MGN's 2026 rebrand?AWS Application Migration Service → AWS Transform MGN
Migration Hub's role?Central tracking across MGN/DMS/Discovery — not a migration tool itself
Athena's pricing basis?Per byte scanned — partition and use Parquet/ORC to cut cost
Kinesis vs Firehose, one line?Custom replayable consumers vs managed delivery, no consumer code
Glue Data Catalog's role?Single shared metadata source of truth across Athena/Redshift/EMR
Pre-built AI vs Bedrock vs SageMaker order?Check pre-built first, then Bedrock, custom training last
RAG vs fine-tuning default?RAG for "knows our data," fine-tuning for "behaves differently"
Shadow testing's key property?Real traffic, zero risk — predictions logged, never served to users
6 R's of migration?Rehost, Replatform, Repurchase, Refactor, Retire, Retain