24% of the exam

Domain 3: High-Performing Architectures

Storage, compute, databases, networking, data ingestion.

Live · updated 22 Nov 2026, 1:20 pm~198 min read
On this page (99 sections)

Like I'm 5: Same food, but one restaurant serves in 5 minutes and another in 50. This chapter is about picking the right storage, workers, registers and roads so your app is fast.

3.1 High-performing and scalable storage

Topics to cover, in this order:

  1. Block vs file vs object storage
  2. EBS volume types (gp3, io2, st1, sc1), IOPS vs throughput, instance store
  3. EFS (performance and throughput modes, storage classes)
  4. FSx family (Windows, Lustre, NetApp ONTAP, OpenZFS)
  5. S3 performance (prefixes, multipart upload, Transfer Acceleration, byte-range fetches)
  6. Hybrid storage (Storage Gateway types)

86. Choosing block, file, or object storage (Domain 3.1)

🧒 LIKE I'M 5
A school stores notebooks on shelves, shared files in a common cupboard, and loose documents in a warehouse. AWS storage types work in similar ways.

📖 EXPLAINED SIMPLY

  • Block storage splits data into fixed-size blocks. A server sees it like a disk.
  • Amazon EBS is block storage for EC2. It suits operating systems, databases, and applications needing low-latency disk access.
  • File storage organizes data in folders and files. Multiple servers can share the same file system.
  • Amazon EFS provides managed NFS file storage. Amazon FSx provides managed file systems for specific workloads.
  • Object storage stores whole objects with data, metadata, and a key. Amazon S3 is the main AWS object storage service.
  • Objects are accessed through APIs, not mounted as a normal block disk. S3 suits backups, media, data lakes, and static assets.
  • Choose block when an application needs disk-like access. Choose file when many clients share files. Choose object for huge scale and durable object access.
  • Storage type affects access pattern, latency, sharing, and cost. Do not choose by capacity alone.
  • EBS is attached to an instance or supported service. EFS and S3 are accessed over network APIs or protocols.
  • A single application may use all three: EBS for database disks, EFS for shared uploads, and S3 for archives.

📚 JARGON BOX

  • Block → Fixed-size storage unit presented like a disk.
  • File system → Organizes data into folders and files.
  • Object → Data plus metadata stored under a key.
  • NFS → Network File System protocol for shared file access.
  • Latency → Time needed to complete an operation.
  • Metadata → Information describing stored data.

⚖️ COMPARE WITH LOOKALIKES

TypeAWS examplesAccess styleTypical use
BlockEBSDisk volumeOS and database
FileEFS, FSxShared file pathShared folders and enterprise apps
ObjectS3API/object keyMedia, backups, data lakes

🎯 EXAM LENS

  • "EC2 boot volume or database disk" → EBS.
  • "Linux shared file system across instances" → EFS.
  • "Store backups and static media at massive scale" → S3.
  • "Windows shared folders" → FSx for Windows File Server.

🪤 TRAPS

  • S3 is not a normal mounted block disk.
  • EBS is not automatically shared across many instances.
  • EFS is file storage, not object storage.
  • File and object access patterns are different.

📝 PRACTICE QUESTION
Several Linux EC2 instances must access the same shared directory. The company wants a managed NFS file system. What should it choose?
A. Amazon EFS
B. Amazon EBS attached separately to each instance
C. Amazon S3 Glacier Deep Archive
D. Instance store

Answer: A. EFS provides shared NFS file storage. Separate EBS volumes do not create one shared file system. Glacier is archive storage. Instance store is local ephemeral storage.

🔁 ONE-LINE RECAP
Use EBS for disk blocks, EFS/FSx for shared files, and S3 for scalable object storage.


87. EBS volume types, IOPS, throughput, and instance store (Domain 3.1)

🧒 LIKE I'M 5
A delivery road can carry many small bikes or a few large trucks. IOPS is how many trips happen. Throughput is how much cargo moves overall.

📖 EXPLAINED SIMPLY

  • Amazon EBS provides persistent block storage volumes for EC2.
  • IOPS means input/output operations per second. It measures how many read or write operations a volume can handle.
  • Throughput measures how much data moves per second, commonly MB/s.
  • gp3 is general-purpose SSD storage. It lets you configure IOPS and throughput separately from volume size within service limits.
  • gp2 is an older general-purpose SSD. Performance is linked to volume size and burst behavior. gp3 can often lower cost for the same general-purpose need.
  • io2 Block Express is provisioned IOPS SSD storage for demanding, high-performance workloads.
  • st1 is throughput-optimized HDD storage for frequently accessed, large sequential workloads.
  • sc1 is cold HDD storage for infrequently accessed, large sequential workloads.
  • HDD volumes are not suited to small random I/O patterns like transactional databases.
  • Instance store is temporary storage physically attached to the host. It can offer high performance but data is lost when the instance stops, terminates, or the underlying host fails.
  • EBS volumes persist independently of an EC2 instance lifecycle, subject to deletion settings.
  • Select a volume based on IOPS, throughput, latency, size, durability, and cost.
  • For a database with many small random reads/writes, SSD is usually better. For large sequential logs, st1 may fit.
  • EBS is Availability Zone-specific. A snapshot can be used to create a volume in another AZ.

📚 JARGON BOX

  • IOPS → Number of read/write operations per second.
  • Throughput → Amount of data moved per second.
  • SSD → Solid State Drive; fast storage using flash memory.
  • HDD → Hard Disk Drive; spinning magnetic disk.
  • Provisioned IOPS → Paid storage performance selected in advance.
  • Sequential I/O → Reading or writing data in order.
  • Random I/O → Accessing different storage locations.
  • Instance store → Temporary host-local storage.

⚖️ COMPARE WITH LOOKALIKES

TypeMediaBest pattern
gp3SSDGeneral purpose
io2 Block ExpressSSDVery high IOPS and critical databases
st1HDDLarge sequential throughput
sc1HDDInfrequent sequential data
Instance storeHost-localTemporary high-performance scratch data

🎯 EXAM LENS

  • "Persistent general-purpose SSD" → gp3.
  • "Very high IOPS database" → io2.
  • "Large sequential throughput" → st1.
  • "Lowest-cost infrequently accessed HDD" → sc1.
  • "Temporary data that can be rebuilt" → Instance store.
  • "Data must survive instance stop" → EBS, not instance store.

🪤 TRAPS

  • IOPS and throughput are not the same.
  • Instance store is not durable storage.
  • st1 and sc1 are not SSD choices.
  • An EBS volume belongs to one AZ.

📝 PRACTICE QUESTION
A reporting workload reads very large files sequentially from disk. It does not need high random IOPS. Which EBS volume type is a strong fit?
A. st1
B. io2 Block Express
C. Instance store for permanent data
D. gp3 provisioned for maximum IOPS

Answer: A. st1 is built for throughput-focused sequential workloads. io2 targets high IOPS. Instance store is temporary. Maximum gp3 IOPS may waste money.

🔁 ONE-LINE RECAP
Choose EBS by IOPS and throughput: gp3 general use, io2 high IOPS, st1/sc1 sequential HDD, instance store temporary.


88. Amazon EFS performance and throughput modes (Domain 3.1)

🧒 LIKE I'M 5
A shared cupboard serves many classrooms. Performance depends on how quickly each person needs files and how many people open them at once.

📖 EXPLAINED SIMPLY

  • Amazon EFS is a managed, elastic file system for Linux workloads using NFS.
  • Multiple EC2 instances and supported clients can mount one EFS file system at the same time.
  • EFS grows and shrinks as files are added and removed. You do not pre-provision file-system capacity.
  • Regional EFS stores data redundantly across multiple AZs. It is the normal choice for high availability.
  • One Zone EFS stores data in one AZ. It costs less, but availability depends on that AZ. Backups are important.
  • Performance modes: General Purpose suits most workloads and offers lower latency. Max I/O suits workloads needing high aggregate parallel throughput, with higher latency.
  • Throughput modes: Elastic adjusts throughput automatically. Provisioned sets throughput independently of stored size. Bursting derives throughput from stored data and accumulated credits.
  • Storage classes: Standard for frequently accessed files. Infrequent Access (IA) and Archive reduce storage cost for colder files but add access charges and latency.
  • Lifecycle management can move files between storage classes based on access patterns.
  • EFS is designed for shared file workloads. It is not a block device for booting Windows servers.
  • Use EFS for shared web content, Linux home directories, and content-processing fleets.
  • Choose EBS for a single-instance block volume and FSx when a specialized file system is needed.

📚 JARGON BOX

  • NFS → Network File System protocol.
  • Elastic → Capacity or throughput can adjust automatically.
  • Throughput → Data moved per second.
  • Bursting → Performance credits accumulate and are consumed.
  • IA → Infrequent Access storage class.
  • One Zone → Data stored in one AZ.
  • Lifecycle management → Automatically transition files as they age or are accessed.

⚖️ COMPARE WITH LOOKALIKES

OptionSharingAvailabilityBest fit
EFS RegionalShared file systemMulti-AZ designProduction Linux shared files
EFS One ZoneShared file systemOne AZLower-cost workloads able to accept AZ risk
EBSBlock volumeAZ-specificInstance disks
S3Object accessRegional serviceObject storage and data lakes

🎯 EXAM LENS

  • "Many Linux instances mount the same file system" → EFS.
  • "Elastic throughput with changing demand" → EFS Elastic throughput.
  • "Lower cost and tolerate one-AZ placement" → EFS One Zone.
  • "Very large parallel workload accepting higher latency" → Max I/O, when available for the required design.

🪤 TRAPS

  • EFS is file storage, not block storage.
  • Regional EFS and One Zone EFS have different resilience.
  • IA reduces storage cost but adds access charges.
  • Provisioned throughput is not the same as Provisioned IOPS on EBS.

📝 PRACTICE QUESTION
A fleet of Linux EC2 instances needs a shared file system. Traffic is unpredictable, and throughput should adjust automatically. What should it use?
A. EFS with Elastic throughput
B. One EBS volume per instance
C. S3 Glacier Deep Archive
D. Instance store

Answer: A. EFS shares files and Elastic throughput adapts to changing demand. B creates separate disks. C is archival object storage. D is temporary local storage.

🔁 ONE-LINE RECAP
EFS provides shared Linux file storage; choose Regional or One Zone and select performance and throughput modes by workload.


89. Amazon FSx family: Windows, Lustre, NetApp ONTAP, OpenZFS (Domain 3.1)

🧒 LIKE I'M 5
Different workers need different tools. A Windows office needs Windows file sharing. A science lab needs a very fast parallel file system. FSx offers specialized managed file systems.

📖 EXPLAINED SIMPLY

  • Amazon FSx provides managed file systems built for particular workloads.
  • FSx for Windows File Server provides Windows-native shared storage using SMB (Server Message Block).
  • It supports Windows features such as Active Directory integration, file shares, and access-control lists.
  • Choose it for Windows applications, home directories, and shared folders that expect SMB.
  • FSx for Lustre provides high-performance parallel file storage for compute-heavy workloads.
  • It can link to S3 data repositories. This suits machine learning, high-performance computing, and large analytics jobs.
  • FSx for NetApp ONTAP provides managed NetApp storage features, including NFS, SMB, iSCSI, snapshots, and data-management tools.
  • It suits enterprise workloads that need ONTAP compatibility or multi-protocol access.
  • FSx for OpenZFS provides managed ZFS file storage with snapshots, clones, and low-latency access.
  • Each FSx type has different protocols, performance, and cost. Do not treat FSx as one interchangeable file system.
  • Choose based on OS, protocol, application compatibility, performance, and data-management requirements.
  • Use EFS for general shared Linux NFS workloads. Use the specific FSx product when its native features matter.

📚 JARGON BOX

  • SMB → Windows file-sharing protocol.
  • NFS → Network File System protocol.
  • Lustre → Parallel file system for high-performance computing.
  • ONTAP → NetApp storage operating system and feature set.
  • OpenZFS → File system with snapshots and copy-on-write features.
  • iSCSI → Protocol providing block storage over IP.
  • Snapshot → Point-in-time view of stored data.

⚖️ COMPARE WITH LOOKALIKES

FSx serviceProtocol / strengthCommon workload
Windows File ServerSMB, Active DirectoryWindows file shares
LustreHigh-performance parallel file systemHPC and ML
NetApp ONTAPNFS, SMB, iSCSI, ONTAP featuresEnterprise storage
OpenZFSZFS snapshots and clonesLinux/Unix file workloads
EFSNFS shared file systemGeneral Linux sharing

🎯 EXAM LENS

  • "Windows SMB shares with AD" → FSx for Windows File Server.
  • "HPC needs a fast parallel file system linked to S3" → FSx for Lustre.
  • "Existing NetApp ONTAP features" → FSx for NetApp ONTAP.
  • "ZFS snapshots and clones" → FSx for OpenZFS.

🪤 TRAPS

  • FSx for Windows is not the same as EFS.
  • Lustre is not a general-purpose replacement for every file share.
  • Each FSx product has different protocols.
  • S3 is object storage; FSx is managed file/block-style storage depending on product and protocol.

📝 PRACTICE QUESTION
A Windows application requires SMB file shares and Active Directory integration. Which service is the best fit?
A. FSx for Windows File Server
B. EFS
C. S3 Standard
D. FSx for Lustre

Answer: A. FSx for Windows provides SMB and AD integration. EFS is NFS. S3 is object storage. Lustre targets high-performance parallel compute.

🔁 ONE-LINE RECAP
Choose the FSx product by its native protocol and workload: Windows, Lustre, ONTAP, or OpenZFS.


90. S3 performance: prefixes, parallel requests, and request patterns (Domain 3.1)

🧒 LIKE I'M 5
A warehouse has many loading doors. If every truck uses one door, a queue forms. S3 can handle high request rates, and good application design spreads work efficiently.

📖 EXPLAINED SIMPLY

  • Amazon S3 automatically scales to high request rates. It supports at least 3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD requests per second per partitioned prefix.
  • These are baseline design figures, not a strict account-wide limit. S3 can scale further as request patterns ramp up.
  • A prefix is the beginning part of an object key, often used like a folder name.
  • Older advice suggested randomizing key prefixes. Modern S3 can handle sequential and well-distributed keys without needing artificial random prefixes for most workloads.
  • Distribute request patterns across prefixes when a workload has very high parallel traffic. Avoid assuming one prefix is a single physical folder.
  • Use parallel requests to increase throughput. Avoid sending every request through one application thread.
  • Monitor 503 Slow Down responses. Retry with exponential backoff and jitter.
  • Use multipart upload for large objects. It uploads independent parts in parallel and can retry failed parts.
  • Use byte-range GET requests to download parts of large objects in parallel. This can improve transfer performance.
  • S3 Transfer Acceleration can speed long-distance uploads using edge locations when network conditions justify it.
  • Performance also depends on client concurrency, network bandwidth, object size, and request latency.
  • Do not overengineer key naming to solve a problem that S3 already handles automatically.

📚 JARGON BOX

  • Prefix → Beginning portion of an S3 object key.
  • Partitioned prefix → Internal scaling range used to distribute S3 requests.
  • Multipart upload → Upload one large object as separate parts.
  • Byte-range GET → Download a selected byte range of an object.
  • Exponential backoff → Wait longer between retries after failures.
  • Jitter → Add randomness to retry timing to avoid synchronized retries.
  • 503 Slow Down → S3 response asking the client to reduce or retry request load.

⚖️ COMPARE WITH LOOKALIKES

TechniqueBest use
Parallel requestsMany independent object reads/writes
Multipart uploadLarge object uploads
Byte-range GETParallel or partial downloads
Transfer AccelerationLong-distance upload paths
Lifecycle policyStorage cost management, not request performance

🎯 EXAM LENS

  • "Upload very large files in parts" → Multipart upload.
  • "Read different parts of an object in parallel" → Byte-range GET.
  • "Reduce long-distance upload latency" → Transfer Acceleration.
  • "503 Slow Down" → Retry with exponential backoff and jitter.
  • "Modern S3 key prefix design" → Do not assume random prefixes are always required.

🪤 TRAPS

  • Multipart upload is not a storage class.
  • Transfer Acceleration is not always faster or cheaper.
  • S3 automatically scales; random prefixes are not a universal requirement.
  • Retry storms can make throttling worse.

📝 PRACTICE QUESTION
A media platform uploads multi-gigabyte video files from users worldwide. Failed parts should be retried without restarting the whole file. Which option fits?
A. S3 multipart upload
B. S3 Glacier Deep Archive
C. EBS Multi-Attach
D. Route 53 weighted routing

Answer: A. Multipart upload sends separate parts and can retry failed parts. Glacier is archival storage. EBS and Route 53 solve unrelated problems.

🔁 ONE-LINE RECAP
Use multipart uploads, byte-range reads, parallel requests, and sensible backoff to improve S3 transfer performance.


91. Hybrid storage: Storage Gateway types and DataSync choice (Domain 3.1)

🧒 LIKE I'M 5
A shop keeps using its old cash register but stores receipts in a cloud godown. Storage Gateway connects familiar on-premises storage workflows to AWS.

📖 EXPLAINED SIMPLY

  • AWS Storage Gateway connects on-premises applications to cloud-backed storage.
  • S3 File Gateway exposes NFS or SMB file shares. Files are stored as objects in S3.
  • FSx File Gateway gives low-latency access to Windows file shares backed by Amazon FSx for Windows File Server.
  • Volume Gateway presents iSCSI block volumes to on-premises servers. Cached volumes keep primary data in AWS and cache frequently used data locally. Stored volumes keep primary data locally and asynchronously back up snapshots to AWS.
  • Tape Gateway presents virtual tape libraries for backup applications. Virtual tapes are stored in S3 and can move to archive storage.
  • Storage Gateway is useful when applications need familiar file, volume, or tape interfaces.
  • AWS DataSync is different. It moves data between on-premises storage and AWS storage, or between supported AWS storage locations.
  • DataSync is useful for scheduled or large-scale data migration and synchronization. Storage Gateway is useful for ongoing hybrid access.
  • Choose S3 File Gateway for file-based access to S3, Volume Gateway for iSCSI volumes, and Tape Gateway for virtual tape backup.
  • Use DataSync for transfer jobs rather than a continuously mounted gateway.
  • Plan connectivity, cache sizing, local hardware or VM capacity, and bandwidth.

📚 JARGON BOX

  • Hybrid storage → Storage spanning on-premises systems and cloud.
  • Gateway → Service bridging local systems and cloud storage.
  • iSCSI → Protocol presenting remote block storage over IP.
  • Cached volume → Main data in cloud, frequently used data cached locally.
  • Stored volume → Main data stored locally with cloud snapshots.
  • Virtual tape library → Software-based tape system backed by cloud storage.
  • DataSync → Managed data transfer and synchronization service.

⚖️ COMPARE WITH LOOKALIKES

ServiceInterface / jobUse when
S3 File GatewayNFS/SMB files backed by S3Existing apps need file shares
Volume GatewayiSCSI block volumesApps need block storage
Tape GatewayVirtual tapesExisting backup software uses tapes
FSx File GatewayWindows file accessLow-latency Windows shares
DataSyncTransfer jobsMove or synchronize datasets

🎯 EXAM LENS

  • "Existing backup software expects tapes" → Tape Gateway.
  • "On-premises app needs SMB/NFS access backed by S3" → S3 File Gateway.
  • "Existing server requires iSCSI block volumes" → Volume Gateway.
  • "Move petabytes from NAS to S3 on a schedule" → DataSync.

🪤 TRAPS

  • Storage Gateway provides ongoing hybrid access; DataSync focuses on moving data.
  • S3 File Gateway stores files as S3 objects, not as a normal Windows file server.
  • Volume Gateway is not the same as EBS.
  • Select the gateway by protocol and access pattern.

📝 PRACTICE QUESTION
A company has a backup application that writes to physical tape libraries. It wants to keep the same workflow but store virtual tapes in AWS. Which service should it use?
A. Tape Gateway
B. DataSync
C. EFS
D. CloudFront

Answer: A. Tape Gateway presents virtual tapes for existing backup software. DataSync transfers files. EFS provides file storage. CloudFront delivers cached content.

🔁 ONE-LINE RECAP
Storage Gateway keeps familiar hybrid storage interfaces; DataSync moves and synchronizes data between locations.

✅ Batch 5 — topics 81–100

Batch 5 review sheet

  • Check standby capacity limits → Service Quotas in each Region.
  • Trace a slow distributed request → X-Ray.
  • Measure user experience → Availability, latency, errors, saturation.
  • Analyze sentiment or extract entities → Comprehend.
  • Turn text into speech → Polly.
  • Make an old broker-compatible app reliable → Amazon MQ.
  • Block storage → EBS.
  • Shared file storage → EFS or the right FSx product.
  • Object storage → S3.
  • Very high IOPS → io2.
  • General-purpose EBS SSD → gp3.
  • Large sequential disk throughput → st1.
  • Temporary host-local scratch space → Instance store.
  • Shared Linux NFS → EFS.
  • Windows SMB plus AD → FSx for Windows.
  • High-performance parallel files → FSx for Lustre.
  • Huge S3 uploads → Multipart upload.
  • Parallel partial S3 downloads → Byte-range GET.
  • Existing tape backup workflow → Tape Gateway.
  • Bulk transfer and synchronization → DataSync.

5 Extra Mixed Scenario Questions

1. A Linux application fleet needs shared files and unpredictable throughput. What is the best fit?
A. EFS with Elastic throughput
B. One EBS volume for each server
C. S3 Glacier Deep Archive
D. Instance store

Answer: A. EFS shares files and can adapt throughput. B creates separate disks. C is archive storage. D is temporary.

2. A Windows application requires SMB shares integrated with Active Directory. Which service fits?
A. FSx for Windows File Server
B. EFS
C. S3 Standard
D. FSx for Lustre

Answer: A. FSx for Windows provides SMB and AD support. EFS is NFS. S3 is object storage. Lustre is for parallel compute.

3. A company uses existing tape backup software and wants virtual tapes in AWS. Which service is best?
A. Tape Gateway
B. DataSync
C. EBS gp3
D. CloudFront

Answer: A. Tape Gateway preserves tape workflows. DataSync moves files. EBS and CloudFront serve different purposes.

4. A media service uploads multi-gigabyte objects. It must retry failed parts independently. What should it use?
A. S3 multipart upload
B. S3 lifecycle expiration
C. S3 Object Lock
D. Route 53 failover

Answer: A. Multipart upload supports part-level retries. The others manage lifecycle, retention, and DNS.

5. A company sees S3 503 Slow Down responses during a sudden upload spike. What should its clients do?
A. Retry with exponential backoff and jitter
B. Retry instantly in a tight loop
C. Disable all error handling
D. Move every object to Glacier immediately

Answer: A. Backoff and jitter reduce synchronized retry pressure. Tight loops increase load. The other actions do not address request throttling.

3.2 High-performing and elastic compute

Topics to cover, in this order:

  1. EC2 instance families (general, compute, memory, storage, accelerated) and placement groups
  2. EC2 Auto Scaling: policies (target tracking, step, scheduled, predictive), metrics, cooldowns
  3. AWS Auto Scaling (for other services)
  4. Lambda performance: memory sizing, concurrency, cold starts
  5. Fargate, ECS, EKS for compute
  6. Batch and EMR for big jobs
  7. Edge and distributed compute (Wavelength, Outposts, CloudFront Functions / Lambda@Edge)
  8. Decoupling so components scale independently

92. EC2 instance families and choosing sizes (Domain 3.2)

🧒 LIKE I'M 5
A cricket team needs different specialists. EC2 offers server families for different kinds of work.

📖 EXPLAINED SIMPLY

  • General purpose balances CPU, memory, and networking. Use it for web servers and smaller databases.
  • Compute optimized provides more CPU for compute-heavy work.
  • Memory optimized provides more RAM for in-memory databases, caches, and analytics.
  • Storage optimized provides high local storage performance for demanding I/O.
  • Accelerated computing uses GPUs or other accelerators for graphics, machine learning, and specialized tasks.
  • Sizes within a family generally add CPU and memory. Bigger is not automatically better.
  • Burstable T instances suit low average CPU with short spikes. They use CPU credits; sustained high CPU can exhaust credits or incur Unlimited-mode charges.
  • Choose based on CPU, memory, storage, and network bottlenecks. Use CloudWatch and Compute Optimizer to right-size.
  • Check x86_64 or arm64 software compatibility before changing architecture.

📚 JARGON BOX

  • General purpose → Balanced compute and memory.
  • Compute optimized → CPU-focused.
  • Memory optimized → RAM-focused.
  • Storage optimized → High local storage performance.
  • Accelerated → GPU or specialized hardware.
  • Burstable → Can use CPU credits for short bursts.
  • Right-sizing → Matching instance size to actual demand.

⚖️ COMPARE WITH LOOKALIKES

FamilyBest for
General purposeWeb and general apps
Compute optimizedCPU-heavy jobs
Memory optimizedLarge in-memory datasets
Storage optimizedHigh local I/O
AcceleratedGPUs and ML

🎯 EXAM LENS

  • "CPU-bound processing" → Compute optimized.
  • "Large in-memory dataset" → Memory optimized.
  • "High local storage I/O" → Storage optimized.
  • "GPU workload" → Accelerated.
  • "Low average CPU with spikes" → Burstable T family.

🪤 TRAPS

  • CPU is not the only sizing factor.
  • Burstable instances can run short of credits.
  • Arm needs compatible binaries and dependencies.
  • A larger instance can waste money if the bottleneck is elsewhere.

📝 PRACTICE QUESTION
An application has moderate CPU use but high memory pressure. Which family should be evaluated first?
A. Memory optimized B. Compute optimized C. Storage optimized D. Burstable only

Answer: A. Memory-optimized instances provide more RAM. The other families target CPU, storage, or burstable CPU needs.

🔁 ONE-LINE RECAP
Choose EC2 by the bottleneck: balanced, CPU, memory, storage, or accelerator.


93. EC2 placement groups: cluster, spread, partition (Domain 3.2)

🧒 LIKE I'M 5
A school can place friends close together for teamwork or spread them across buildings for safety. Placement groups influence where EC2 instances run.

📖 EXPLAINED SIMPLY

  • Cluster places instances close together in one AZ. It suits tightly coupled workloads needing low latency and high network throughput.
  • Spread places a small number of critical instances on distinct hardware to reduce correlated failure. Standard spread placement has a limit of seven running instances per AZ per group.
  • Partition divides instances into logical partitions placed on separate racks. It suits large distributed systems such as Kafka, Hadoop, and Cassandra.
  • Placement groups do not replicate application data or replace multi-AZ design.
  • A cluster group is confined to one AZ. Spread and partition designs have their own AZ and instance constraints.
  • Choose cluster for performance, spread for small critical fleets, and partition for large distributed fleets.

📚 JARGON BOX

  • Placement group → Rule influencing instance hardware placement.
  • Cluster → Instances placed close together.
  • Spread → Instances kept on separate hardware.
  • Partition → Logical groups separated across racks.
  • Correlated failure → One event affects several components.

⚖️ COMPARE WITH LOOKALIKES

TypeGoalTypical workload
ClusterLow-latency communicationHPC
SpreadHardware isolationSmall critical fleet
PartitionRack-level separationKafka/Hadoop

🎯 EXAM LENS

  • "Lowest network latency between instances" → Cluster.
  • "A few critical instances on separate hardware" → Spread.
  • "Kafka brokers across racks" → Partition.

🪤 TRAPS

  • Cluster is single-AZ.
  • Spread is for a small number of instances.
  • Partition targets large distributed fleets.
  • Placement groups do not provide backups.

📝 PRACTICE QUESTION
A large Kafka cluster must reduce the chance that a rack failure affects every broker group. Which group fits?
A. Partition B. Cluster C. Spread only D. No placement strategy

Answer: A. Partition groups separate instances across racks. Cluster focuses on proximity. Spread is intended for a small number of instances.

🔁 ONE-LINE RECAP
Cluster optimizes proximity, spread isolates a small fleet, and partition separates large fleets across racks.


94. EC2 Auto Scaling policies and metrics (Domain 3.2)

🧒 LIKE I'M 5
A shop hires workers when the queue grows and reduces staff when it gets quiet. Auto Scaling policies decide when capacity changes.

📖 EXPLAINED SIMPLY

  • Target tracking keeps a metric near a target, such as average CPU near 50%.
  • Step scaling changes capacity by different amounts when a metric crosses alarm thresholds.
  • Scheduled scaling changes capacity at known times, such as before a daily sales peak.
  • Predictive scaling forecasts demand from historical patterns and prepares capacity ahead.
  • Select metrics that reflect real demand. CPU suits compute-heavy apps; request count per target suits web apps; queue depth suits background workers.
  • Cooldown and instance warmup prevent repeated scaling actions before new capacity becomes useful.
  • Set minimum and maximum capacity to balance availability and cost.
  • Use scale-out to add capacity and scale-in to remove it. Test scale-in carefully so required redundancy remains.

📚 JARGON BOX

  • Target tracking → Keep a metric near a chosen value.
  • Step scaling → Change capacity by threshold bands.
  • Scheduled → Scale at set times.
  • Predictive → Forecast demand.
  • Cooldown → Wait before another scaling action.
  • Warmup → Time for a new instance to become useful.

⚖️ COMPARE WITH LOOKALIKES

PolicyBest use
Target trackingDynamic metric target
Step scalingDifferent threshold responses
ScheduledKnown traffic timetable
PredictiveRecurring patterns and forecasts

🎯 EXAM LENS

  • "Keep average CPU near 50%" → Target tracking.
  • "Add 2 at 70%, 4 at 90%" → Step scaling.
  • "Known weekday 9 AM peak" → Scheduled.
  • "Forecast repeating demand" → Predictive.

🪤 TRAPS

  • Scheduled scaling does not learn patterns.
  • Target tracking is not a fixed schedule.
  • Wrong metrics cause wrong scaling decisions.
  • Too-low minimum capacity can harm availability.

📝 PRACTICE QUESTION
Traffic rises predictably every weekday morning. Capacity should be ready before the spike. Which policy fits?
A. Scheduled scaling B. S3 Versioning C. Security group D. Manual replacement only

Answer: A. Scheduled scaling prepares capacity at known times. The other options do not scale EC2 capacity.

🔁 ONE-LINE RECAP
Use target tracking for metric targets, step for threshold bands, scheduled for known times, and predictive for forecasts.


95. AWS Auto Scaling beyond EC2 (Domain 3.2)

🧒 LIKE I'M 5
A delivery company manages drivers, vans, and warehouse workers. AWS Auto Scaling can coordinate capacity across supported resource types.

📖 EXPLAINED SIMPLY

  • EC2 Auto Scaling manages EC2 instance groups.
  • AWS Auto Scaling provides scaling plans for supported resources across services.
  • Supported resources can include EC2 groups, ECS services, DynamoDB tables or indexes, and Aurora replicas, depending on the current feature set.
  • Dynamic scaling reacts to metrics. Predictive scaling forecasts recurring demand for supported resources.
  • Some services have native scaling features. DynamoDB has provisioned capacity auto scaling. ECS has service auto scaling.
  • Use native scaling when it meets the need. Use AWS Auto Scaling for coordinated plans across supported resources.
  • Scaling limits and metrics vary by resource. Confirm current support and set safe minimum and maximum values.
  • Scaling does not fix poor queries or network bottlenecks.

📚 JARGON BOX

  • Scaling plan → Configuration describing resource scaling.
  • Dynamic scaling → Adjust capacity from current metrics.
  • Predictive scaling → Prepare capacity from forecasts.
  • Native scaling → Scaling feature built into a service.

⚖️ COMPARE WITH LOOKALIKES

OptionScope
EC2 Auto ScalingEC2 groups
AWS Auto ScalingMultiple supported resources
DynamoDB auto scalingProvisioned table/index capacity
ECS service scalingNumber of running tasks

🎯 EXAM LENS

  • "Maintain EC2 instance count" → EC2 Auto Scaling.
  • "Coordinated scaling plans across services" → AWS Auto Scaling.
  • "Adjust DynamoDB provisioned throughput" → DynamoDB auto scaling.
  • "Change ECS task count" → ECS service auto scaling.

🪤 TRAPS

  • Not every AWS resource supports every scaling plan.
  • AWS Auto Scaling and EC2 Auto Scaling are not identical.
  • Scaling out does not guarantee the app can handle more traffic.

📝 PRACTICE QUESTION
A company wants coordinated scaling plans for EC2 groups and supported application resources. Which service should it evaluate?
A. AWS Auto Scaling B. AWS Artifact C. CloudTrail Lake D. S3 Transfer Acceleration

Answer: A. AWS Auto Scaling supports coordinated plans for eligible resources. The other services do not manage scaling plans.

🔁 ONE-LINE RECAP
Use EC2 Auto Scaling for EC2 fleets and AWS Auto Scaling for plans across supported resources.


96. Lambda performance: memory, CPU, architecture, initialization (Domain 3.2)

🧒 LIKE I'M 5
Giving a worker more desk space can also let them work faster. Lambda memory settings also affect CPU power.

📖 EXPLAINED SIMPLY

  • Lambda memory can be configured from 128 MB to 10,240 MB. CPU allocation increases with memory.
  • More memory can reduce duration for CPU-heavy tasks. It can cost more per millisecond, but faster execution may reduce total cost.
  • Ephemeral storage in the temporary folder can be configured from 512 MB to 10,240 MB. It is not durable storage.
  • Choose x86_64 or arm64 after checking runtime, library, and binary compatibility.
  • A cold start occurs when Lambda prepares a new execution environment. Keep initialization code lightweight.
  • Reuse safe SDK clients and connections outside the handler to reduce repeated setup work.
  • Provisioned concurrency keeps environments initialized and reduces cold-start latency. It adds cost.
  • Reserved concurrency reserves capacity and caps a function's maximum concurrency. It does not pre-warm environments.
  • Benchmark memory, duration, errors, and cost. Use a performance-tuning tool when suitable.
  • Each invocation can run for at most 15 minutes. Use Batch or containers for longer work.

📚 JARGON BOX

  • Memory setting → RAM given to the function.
  • Ephemeral storage → Temporary local space.
  • Cold start → Startup delay for a new environment.
  • Initialization → Code run before the handler.
  • Provisioned concurrency → Pre-initialized environments.
  • Reserved concurrency → Capacity reservation and maximum concurrency.
  • Benchmark → Repeatable performance measurement.

⚖️ COMPARE WITH LOOKALIKES

SettingHelps withDoes not do
More memoryCPU and RAM performanceGuarantee lower cost
More temporary storageTemporary filesDurable storage
Provisioned concurrencyCold startsUnlimited capacity
Reserved concurrencyCapacity isolationPre-warm environments

🎯 EXAM LENS

  • "CPU-bound Lambda is slow" → Test more memory.
  • "Large temporary file" → Increase ephemeral storage.
  • "Predictable low startup latency" → Provisioned concurrency.
  • "Protect account concurrency" → Reserved concurrency.
  • "Work exceeds 15 minutes" → Use another compute service.

🪤 TRAPS

  • Memory affects CPU.
  • Reserved concurrency does not remove cold starts.
  • Temporary storage is not durable.
  • More memory may lower total cost if duration falls enough.

📝 PRACTICE QUESTION
A CPU-heavy Lambda runs slowly at 512 MB. The team wants to compare speed and total cost. What should it do?
A. Benchmark higher memory settings B. Add a public IP C. Increase timeout above 15 minutes D. Enable S3 Versioning

Answer: A. Higher memory also increases CPU. Benchmarking identifies the best balance. B and D are unrelated. C exceeds the invocation limit.

🔁 ONE-LINE RECAP
Tune Lambda memory, architecture, and initialization; use provisioned concurrency when cold-start latency matters.


97. ECS, EKS, and Fargate for elastic containers (Domain 3.2)

🧒 LIKE I'M 5
A company can manage its own warehouse or rent a managed workspace. ECS and EKS coordinate containers; Fargate supplies compute without customer-managed worker hosts.

📖 EXPLAINED SIMPLY

  • ECS is AWS-native container orchestration. It is often simpler when Kubernetes is not required.
  • EKS provides managed Kubernetes. It suits teams using Kubernetes APIs and tools.
  • Fargate runs supported ECS tasks and EKS pods without customers managing worker EC2 hosts.
  • EC2 launch type provides host control. You manage instance families, patching, scaling, and capacity.
  • Select task or pod CPU and memory based on workload demand. Monitor utilization and latency.
  • Use ECS Service Auto Scaling or Kubernetes autoscaling features to change task or pod counts.
  • Use a load balancer to distribute traffic. Keep application state shared or external where possible.
  • Fargate reduces server operations but may cost more than well-utilized EC2 for steady workloads.
  • EC2 can be more economical when workloads use committed capacity, Spot, or specialized instances.
  • ECR stores images. ECS and EKS run them.
  • Choose Fargate for variable demand and less host administration. Choose EC2 for host control and specialized capacity.

📚 JARGON BOX

  • Container → Packaged application and dependencies.
  • Orchestrator → System managing container placement and recovery.
  • Task → ECS unit of running containers.
  • Pod → Kubernetes unit of one or more containers.
  • Fargate → Serverless compute for containers.
  • Worker node → Machine running containers.
  • Autoscaling → Changing task or pod count.

⚖️ COMPARE WITH LOOKALIKES

OptionHost managementBest use
ECS on FargateAWSSimple serverless containers
ECS on EC2CustomerHost control
EKS on FargateAWS for eligible podsKubernetes without node management
EKS on EC2CustomerKubernetes with node control
LambdaAWSShort event-driven functions

🎯 EXAM LENS

  • "Containers without managing EC2" → Fargate.
  • "AWS-native container orchestration" → ECS.
  • "Standard Kubernetes APIs" → EKS.
  • "Need host-level daemon or specialized instance" → EC2 workers.
  • "Variable task count" → Service or pod autoscaling.

🪤 TRAPS

  • Fargate is compute, not orchestration.
  • ECR stores images but does not run containers.
  • Kubernetes adds operational complexity.
  • Fargate still needs IAM, networking, logging, and monitoring.

📝 PRACTICE QUESTION
An API fleet has variable demand. The team wants containers but no EC2 worker management. Which design fits?
A. ECS with Fargate and service auto scaling
B. ECS on one manually patched EC2 host
C. ECR only
D. S3 Glacier

Answer: A. ECS orchestrates tasks and Fargate removes host management. B needs server operations. ECR stores images. Glacier archives objects.

🔁 ONE-LINE RECAP
ECS or EKS orchestrates containers; Fargate removes worker-host management while EC2 offers more control.


98. AWS Batch and Amazon EMR for large jobs (Domain 3.2)

🧒 LIKE I'M 5
A factory runs many separate orders. A research lab processes one huge dataset across many machines. Batch manages queued jobs; EMR runs big-data frameworks.

📖 EXPLAINED SIMPLY

  • AWS Batch schedules, queues, and runs batch computing jobs.
  • Submit jobs with CPU, memory, container, and dependency requirements. Batch selects compute for the job queue.
  • It can use EC2, Spot, or Fargate for supported job configurations.
  • Use Batch for independent jobs, image rendering, scientific processing, and scheduled file conversion.
  • Amazon EMR runs big-data frameworks such as Apache Spark and Hadoop.
  • EMR processes large datasets across clusters. It offers cluster-based and serverless deployment options.
  • Use EMR when the workload needs distributed data processing, not just a queue of independent jobs.
  • EMR integrates with S3 and other data services. Select cluster capacity or serverless compute based on the job.
  • For simpler ETL, evaluate AWS Glue. For streaming ingestion, evaluate Kinesis or MSK.
  • Choose Batch for queued compute jobs. Choose EMR for distributed big-data frameworks.

📚 JARGON BOX

  • Batch job → Work processed without continuous user interaction.
  • Job queue → Collection of jobs waiting for compute.
  • Job definition → Blueprint for job resources and container.
  • Scheduler → Component choosing when and where jobs run.
  • EMR → Elastic MapReduce.
  • Spark → Distributed data processing engine.
  • Hadoop → Distributed storage and processing framework.
  • ETL → Extract, Transform, Load.

⚖️ COMPARE WITH LOOKALIKES

ServiceCore purposeChoose when
AWS BatchSchedule compute jobsIndependent queued jobs
EMRBig-data frameworksSpark/Hadoop
GlueManaged ETL and catalogData integration
LambdaShort event functionsSmall event tasks

🎯 EXAM LENS

  • "Queue thousands of independent jobs" → AWS Batch.
  • "Run Apache Spark/Hadoop" → EMR.
  • "Serverless ETL with catalog" → Glue.
  • "Short event reaction" → Lambda.

🪤 TRAPS

  • Batch does not make every job a big-data cluster.
  • EMR is not simply a job queue.
  • Glue and EMR can both transform data but have different operating models.
  • Store job outputs in durable storage such as S3.

📝 PRACTICE QUESTION
A company needs distributed Apache Spark processing for a large dataset. Which service is the strongest fit?
A. Amazon EMR B. AWS Batch only C. Amazon Polly D. Route 53

Answer: A. EMR provides managed big-data frameworks. Batch schedules jobs but is not the Spark platform itself. Polly and Route 53 are unrelated.

🔁 ONE-LINE RECAP
Use AWS Batch for queued compute jobs and EMR for distributed Spark/Hadoop processing.


99. Edge and distributed compute: Wavelength, Outposts, CloudFront Functions, Lambda@Edge (Domain 3.2)

🧒 LIKE I'M 5
A shop places a small counter near customers so they do not travel to the main warehouse. Edge computing moves selected work closer to users or devices.

📖 EXPLAINED SIMPLY

  • AWS Wavelength places AWS compute and storage inside supported telecom networks. It targets very low latency for mobile applications.
  • Use Wavelength for 5G use cases such as interactive media and connected devices.
  • AWS Outposts brings AWS-managed infrastructure to a customer's facility.
  • Use Outposts for local processing, low-latency access to on-premises systems, or data locality needs.
  • CloudFront Functions run lightweight code at CloudFront edge locations. They suit fast viewer-request and viewer-response changes.
  • Examples include URL rewrites, header changes, redirects, and simple request checks.
  • Lambda@Edge runs Lambda functions at CloudFront edge locations for more complex request or response logic.
  • Lambda@Edge offers more execution capability than CloudFront Functions but has more overhead and different limits.
  • Wavelength is telecom edge compute. Outposts is on-premises AWS infrastructure. CloudFront options customize content delivery.
  • Use edge compute only when latency, locality, or request customization justifies the added complexity.

📚 JARGON BOX

  • Edge computing → Processing closer to a user or device.
  • Wavelength Zone → AWS infrastructure inside a telecom network.
  • Outposts → AWS infrastructure installed at a customer site.
  • CloudFront edge location → Site near users that serves content.
  • Viewer request → Request received from a client.
  • Origin request → Request CloudFront sends to the origin.
  • Rewrite → Change a URL or request before forwarding.

⚖️ COMPARE WITH LOOKALIKES

ServiceLocationBest use
WavelengthTelecom networkLow-latency mobile apps
OutpostsCustomer facilityLocal AWS workloads
CloudFront FunctionsEdge locationLightweight request changes
Lambda@EdgeEdge locationMore complex edge logic

🎯 EXAM LENS

  • "5G mobile app needs very low latency" → Wavelength.
  • "AWS infrastructure at customer premises" → Outposts.
  • "Lightweight URL rewrite at edge" → CloudFront Functions.
  • "More complex Lambda logic at CloudFront edge" → Lambda@Edge.

🪤 TRAPS

  • Wavelength is not Outposts.
  • CloudFront Functions are not full Lambda functions.
  • Edge compute does not automatically move the database to the edge.
  • Use Regional services when they already meet latency needs.

📝 PRACTICE QUESTION
A mobile app needs compute close to users inside a supported 5G network. Which option fits?
A. AWS Wavelength B. AWS Outposts C. CloudFront Functions D. S3 Glacier

Answer: A. Wavelength places compute in supported telecom networks. Outposts runs at customer sites. CloudFront Functions modify edge requests. Glacier archives objects.

🔁 ONE-LINE RECAP
Use Wavelength for telecom edge, Outposts for on-premises AWS, and CloudFront edge code for request customization.


100. Decoupling compute so components scale independently (Domain 3.2)

🧒 LIKE I'M 5
A restaurant lets the cashier accept orders while the kitchen works at its own pace. A queue separates the two jobs.

📖 EXPLAINED SIMPLY

  • Decoupling reduces direct dependency between application components.
  • A synchronous service call makes the caller wait. If the downstream service slows, the caller may also slow.
  • SQS buffers work. Producers can send messages while consumers process them at their own rate.
  • SNS sends copies to multiple subscribers. EventBridge routes events based on content and rules.
  • Lambda can process queue messages without server management. ECS or EKS can run longer-lived consumers.
  • Use separate queues for independent consumers. One shared queue distributes messages among competing consumers; it does not give each service its own copy.
  • Configure retention, visibility timeout, DLQ, and retry rules carefully.
  • Consumers must be idempotent. A retry should not charge a customer twice.
  • Monitor queue depth and message age. Scale consumers when backlog grows.
  • Decoupling adds eventual consistency and monitoring needs. Use synchronous APIs when an immediate result is required.
  • Combine patterns when a user needs a quick acknowledgement but downstream work can continue asynchronously.

📚 JARGON BOX

  • Decoupling → Reducing direct dependency between components.
  • Producer → Component sending work.
  • Consumer → Component processing work.
  • Backlog → Messages waiting for processing.
  • Eventual consistency → Components may reflect a change at different times.
  • Idempotent → Safe to repeat without duplicate effects.
  • Backpressure → Slowing producers or scaling consumers when demand exceeds capacity.

⚖️ COMPARE WITH LOOKALIKES

PatternCaller waits?Best use
Synchronous APIYesImmediate response
SQS queueNoBackground work and buffering
SNS fan-outNoNotify independent subscribers
EventBridgeNoContent-based event routing
Step FunctionsCoordinates stepsMulti-step workflow

🎯 EXAM LENS

  • "Absorb traffic spikes" → SQS.
  • "Give each downstream service its own copy" → SNS-to-SQS fan-out.
  • "Route events by fields" → EventBridge.
  • "Scale consumers with backlog" → Queue-depth metric and consumer scaling.
  • "Avoid duplicate payment after retry" → Idempotency.

🪤 TRAPS

  • One shared SQS queue is not fan-out.
  • A queue can grow if consumers are undersized.
  • Retries can duplicate work.
  • Asynchronous processing does not return the final result immediately.

📝 PRACTICE QUESTION
An online store accepts orders quickly. Inventory, billing, and shipping process each order independently and may run at different speeds. What pattern fits?
A. Publish an event and fan out to separate SQS queues
B. Make the user wait for every service
C. Store all work in one EC2 local file
D. Disable retries

Answer: A. Each service gets its own durable queue and works independently. B is tightly coupled. C is not a durable distributed queue. D reduces resilience.

🔁 ONE-LINE RECAP
Decouple workloads with queues and events so producers and consumers can scale and recover independently.

✅ Batch 5 — topics 81–100

Batch 5 review sheet

  • Check standby capacity limits → Service Quotas in each Region.
  • Trace a slow distributed request → X-Ray.
  • Measure user experience → Availability, latency, errors, saturation.
  • Analyze sentiment → Comprehend.
  • Turn text into speech → Polly.
  • Compatible legacy broker → Amazon MQ.
  • Block storage → EBS.
  • Shared file storage → EFS or the right FSx product.
  • Object storage → S3.
  • Very high IOPS → io2.
  • General-purpose SSD → gp3.
  • Large sequential HDD throughput → st1.
  • Temporary host-local scratch space → Instance store.
  • Shared Linux NFS → EFS.
  • Windows SMB plus AD → FSx for Windows.
  • High-performance parallel files → FSx for Lustre.
  • Huge S3 uploads → Multipart upload.
  • Parallel partial S3 downloads → Byte-range GET.
  • Existing tape backup workflow → Tape Gateway.
  • Bulk transfer and synchronization → DataSync.

5 Extra Mixed Scenario Questions

1. A Linux application fleet needs shared files and unpredictable throughput. What is the best fit?
A. EFS with Elastic throughput
B. One EBS volume per server
C. S3 Glacier Deep Archive
D. Instance store

Answer: A. EFS shares files and can adapt throughput. B creates separate disks. C is archive storage. D is temporary.

2. A Windows application requires SMB shares integrated with Active Directory. Which service fits?
A. FSx for Windows File Server
B. EFS
C. S3 Standard
D. FSx for Lustre

Answer: A. FSx for Windows provides SMB and AD support. EFS is NFS. S3 is object storage. Lustre is for parallel compute.

3. A company uses existing tape backup software and wants virtual tapes in AWS. Which service is best?
A. Tape Gateway
B. DataSync
C. EBS gp3
D. CloudFront

Answer: A. Tape Gateway preserves tape workflows. DataSync moves files. EBS and CloudFront serve different purposes.

4. A media service uploads multi-gigabyte objects. It must retry failed parts independently. What should it use?
A. S3 multipart upload
B. S3 lifecycle expiration
C. S3 Object Lock
D. Route 53 failover

Answer: A. Multipart upload supports part-level retries. The others manage lifecycle, retention, and DNS.

5. A company sees S3 503 Slow Down responses during a sudden upload spike. What should its clients do?
A. Retry with exponential backoff and jitter
B. Retry instantly in a tight loop
C. Disable all error handling
D. Move every object to Glacier immediately

Answer: A. Backoff and jitter reduce synchronized retry pressure. Tight loops increase load. The other actions do not address request throttling.

3.3 High-performing databases

Topics to cover, in this order:

  1. Database types: relational, key-value, document, graph, in-memory, columnar
  2. RDS engines and instance/storage choices (IOPS)
  3. Aurora (architecture, replicas, Serverless, Global Database)
  4. DynamoDB (partition keys, capacity modes, DAX, Global Tables, streams)
  5. ElastiCache Redis vs Memcached, caching strategies (lazy loading, write-through)
  6. Read replicas and RDS Proxy
  7. Read-heavy vs write-heavy patterns
  8. Migrations: homogeneous vs heterogeneous (DMS, SCT)

101. Database types and choosing the right data model (Domain 3.3)

🧒 LIKE I'M 5
A school uses different registers for attendance, marks, and library books. Databases also have different shapes for different jobs.

📖 EXPLAINED SIMPLY

  • Relational databases store related records in tables with rows and columns. They support SQL, joins, and transactions. Use them for orders, accounts, and financial records.
  • Key-value databases look up a value using a unique key. They suit sessions, carts, and fast lookups.
  • Document databases store flexible records, often as JSON-like documents. They suit user profiles and content with changing fields.
  • Graph databases store entities and their relationships. Use them for social networks, fraud links, and recommendation paths.
  • In-memory databases keep frequently accessed data in RAM. They suit caches, session data, and very fast lookups.
  • Columnar databases store data by column rather than row. They suit analytics over large datasets.
  • Time-series databases organize measurements by time. They suit device telemetry and monitoring.
  • AWS examples include RDS/Aurora for relational data, DynamoDB for key-value and document patterns, Neptune for graph, ElastiCache for in-memory, Redshift for columnar analytics, and Timestream for time-series workloads.
  • Choose by access pattern, consistency, relationships, query needs, throughput, and cost. Do not choose a database only because it is popular.

📚 JARGON BOX

  • Relational → Data organized into related tables.
  • Key-value → Retrieve a value by its key.
  • Document → Flexible record stored as a document.
  • Graph → Data represented as entities and relationships.
  • In-memory → Data held in RAM for fast access.
  • Columnar → Data stored by columns for analytics.
  • Time-series → Data indexed by time.

⚖️ COMPARE WITH LOOKALIKES

TypeStrong pointTypical use
RelationalJoins and transactionsOrders and accounts
Key-value/documentFlexible, scalable lookupsProfiles and carts
GraphRelationship traversalFraud and social graphs
In-memoryVery low latencyCache and sessions
ColumnarAnalytical scansBI and reporting
Time-seriesTime-based measurementsTelemetry

🎯 EXAM LENS

  • "Complex joins and transactions" → Relational.
  • "Massive key-based lookups" → DynamoDB.
  • "Follow relationships between people" → Graph.
  • "Sub-millisecond cache lookup" → In-memory cache.
  • "Scan years of sales by column" → Columnar analytics.

🪤 TRAPS

  • A relational database is not always the best scalable key-value store.
  • A cache is not usually the system of record.
  • Graph databases are optimized for relationship traversal, not every query.
  • Columnar storage is usually for analytics, not frequent small row updates.

📝 PRACTICE QUESTION
A fraud system must find complex relationships among accounts, devices, and transactions. Which database type is most suitable?
A. Graph database
B. Object storage
C. Time-series only
D. File system

Answer: A. Graph databases model and traverse relationships. Object, time-series, and file storage do not provide graph traversal as their main model.

🔁 ONE-LINE RECAP
Choose database type by data shape and access pattern: tables, keys, documents, relationships, memory, columns, or time.


102. RDS engines and engine selection (Domain 3.3)

🧒 LIKE I'M 5
A mechanic chooses the right tool for each vehicle. RDS offers several database engines, and the application should choose one that fits its SQL and licensing needs.

📖 EXPLAINED SIMPLY

  • Amazon RDS manages relational database engines. AWS handles much of the routine infrastructure work.
  • Supported engines include Aurora, MySQL, PostgreSQL, MariaDB, Oracle, Microsoft SQL Server, and Db2, subject to Region and feature availability.
  • Choose MySQL or PostgreSQL when the application fits those open-source engines and wants broad compatibility.
  • Choose Oracle or SQL Server when the application depends on their features, tooling, or existing licensing model.
  • Aurora is AWS-built and compatible with MySQL or PostgreSQL. It uses a different cluster storage architecture.
  • Check engine features, extensions, stored procedures, drivers, licensing, and migration effort before selecting.
  • RDS does not mean every engine has identical scaling, replication, backup, or networking capabilities.
  • Multi-AZ and read replica options vary by engine and deployment type.
  • Use the engine that meets application compatibility first. Then compare price, performance, support, and operational effort.

📚 JARGON BOX

  • Database engine → Software that stores and queries database records.
  • Compatibility → Ability to run existing SQL, drivers, and application code.
  • Extension → Extra database capability.
  • Licensing → Legal and commercial terms for using software.
  • Managed database → AWS operates much of the underlying database infrastructure.

⚖️ COMPARE WITH LOOKALIKES

EngineCommon reason to choose
RDS MySQLExisting MySQL apps
RDS PostgreSQLAdvanced SQL and PostgreSQL ecosystem
RDS MariaDBMariaDB compatibility
RDS OracleOracle-dependent application
RDS SQL ServerMicrosoft SQL Server-dependent app
AuroraAWS-built MySQL/PostgreSQL-compatible cluster

🎯 EXAM LENS

  • "Application requires Oracle-specific features" → RDS for Oracle.
  • "Existing SQL Server application" → RDS for SQL Server.
  • "Open-source relational engine" → MySQL or PostgreSQL when compatible.
  • "Higher-performance AWS-built MySQL/PostgreSQL-compatible DB" → Evaluate Aurora.

🪤 TRAPS

  • Aurora compatibility does not mean every engine feature is identical.
  • Licensing can change total cost.
  • Engine choice affects migration effort.
  • Check Region and version support.

📝 PRACTICE QUESTION
A legacy finance application uses Oracle-specific packages and PL/SQL. The company wants a managed relational database with minimal code changes. What should it evaluate first?
A. RDS for Oracle
B. DynamoDB
C. ElastiCache Memcached
D. S3

Answer: A. RDS for Oracle preserves Oracle engine compatibility. The other options are not relational replacements for Oracle-specific code.

🔁 ONE-LINE RECAP
Choose an RDS engine by application compatibility, required features, licensing, and supported deployment options.


103. RDS instance classes, storage, IOPS, and autoscaling (Domain 3.3)

🧒 LIKE I'M 5
A library needs enough shelves and enough librarians. Database compute is like the librarians; storage and IOPS are like shelves and how quickly books can be fetched.

📖 EXPLAINED SIMPLY

  • RDS performance depends on instance CPU and memory, storage type, IOPS, throughput, and database configuration.
  • Choose a DB instance class that has enough CPU and RAM for connections, query work, and cache.
  • General Purpose SSD storage suits many workloads. Provisioned IOPS SSD suits demanding I/O needs.
  • IOPS measures operations per second. Throughput measures data transferred per second.
  • Database workloads with many small random reads and writes often need higher IOPS.
  • Large sequential scans may need higher throughput.
  • Some RDS engines and storage types let you increase IOPS or storage throughput independently within service limits.
  • Storage autoscaling can increase allocated storage when the database approaches its configured threshold. It does not shrink storage later.
  • Set a maximum storage limit to prevent unexpected growth. Monitor free storage and storage latency.
  • Use Performance Insights or Database Insights where supported to identify database load and waits.
  • Scale compute when CPU or memory is the bottleneck. Scale storage performance when disk I/O is the bottleneck.
  • Do not buy the largest instance before identifying the bottleneck.

📚 JARGON BOX

  • DB instance class → Compute size for a database.
  • IOPS → Input/output operations per second.
  • Throughput → Amount of data moved per second.
  • Random I/O → Access to many separate storage locations.
  • Sequential I/O → Access to data in order.
  • Storage autoscaling → Automatically increase allocated storage.
  • Wait event → Time a database session waits for a resource.

⚖️ COMPARE WITH LOOKALIKES

SymptomLikely area to tune
High CPUDB instance class or query plan
Memory pressureInstance memory and cache
High disk latencyStorage type or IOPS
Large sequential transfersThroughput
Low free storageStorage allocation and autoscaling

🎯 EXAM LENS

  • "Database has high read/write I/O wait" → Examine storage IOPS and latency.
  • "Large data scans" → Examine throughput.
  • "CPU is saturated" → Evaluate DB instance class and queries.
  • "Storage should grow automatically" → RDS storage autoscaling.

🪤 TRAPS

  • More CPU does not fix every storage bottleneck.
  • IOPS and throughput are different.
  • Storage autoscaling increases space; it does not optimize SQL.
  • Storage generally does not shrink automatically after growth.

📝 PRACTICE QUESTION
A database has low CPU usage but high disk I/O wait during random reads. What should the architect investigate first?
A. Storage IOPS and latency
B. Route 53 routing policy
C. Lambda concurrency
D. S3 lifecycle rules

Answer: A. Random database reads depend on storage IOPS and latency. The other choices do not address database disk performance.

🔁 ONE-LINE RECAP
Tune database compute, memory, IOPS, throughput, and storage separately according to the observed bottleneck.


104. Aurora architecture and reader endpoints for performance (Domain 3.3)

🧒 LIKE I'M 5
One main cashier handles payments, while several helper counters answer questions. Aurora separates writes from reads and shares a cluster storage volume.

📖 EXPLAINED SIMPLY

  • An Aurora cluster has one writer DB instance and can have reader instances called Aurora Replicas.
  • Writer and reader instances use the same distributed cluster storage volume. Readers do not keep separate full copies of the data.
  • Aurora storage keeps multiple copies across Availability Zones. This improves durability and availability.
  • The writer endpoint directs connections to the current writer.
  • The reader endpoint distributes read-only connections across available Aurora Replicas.
  • Add readers when read traffic grows. An Aurora cluster supports up to 15 Aurora Replicas.
  • A custom endpoint can direct a workload to a chosen set of instances, such as larger readers for reports.
  • Reader connections can use different instance classes from the writer when supported.
  • Aurora Replicas can also serve as failover targets. Read scaling and high availability are separate benefits.
  • Use the reader endpoint for read-heavy applications. Use the writer endpoint for writes and read-after-write operations requiring the writer.
  • Avoid sending writes to a reader endpoint. Do not assume every read from a replica is immediately consistent with a just-completed write.

📚 JARGON BOX

  • Cluster volume → Shared distributed database storage.
  • Writer → Instance that accepts writes.
  • Aurora Replica → Read-only DB instance sharing cluster storage.
  • Writer endpoint → DNS name routing to the current writer.
  • Reader endpoint → DNS name distributing read connections.
  • Custom endpoint → Endpoint for a selected instance group.
  • Failover → Promote another instance when writer fails.

⚖️ COMPARE WITH LOOKALIKES

EndpointUse
WriterWrites and writer-consistent reads
ReaderSpread read-only connections
CustomRoute workload to selected instances

🎯 EXAM LENS

  • "Offload SELECT queries from writer" → Aurora Replicas and reader endpoint.
  • "Route writes to current primary" → Writer endpoint.
  • "Different reader class for reporting" → Custom endpoint.
  • "Up to 15 readers" → Aurora cluster replicas.

🪤 TRAPS

  • Aurora Replicas share cluster storage; they are not ordinary independent copies.
  • Reader endpoints are for read-only connections.
  • Read scaling is not the same as write scaling.
  • The cluster volume is separate from the DB instance compute.

📝 PRACTICE QUESTION
An Aurora application has heavy read traffic and must keep writes on the primary. Which design best offloads reads?
A. Add Aurora Replicas and connect read-only requests through the reader endpoint
B. Send writes to the reader endpoint
C. Add a larger S3 bucket
D. Use a NAT gateway

Answer: A. Aurora Replicas share the cluster volume and reader endpoint distributes read connections. The others do not scale database reads.

🔁 ONE-LINE RECAP
Use Aurora's writer endpoint for writes and its reader endpoint to distribute read traffic across replicas.


105. Aurora Serverless and variable database demand (Domain 3.3)

🧒 LIKE I'M 5
A restaurant opens more tables when customers arrive and reduces tables when it is quiet. Aurora Serverless adjusts database capacity as demand changes.

📖 EXPLAINED SIMPLY

  • Aurora Serverless is a managed Aurora configuration that adjusts database compute capacity based on workload demand.
  • Aurora Serverless v2 uses Aurora Capacity Units (ACUs). Capacity can scale in fine increments within the configured minimum and maximum.
  • Choose minimum and maximum capacity according to baseline load and peak demand.
  • Some engine versions and configurations support auto-pause to zero ACUs after inactivity. Confirm compatibility before relying on it.
  • Serverless can suit variable, intermittent, or unpredictable workloads.
  • Provisioned Aurora is often better when demand is stable and predictable or when precise instance sizing is preferred.
  • Monitor capacity, latency, and scaling behavior. Sudden peaks may still need suitable minimum capacity and connection management.
  • Serverless does not remove database schema design, query tuning, or security responsibilities.
  • Use RDS Proxy where connection churn is high and the engine/configuration is supported.
  • Compare total cost over real traffic patterns. A provisioned cluster may be cheaper for steady heavy use.

📚 JARGON BOX

  • Serverless database → Database compute capacity managed by the service.
  • ACU → Aurora Capacity Unit, a measure of Aurora Serverless capacity.
  • Auto-pause → Suspend capacity after inactivity when supported.
  • Minimum capacity → Lowest configured capacity.
  • Maximum capacity → Upper capacity limit.

⚖️ COMPARE WITH LOOKALIKES

OptionDemand patternStrength
Aurora provisionedStable/predictableExplicit instance sizing
Aurora Serverless v2VariableFine-grained capacity scaling
DynamoDB on-demandVariable request volumeServerless key-value/document capacity
RDS ProxyConnection-heavy appConnection pooling, not compute scaling

🎯 EXAM LENS

  • "Aurora demand changes frequently" → Aurora Serverless.
  • "Capacity measured in ACUs" → Aurora Serverless v2.
  • "Stable high utilization" → Compare provisioned Aurora.
  • "Too many app connections" → RDS Proxy, not Serverless alone.

🪤 TRAPS

  • Serverless does not mean unlimited capacity.
  • Minimum and maximum capacity still matter.
  • Auto-pause depends on supported versions and configuration.
  • Serverless does not automatically optimize SQL queries.

📝 PRACTICE QUESTION
A database has unpredictable periods of high demand and long quiet periods. The application uses Aurora-compatible SQL. Which option should the architect evaluate?
A. Aurora Serverless v2
B. One fixed oversized EC2 database server
C. S3 Glacier
D. EBS snapshots only

Answer: A. Aurora Serverless can adjust capacity as demand changes. B may waste resources. C and D do not provide a live relational database.

🔁 ONE-LINE RECAP
Use Aurora Serverless for variable demand and provisioned Aurora when steady capacity is more economical.


106. DynamoDB partition keys, sort keys, and hot partitions (Domain 3.3)

🧒 LIKE I'M 5
A warehouse divides parcels among shelves. If every parcel goes to one shelf, workers crowd around it. DynamoDB partition keys spread records across storage partitions.

📖 EXPLAINED SIMPLY

  • DynamoDB stores items in tables. Each item has a primary key.
  • A partition key identifies the logical partition. DynamoDB hashes it to distribute data.
  • A sort key is optional. It orders items that share the same partition key.
  • A composite primary key uses both partition key and sort key. It supports query patterns such as all orders for one customer by date.
  • Good partition keys distribute traffic and storage evenly. Customer ID, device ID, or tenant ID may work depending on access patterns.
  • A hot partition happens when too much traffic targets one partition key.
  • A single popular key can become a bottleneck even when the table has spare overall capacity.
  • Use write sharding or more granular key values when a single key receives too much traffic.
  • Design the key based on the queries the application must perform. DynamoDB is not designed for arbitrary joins.
  • Use GSIs or LSIs when supported alternate access patterns are needed. Add indexes only when justified because they add storage and write cost.
  • Avoid monotonically increasing keys if they concentrate traffic or create uneven access.

📚 JARGON BOX

  • Item → One record in a DynamoDB table.
  • Partition key → Key used to distribute and find items.
  • Sort key → Optional key ordering items within a partition-key group.
  • Composite key → Partition key plus sort key.
  • Hot partition → Partition receiving too much concentrated traffic.
  • GSI → Global Secondary Index.
  • LSI → Local Secondary Index.
  • Write sharding → Split a hot workload across multiple key values.

⚖️ COMPARE WITH LOOKALIKES

Key designUse
Partition key onlyDirect lookup by one key
Partition + sort keyGroup and order related items
GSIAlternate query key
LSIAlternate sort order for same partition key

🎯 EXAM LENS

  • "Query one customer's orders by date" → Customer partition key + date sort key.
  • "One popular key gets overloaded" → Hot partition; redesign or shard keys.
  • "Need alternate partition key lookup" → GSI.
  • "Uneven traffic across keys" → Improve key cardinality and distribution.

🪤 TRAPS

  • More table capacity does not always fix a hot partition.
  • DynamoDB does not support arbitrary relational joins.
  • Secondary indexes cost storage and write capacity.
  • A sort key only orders items sharing the same partition key.

📝 PRACTICE QUESTION
A DynamoDB table receives most writes to one partition key named GLOBAL_COUNTER. The table still has unused overall capacity. What should the architect consider?
A. Distribute writes using sharded keys
B. Increase the S3 bucket size
C. Add a Route 53 alias
D. Move the table to Glacier

Answer: A. Write sharding spreads a hot key across multiple key values. The other options do not address DynamoDB partition traffic.

🔁 ONE-LINE RECAP
Choose high-cardinality partition keys and sort keys that match queries to avoid hot partitions.


107. DynamoDB on-demand vs provisioned capacity (Domain 3.3)

🧒 LIKE I'M 5
One restaurant pays for ingredients as orders arrive. Another buys a planned amount in advance. DynamoDB offers on-demand and provisioned capacity modes.

📖 EXPLAINED SIMPLY

  • On-demand mode charges for actual read and write request units. It suits unpredictable or low-volume traffic.
  • DynamoDB manages capacity automatically in on-demand mode. Sudden traffic changes still need to follow service scaling behavior and quotas.
  • Provisioned mode sets read capacity units (RCUs) and write capacity units (WCUs).
  • Provisioned capacity can use auto scaling to adjust throughput when utilization changes.
  • One RCU supports up to two eventually consistent 4 KB reads per second, or one strongly consistent 4 KB read per second. Transactional reads use more capacity.
  • One WCU supports one write per second for an item up to 1 KB. Larger items consume more units.
  • Item size, consistency level, transactions, and indexes affect capacity consumption.
  • Provisioned mode can be cheaper for steady predictable workloads with well-understood traffic.
  • On-demand can be easier for spiky or unknown traffic but may cost more at sustained high usage.
  • Use CloudWatch metrics to compare request volume, throttles, and consumed capacity.
  • Choose by traffic predictability and cost, not by habit.

📚 JARGON BOX

  • RCU → Read Capacity Unit.
  • WCU → Write Capacity Unit.
  • Eventually consistent read → May briefly return older data.
  • Strongly consistent read → Returns latest successful writes, where supported.
  • Transactional read/write → ACID-style multi-item operation with extra capacity cost.
  • Auto scaling → Adjust provisioned capacity from utilization.

⚖️ COMPARE WITH LOOKALIKES

ModeBest useCost behavior
On-demandUnpredictable trafficPay per request
ProvisionedPredictable trafficPay for configured capacity
Provisioned + auto scalingVariable but patterned trafficAdjusts capacity within bounds

🎯 EXAM LENS

  • "Unpredictable traffic" → On-demand.
  • "Steady known request rate" → Provisioned.
  • "Provisioned capacity should adjust" → Auto scaling.
  • "Strongly consistent read" → Higher RCU usage than eventual reads.

🪤 TRAPS

  • Item size affects capacity units.
  • A strongly consistent read costs more capacity than an eventual read.
  • Transactions consume additional capacity.
  • Provisioned mode can throttle if capacity is too low.

📝 PRACTICE QUESTION
A new app has highly unpredictable traffic and no reliable usage history. The team wants to avoid estimating RCUs and WCUs. Which mode fits?
A. On-demand
B. Provisioned at a fixed low rate
C. EBS gp3
D. RDS Multi-AZ only

Answer: A. On-demand charges based on request usage and avoids initial capacity planning. B risks throttling. C is storage. D is database availability.

🔁 ONE-LINE RECAP
Use on-demand for unpredictable requests and provisioned capacity for predictable workloads that can be sized and tuned.


108. DynamoDB Accelerator (DAX) and read caching (Domain 3.3)

🧒 LIKE I'M 5
A library keeps popular books on a front desk. Customers get common books immediately instead of walking to the main shelves. DAX caches DynamoDB reads in memory.

📖 EXPLAINED SIMPLY

  • DynamoDB Accelerator (DAX) is a fully managed, in-memory cache for DynamoDB.
  • It provides microsecond response times for cached read requests.
  • DAX is API-compatible with many DynamoDB read operations. Applications use a DAX client to access the cluster.
  • It supports write-through caching. Writes sent through DAX update DynamoDB and the cache.
  • DAX is useful for read-heavy workloads with repeated requests for the same items.
  • It can reduce read load on the DynamoDB table.
  • DAX is not a replacement for DynamoDB storage. If cache data is missing, DAX gets it from DynamoDB.
  • DAX reads are eventually consistent. For applications requiring strongly consistent reads, query DynamoDB directly.
  • DAX adds cluster cost and networking complexity. Use it only when the workload benefits from repeated cached reads.
  • Use ElastiCache for a general-purpose cache across many data sources. Use DAX for DynamoDB-specific caching.

📚 JARGON BOX

  • DAX → DynamoDB Accelerator.
  • Cache hit → Requested data is already in cache.
  • Cache miss → Data is not in cache and must be fetched.
  • Write-through → Update cache and database during a write.
  • Eventually consistent → A cached value may briefly be behind the latest write.
  • Microsecond → One millionth of a second.

⚖️ COMPARE WITH LOOKALIKES

OptionCache targetStrongly consistent read?
DAXDynamoDBNo
ElastiCacheApplication-defined dataDepends on application logic
DynamoDB direct readDynamoDB tableYes, where supported

🎯 EXAM LENS

  • "Microsecond reads from DynamoDB" → DAX.
  • "Read-heavy repeated DynamoDB requests" → DAX.
  • "Need strongly consistent read" → Direct DynamoDB read.
  • "Cache several data sources" → ElastiCache.

🪤 TRAPS

  • DAX is DynamoDB-specific.
  • DAX does not replace the table.
  • DAX reads are eventually consistent.
  • Cache cost must be compared against the actual read benefit.

📝 PRACTICE QUESTION
A gaming application repeatedly reads the same DynamoDB items. It needs microsecond read latency and can accept eventual consistency. What should it add?
A. DAX
B. AWS Backup
C. Route 53 failover
D. Storage Gateway

Answer: A. DAX caches DynamoDB reads in memory. The other services manage backups, DNS, or hybrid storage.

🔁 ONE-LINE RECAP
Use DAX for repeated DynamoDB reads when microsecond cache latency is more important than strongly consistent reads.


109. DynamoDB Streams and event-driven changes (Domain 3.3)

🧒 LIKE I'M 5
A shop keeps a change diary whenever a product is added or updated. DynamoDB Streams records item changes so other services can react.

📖 EXPLAINED SIMPLY

  • DynamoDB Streams captures a time-ordered sequence of item-level changes in a table.
  • A stream record can show the old item, new item, both, or only keys, depending on the configured view type.
  • Changes can trigger Lambda functions or other stream consumers.
  • Use Streams for audit-style processing, search indexing, notifications, materialized views, or replication logic.
  • Stream records are retained for up to 24 hours.
  • Streams preserve ordering for changes to the same item. Do not assume a single global ordering across the whole table.
  • Enable a stream on the table and select which item attributes should appear.
  • Lambda event source mappings can poll the stream and invoke functions in batches.
  • Consumers must handle retries and duplicate processing safely.
  • DynamoDB Streams are not a long-term backup. Use PITR or backups for recovery.
  • Use Streams when downstream systems need to react to data changes without constantly polling the table.

📚 JARGON BOX

  • Stream → Ordered sequence of change records.
  • Stream record → One captured item change.
  • View type → Which old/new attributes are included.
  • Event source mapping → Integration that polls a stream and invokes Lambda.
  • Materialized view → Precomputed data representation for a query.
  • Retention → How long stream records remain available.

⚖️ COMPARE WITH LOOKALIKES

FeatureDynamoDB StreamsPITRSQS
Captures table changesYesBackup historyOnly messages sent to queue
RetentionUp to 24 hoursUp to 35 daysConfigurable message retention
Primary useReact to changesRestore dataDecouple work

🎯 EXAM LENS

  • "Trigger Lambda when an item changes" → DynamoDB Streams.
  • "Old and new item images" → Stream view type.
  • "Restore table to a time" → PITR, not Streams.
  • "Send a change to downstream services" → Streams plus Lambda or consumers.

🪤 TRAPS

  • Streams are not a backup.
  • Records are retained for only 24 hours.
  • Duplicate processing can occur; make consumers idempotent.
  • Ordering guarantees are scoped, not global across the table.

📝 PRACTICE QUESTION
An application must update a search index whenever a DynamoDB item changes. It should avoid repeatedly scanning the table. What should it use?
A. DynamoDB Streams with a Lambda consumer
B. S3 Lifecycle
C. CloudFront invalidation only
D. EBS snapshots

Answer: A. Streams captures item changes and Lambda can update the index. The others do not provide table change events.

🔁 ONE-LINE RECAP
Use DynamoDB Streams to trigger downstream processing whenever table items change.


110. ElastiCache: Valkey/Redis OSS compared with Memcached (Domain 3.3)

🧒 LIKE I'M 5
A shop can use a simple shared shelf or a richer register that remembers many kinds of information. ElastiCache offers different in-memory engines for different cache needs.

📖 EXPLAINED SIMPLY

  • Amazon ElastiCache provides managed in-memory caching using Valkey, Redis OSS, and Memcached engine options.
  • Valkey and Redis OSS support rich data structures such as strings, lists, sets, hashes, and sorted sets.
  • They support features such as replication, persistence options, and high availability, depending on engine and deployment.
  • Memcached is a simpler distributed object cache. It supports multi-threaded processing and easy horizontal scaling by adding nodes.
  • Choose Valkey or Redis OSS when richer data structures, replication, or advanced cache features are important.
  • Choose Memcached for simple object caching and straightforward scale-out.
  • ElastiCache is a cache, not the system of record. The application must handle cache misses and stale data.
  • ElastiCache Serverless can reduce cluster capacity management for supported engines and workloads.
  • Reuse long-lived connections and distribute keys to avoid hotspots.
  • Check current engine naming and supported features when selecting a cache.

📚 JARGON BOX

  • In-memory cache → Data stored in RAM for quick access.
  • Valkey → Open-source in-memory data store supported by ElastiCache.
  • Redis OSS → Redis open-source engine supported by ElastiCache.
  • Memcached → Simple distributed memory object cache.
  • Replication → Copying data to other nodes.
  • Multi-threaded → Uses multiple CPU threads for work.
  • Cache eviction → Removing items when space is needed.

⚖️ COMPARE WITH LOOKALIKES

FeatureValkey / Redis OSSMemcached
Data structuresRichSimple key-value objects
ReplicationSupportedNo built-in replication
Persistence optionsSupported by engine/deploymentNo persistence
Multi-threadingDifferent execution modelMulti-threaded
Best useRich cache featuresSimple distributed object cache

🎯 EXAM LENS

  • "Rich data structures, replication" → Valkey or Redis OSS.
  • "Simple multi-threaded object cache" → Memcached.
  • "Scale out by adding cache nodes" → Memcached is a common fit.
  • "Cache is not durable system of record" → Persist important data in database or storage.

🪤 TRAPS

  • A cache is not a durable database.
  • Memcached does not provide the same replication and persistence model.
  • Redis-style and Memcached clients are not interchangeable.
  • Choose engine features based on application requirements.

📝 PRACTICE QUESTION
An application needs a cache with lists, sorted sets, and replication support. Which engine should it evaluate?
A. Valkey or Redis OSS
B. Memcached only
C. S3 Glacier
D. EBS st1

Answer: A. Valkey and Redis OSS support richer data structures and replication. Memcached is simpler. Glacier and EBS are storage services.

🔁 ONE-LINE RECAP
Choose Valkey/Redis OSS for rich in-memory features and Memcached for simple, multi-threaded object caching.


111. Lazy loading and cache-aside strategy (Domain 3.3)

🧒 LIKE I'M 5
A student copies a book to their desk only when they need it. Lazy loading fills a cache only when an application requests missing data.

📖 EXPLAINED SIMPLY

  • Cache-aside, also called lazy loading, makes the application check the cache first.
  • If the item is found, return it immediately. This is a cache hit.
  • If it is missing, query the database, return the result, and store it in the cache.
  • The next request can use the cached value.
  • Lazy loading avoids filling cache with data nobody requests.
  • It can produce a cache miss penalty because the first request needs both cache and database work.
  • It can also return stale values if the database changes but the cache is not invalidated.
  • Use a Time To Live (TTL) so cached values expire after a defined period.
  • Use cache invalidation or write-through updates when freshness matters.
  • Cache popular and repeatedly requested data. Do not cache every record by default.
  • It works well with ElastiCache when the application can manage cache keys and misses.

📚 JARGON BOX

  • Cache-aside → Application checks cache, then database on miss.
  • Lazy loading → Load data into cache only when needed.
  • Cache hit → Data found in cache.
  • Cache miss → Data absent from cache.
  • TTL → Time To Live; expiry duration.
  • Invalidation → Marking cached data unusable after an update.

⚖️ COMPARE WITH LOOKALIKES

StrategyWhen cache is filledMain trade-off
Lazy loadingOn cache missFirst read can be slower
Write-throughDuring writeMore write work
TTLOn expiryData can be stale until expiry

🎯 EXAM LENS

  • "Load data only when requested" → Lazy loading.
  • "First request is slow; later requests are fast" → Cache-aside.
  • "Cache could contain stale data" → TTL or invalidation.
  • "Do not fill cache with unused records" → Lazy loading.

🪤 TRAPS

  • Lazy loading does not guarantee fresh data.
  • A cache miss adds a database round trip.
  • Cache expiry and invalidation must match freshness needs.
  • The database remains the source of truth.

📝 PRACTICE QUESTION
A product catalog has a very large number of items, but users repeatedly view only a small subset. Which caching strategy avoids filling the cache with every product?
A. Lazy loading
B. Write-through every product at deployment
C. Disable the database
D. Store every request permanently in instance memory

Answer: A. Lazy loading caches products when requested. B fills unused data. C removes the source of truth. D is not a shared durable cache.

🔁 ONE-LINE RECAP
Lazy loading caches an item after its first miss and speeds later reads without preloading unused data.


112. Write-through caching, TTL, and invalidation (Domain 3.3)

🧒 LIKE I'M 5
When a shop updates its price board, it updates the main book and the front display together. Write-through caching updates the cache as data is written.

📖 EXPLAINED SIMPLY

  • Write-through updates the database and cache during a write operation.
  • This helps keep cached values current after successful writes.
  • It adds write latency because the application updates both systems.
  • Some records may be written to cache but never read. That can waste memory.
  • TTL automatically expires cache entries after a chosen time.
  • TTL controls how long old data can remain in cache. It does not guarantee perfect freshness during the TTL window.
  • Invalidation removes a cache entry when the source data changes.
  • Cache invalidation is difficult when many services can update the same record. Keep update ownership clear.
  • Combine write-through with TTL to reduce stale data and remove unused cache entries.
  • For very strict consistency, read from the primary database or use an appropriate consistency design.
  • Measure hit ratio, eviction rate, latency, and database load to see whether caching helps.

📚 JARGON BOX

  • Write-through → Update cache as the database is written.
  • TTL → Expiry timer for a cache entry.
  • Invalidation → Remove a cached value after a change.
  • Hit ratio → Percentage of requests served by cache.
  • Eviction → Cache removes an item to free space.
  • Stale data → Value older than the source of truth.

⚖️ COMPARE WITH LOOKALIKES

StrategyBenefitTrade-off
Lazy loadingCache only accessed dataFirst miss is slower
Write-throughCache updated on writesExtra write cost
TTLLimits stale ageCan still be stale before expiry
InvalidationRemove known stale itemMust track every relevant update

🎯 EXAM LENS

  • "Keep cache updated when database changes" → Write-through.
  • "Expire cached items after 5 minutes" → TTL.
  • "Remove cache after a record update" → Invalidation.
  • "Reduce unused cached records" → TTL with selective caching.

🪤 TRAPS

  • Write-through adds work to the write path.
  • TTL does not instantly update a changed value.
  • Cache eviction is not data backup.
  • The cache should not become the only copy of critical data.

📝 PRACTICE QUESTION
A product price changes in the database. The application must update the cached price during the same business operation. Which strategy fits?
A. Write-through
B. Lazy loading only
C. S3 Glacier lifecycle
D. Read replica promotion

Answer: A. Write-through updates the cache as part of the write path. Lazy loading may leave the old value cached. The other choices are unrelated.

🔁 ONE-LINE RECAP
Use write-through to update cache during writes, TTL to expire entries, and invalidation to remove known stale data.


113. Read replicas and database read scaling (Domain 3.3)

🧒 LIKE I'M 5
A busy shop adds extra counters for questions while one main counter records payments. Read replicas take read traffic away from the primary database.

📖 EXPLAINED SIMPLY

  • A read replica is a copy of a supported database used to serve read queries.
  • Many RDS read replicas use asynchronous replication. Changes may take time to appear, creating replication lag.
  • Route reporting, dashboards, and read-heavy queries to replicas. Keep writes on the primary.
  • Cross-Region read replicas can support global reads and disaster recovery for supported engines.
  • Read replicas can sometimes be promoted to standalone writable databases.
  • Read scaling is not the same as automatic HA failover. Use Multi-AZ for a standby-based availability design.
  • Replicas can reduce primary read load but do not increase write capacity on the primary.
  • Replication can copy accidental changes or deletes. It is not a backup.
  • Monitor replica lag and avoid replicas for queries that require the latest write immediately.
  • Use both Multi-AZ and read replicas when the application needs HA and extra read throughput.

📚 JARGON BOX

  • Read replica → Read-only database copy.
  • Asynchronous replication → Changes copy after the source commits.
  • Replication lag → Delay between primary and replica.
  • Promotion → Make a replica a writable database.
  • Read-heavy → Workload with many reads compared with writes.

⚖️ COMPARE WITH LOOKALIKES

FeatureMulti-AZ standbyRead replica
Main goalHigh availabilityRead scaling
Read trafficTraditional standby not readableServes reads
ReplicationSynchronous for standard standbyUsually asynchronous
FailoverManaged automatic failoverUsually promotion or configured workflow

🎯 EXAM LENS

  • "Offload SELECT/reporting traffic" → Read replica.
  • "Replica may be stale" → Asynchronous replication lag.
  • "Automatic database failover" → Multi-AZ.
  • "Need both HA and reads" → Multi-AZ plus read replicas.

🪤 TRAPS

  • Traditional Multi-AZ standby is not a read replica.
  • Read replicas do not automatically provide the same HA behavior.
  • Replication is not backup.
  • Replicas may lag behind the primary.

📝 PRACTICE QUESTION
An application has heavy reporting reads, while writes must continue on the primary. Slight replica lag is acceptable. What should it add?
A. Read replica
B. Traditional Multi-AZ standby for read traffic
C. NAT gateway
D. Security group rule only

Answer: A. Read replicas offload SELECT queries. A traditional Multi-AZ standby does not serve normal reads. NAT and security groups do not increase DB read capacity.

🔁 ONE-LINE RECAP
Use read replicas to scale reads and Multi-AZ to provide high availability.


114. RDS Proxy and database connection pooling (Domain 3.3)

🧒 LIKE I'M 5
A receptionist manages many visitors using a smaller set of rooms. RDS Proxy manages application connections so the database is not overwhelmed by connection creation.

📖 EXPLAINED SIMPLY

  • RDS Proxy sits between application clients and supported RDS or Aurora databases.
  • It pools database connections and reuses them across clients when safe.
  • This reduces connection setup work and protects the database from sudden connection storms.
  • It is useful for Lambda applications where many short-lived invocations can create bursts of connections.
  • It can help applications reconnect more quickly after supported database failovers.
  • It integrates with Secrets Manager and IAM database authentication for supported setups.
  • Some session behavior causes session pinning. A pinned client uses a dedicated backend connection and reduces pooling efficiency.
  • RDS Proxy does not cache query results and does not add read replicas.
  • Use Proxy for connection management. Use read replicas for read throughput and ElastiCache for caching.
  • Monitor connection counts, pinning, and database load.

📚 JARGON BOX

  • Proxy → Middle layer forwarding client requests.
  • Connection pooling → Reuse a set of database connections.
  • Multiplexing → Share backend connections across client sessions when safe.
  • Connection storm → Sudden surge in database connections.
  • Session pinning → Client session tied to one backend connection.

⚖️ COMPARE WITH LOOKALIKES

OptionSolves
RDS ProxyConnection pooling and failover connection handling
Read replicaRead throughput
Multi-AZHigh availability
ElastiCacheRepeated query caching

🎯 EXAM LENS

  • "Lambda creates too many DB connections" → RDS Proxy.
  • "Reuse DB connections" → RDS Proxy.
  • "Scale database reads" → Read replicas.
  • "Reduce repeated query load" → ElastiCache.

🪤 TRAPS

  • RDS Proxy is not a query-result cache.
  • It does not replace Multi-AZ.
  • It does not create additional database compute.
  • Session pinning can reduce pooling benefits.

📝 PRACTICE QUESTION
Many Lambda invocations overwhelm an RDS database with new connections. What should the architect add?
A. RDS Proxy
B. Route 53 geolocation
C. S3 Versioning
D. AWS Artifact

Answer: A. RDS Proxy pools connections and reduces connection storms. The other services do not manage database connections.

🔁 ONE-LINE RECAP
RDS Proxy pools database connections between applications and RDS or Aurora.


115. Read-heavy vs write-heavy database patterns (Domain 3.3)

🧒 LIKE I'M 5
A library may receive many questions but few new books, or many new books but fewer readers. Database design changes depending on whether reads or writes dominate.

📖 EXPLAINED SIMPLY

  • A read-heavy workload performs many more reads than writes. Examples include product catalogs, news pages, and reporting.
  • Improve read-heavy performance with caches, read replicas, DAX for DynamoDB, and read-optimized data models.
  • A write-heavy workload receives frequent updates. Examples include device telemetry, counters, and transaction ingestion.
  • Improve write-heavy performance by distributing keys, batching writes where supported, using queues to absorb bursts, and avoiding one hot record.
  • Relational databases may use indexes and partitioning carefully. Too many indexes slow writes because each write updates index structures.
  • DynamoDB write-heavy workloads need good partition-key distribution. A single hot key limits throughput.
  • Batch writes can reduce overhead, but must handle unprocessed items and retries.
  • Event-driven ingestion can buffer bursts. Consumers then write at a controlled rate.
  • Measure query latency, write latency, throughput, throttles, and replication lag.
  • Do not add a read replica to solve a write bottleneck. Do not add indexes blindly to solve a high-write workload.

📚 JARGON BOX

  • Read-heavy → More reads than writes.
  • Write-heavy → More writes than reads.
  • Index → Data structure speeding selected queries.
  • Hot key → One key receives disproportionate traffic.
  • Batch write → Send multiple write operations together.
  • Throttle → Reject or slow requests beyond capacity.
  • Partitioning → Divide data into smaller pieces.

⚖️ COMPARE WITH LOOKALIKES

WorkloadLikely optimization
Read-heavy RDSRead replicas and cache
Read-heavy DynamoDBDAX or cache
Write-heavy DynamoDBDistribute partition keys
Burst writesSQS buffer and controlled consumers
Slow relational queryQuery plan and index review

🎯 EXAM LENS

  • "Many SELECT queries" → Read replica or cache.
  • "Single DynamoDB partition gets hot" → Redesign key distribution.
  • "Write spikes overwhelm database" → Queue and rate-control consumers.
  • "Too many indexes slow writes" → Review unnecessary indexes.

🪤 TRAPS

  • Read replicas do not improve primary write throughput.
  • More indexes can increase write cost.
  • A cache can become stale.
  • A queue adds eventual consistency and must be monitored.

📝 PRACTICE QUESTION
A DynamoDB table receives millions of writes, but most target one partition key. What should the architect change?
A. Redesign the key or shard writes
B. Add only a read replica
C. Enable CloudFront caching
D. Increase S3 lifecycle retention

Answer: A. Distributing writes avoids a hot partition. A read replica, CDN, or lifecycle rule does not solve the key concentration.

🔁 ONE-LINE RECAP
Scale reads with replicas and caches; scale writes by distributing keys and buffering bursts.


116. Database IOPS, indexes, query plans, and capacity tuning (Domain 3.3)

🧒 LIKE I'M 5
A librarian can fetch books faster with a good index and enough helpers. Database performance needs both efficient queries and enough resources.

📖 EXPLAINED SIMPLY

  • Start by identifying the bottleneck: CPU, memory, storage I/O, locks, connections, or query design.
  • Indexes help a database locate rows without scanning the whole table. They improve selected reads but consume storage and slow some writes.
  • A query plan describes how the database intends to execute a query. Use it to find expensive scans, joins, and sorts.
  • Add indexes for frequent filters and joins. Avoid adding indexes for every column.
  • Keep indexes selective. An index on a column with few distinct values may not help many queries.
  • Provisioned IOPS can help when a database needs predictable high storage operation rates.
  • Increase instance class when CPU or memory is the limiting factor. Increase storage performance when disk latency is the issue.
  • Connection pools reduce connection overhead. RDS Proxy can help applications with frequent connection churn.
  • Use Performance Insights or Database Insights where supported to identify load contributors and wait events.
  • Test changes against realistic data and query volume. A fast test dataset may hide production bottlenecks.

📚 JARGON BOX

  • Index → Data structure helping find rows.
  • Query plan → Steps used by the database to run a query.
  • Full table scan → Read many or all rows to find results.
  • Selectivity → How narrowly an index identifies matching rows.
  • Lock wait → Time waiting for another transaction.
  • Provisioned IOPS → Storage operation performance selected in advance.
  • Connection pool → Reusable database connections.

⚖️ COMPARE WITH LOOKALIKES

SymptomInvestigate
Slow query, low I/OQuery plan and indexes
High disk latencyStorage IOPS and throughput
High CPUInstance class and query efficiency
Connection exhaustionPooling or RDS Proxy
Lock contentionTransaction design and hot rows

🎯 EXAM LENS

  • "Full table scans slow reports" → Query plan and appropriate index.
  • "High I/O wait" → Storage IOPS and latency.
  • "Too many database connections" → Connection pooling or RDS Proxy.
  • "Writes slower after adding indexes" → Reduce unnecessary indexes.

🪤 TRAPS

  • More IOPS does not fix a poor query plan.
  • Indexes are not free.
  • Larger instances do not fix every lock or connection problem.
  • Tune based on measurements, not guesses.

📝 PRACTICE QUESTION
A query scans millions of rows to find a small set by customer ID. The database has spare CPU and I/O capacity. What should the team evaluate?
A. An appropriate index on the filter column
B. A larger NAT gateway
C. S3 Transfer Acceleration
D. Route 53 latency routing

Answer: A. An index can avoid scanning the entire table. The other options do not optimize SQL query access.

🔁 ONE-LINE RECAP
Tune query plans and indexes first, then match instance and storage capacity to measured bottlenecks.


117. Homogeneous database migrations with AWS DMS (Domain 3.3)

🧒 LIKE I'M 5
Moving the same brand of notebooks to a new cupboard is easier than changing the notebook format. A homogeneous migration keeps the database engine the same.

📖 EXPLAINED SIMPLY

  • A homogeneous migration moves data between the same database engine, such as MySQL to MySQL.
  • AWS Database Migration Service (DMS) moves database data with minimal downtime when configured for ongoing replication.
  • A task can perform a full load, change data capture (CDC), or both.
  • Full load copies existing data. CDC captures ongoing changes from the source so the target catches up.
  • During cutover, stop or restrict writes, verify replication lag is near zero, and switch the application to the target.
  • DMS supports many source and target engines. Check engine and version support.
  • Schema changes may still require preparation, even for a homogeneous migration.
  • Use DMS for continuous data movement. For a one-time simple export, native backup/restore may be easier.
  • Test constraints, indexes, triggers, stored procedures, character sets, and application behavior.
  • A migration is not complete until the application is validated against the new database.

📚 JARGON BOX

  • Homogeneous → Same database engine on source and target.
  • DMS → Database Migration Service.
  • Full load → Initial copy of existing data.
  • CDC → Change Data Capture; copies ongoing changes.
  • Cutover → Switch production application to the target.
  • Replication lag → Delay between source and target updates.

⚖️ COMPARE WITH LOOKALIKES

MethodBest use
Native backup/restoreOne-time same-engine move
DMS full loadInitial copy with DMS
DMS full load + CDCKeep target updated during migration
Schema conversionEngine change needing schema adjustments

🎯 EXAM LENS

  • "MySQL to MySQL with minimal downtime" → DMS full load plus CDC.
  • "Keep target synchronized before cutover" → CDC.
  • "Same engine migration" → Homogeneous.
  • "Move once during maintenance window" → Native backup/restore may be simpler.

🪤 TRAPS

  • DMS does not automatically convert every schema object.
  • CDC needs source logging and permissions.
  • Do not cut over while changes remain unreplicated.
  • Test application compatibility after migration.

📝 PRACTICE QUESTION
A company moves MySQL to a newer MySQL environment. It must copy existing data and keep the target current until a short cutover window. What should it use?
A. DMS full load plus CDC
B. AWS Glue only
C. S3 Lifecycle
D. CloudFront

Answer: A. Full load copies existing rows and CDC applies ongoing changes. The others do not provide database replication for this migration.

🔁 ONE-LINE RECAP
Use DMS full load and CDC for same-engine migrations that need a short cutover.


118. Heterogeneous migrations and schema conversion (Domain 3.3)

🧒 LIKE I'M 5
Moving from a notebook to a spreadsheet changes the format as well as the cupboard. A heterogeneous migration moves between different database engines.

📖 EXPLAINED SIMPLY

  • A heterogeneous migration changes database engines, such as Oracle to PostgreSQL.
  • Data types, SQL syntax, indexes, procedures, functions, and transaction behavior may differ.
  • AWS DMS Schema Conversion analyzes and converts supported schema objects to the target engine.
  • It can create an assessment showing which objects convert automatically and which need manual work.
  • Older workflows used the AWS Schema Conversion Tool (SCT). Current DMS Schema Conversion provides schema-conversion features for supported migration paths.
  • After conversion, review unsupported objects and rewrite application SQL where needed.
  • Use DMS to move data and capture ongoing changes when supported.
  • Heterogeneous migrations need more testing than same-engine migrations.
  • Check data types, time zones, character sets, stored procedures, triggers, sequences, and performance plans.
  • Run parallel validation and compare row counts, totals, and application behavior before cutover.
  • Use a migration assessment early to estimate effort and identify manual work.

📚 JARGON BOX

  • Heterogeneous → Different source and target database engines.
  • Schema → Structure of tables, columns, indexes, and database objects.
  • Conversion → Change database structures or SQL to another engine.
  • Assessment report → List of objects and issues needing work.
  • Stored procedure → Program stored inside a database.
  • SCT → Schema Conversion Tool, older name for the conversion workflow.

⚖️ COMPARE WITH LOOKALIKES

MigrationExampleMain need
HomogeneousMySQL to MySQLData movement
HeterogeneousOracle to PostgreSQLSchema and code conversion
DMSData copy and CDCMove data
DMS Schema ConversionSchema transformationPrepare target structures

🎯 EXAM LENS

  • "Oracle to PostgreSQL" → Heterogeneous migration.
  • "Convert schema and database code" → DMS Schema Conversion.
  • "Copy data with ongoing change capture" → DMS.
  • "Find non-convertible database objects" → Migration assessment.

🪤 TRAPS

  • DMS data replication alone does not convert every schema object.
  • Automatic conversion is not perfect.
  • Application SQL may need changes.
  • Validate behavior, not only row counts.

📝 PRACTICE QUESTION
A company moves Oracle to PostgreSQL. It needs to identify incompatible stored procedures and convert the schema. Which tool should it use?
A. AWS DMS Schema Conversion
B. S3 Transfer Acceleration
C. AWS Backup only
D. Route 53

Answer: A. DMS Schema Conversion assesses and converts supported schema objects. DMS can then migrate data. The other services do not convert database schema.

🔁 ONE-LINE RECAP
Use schema conversion for engine changes and DMS for data movement; plan for manual code fixes and validation.


119. Low-downtime database migration and cutover planning (Domain 3.3)

🧒 LIKE I'M 5
A shop moves to a new building while still serving customers. It copies stock first, keeps new arrivals synchronized, then changes the front door at a quiet time.

📖 EXPLAINED SIMPLY

  • A low-downtime migration copies the existing database while the source remains online.
  • First, prepare the target schema and network access. Take a baseline copy using full load or a suitable native method.
  • Next, use CDC or native replication to apply changes made after the baseline copy.
  • Monitor replication lag and data errors. Validate table counts and important business totals.
  • Plan a cutover window. Stop or pause source writes so no new changes are missed.
  • Wait until replication catches up. Verify the target, update application connection settings, and allow traffic to use the new database.
  • Keep the old source available in read-only or rollback-ready state until the target is validated.
  • Define a rollback plan. Avoid letting both source and target accept conflicting writes unless the migration design explicitly supports it.
  • Test DNS, connection pools, credentials, permissions, query performance, jobs, and reporting.
  • Choose a maintenance window based on business risk and recovery requirements.
  • Keep backups before and after cutover. Confirm restore procedures separately.

📚 JARGON BOX

  • Baseline copy → Initial copy of existing data.
  • CDC → Capture and apply ongoing changes.
  • Replication lag → Delay in copied changes.
  • Cutover → Redirect production traffic to the target.
  • Rollback → Return to the previous working system.
  • Read-only → Allows queries but not data changes.

⚖️ COMPARE WITH LOOKALIKES

StrategyDowntimeTypical use
Offline migrationLarger planned outageSmall systems or long window
Full load + CDCShort cutover windowLarge production databases
Dual writeCan be low downtime but complexOnly with careful consistency design
Backup/restoreOutage during copy and restoreSimpler workloads

🎯 EXAM LENS

  • "Minimal downtime while copying data" → Full load plus CDC.
  • "Target catches up before switch" → Wait for replication lag to fall.
  • "Avoid split-brain writes" → Pause source writes during cutover.
  • "Safe rollback" → Keep source intact until validation.

🪤 TRAPS

  • Do not assume replication means zero downtime.
  • Do not cut over while the target is behind.
  • Dual writes can create conflicts.
  • DNS or connection pools may cache old endpoints.

📝 PRACTICE QUESTION
A large production database must move with only a brief maintenance window. Which approach is best?
A. Initial full copy plus ongoing CDC, then controlled cutover
B. Copy files while the database continues changing, with no replication
C. Delete the source before testing the target
D. Use CloudFront

Answer: A. Full load plus CDC keeps the target current before cutover. B can miss changes. C removes rollback. D is a CDN.

🔁 ONE-LINE RECAP
Use baseline copy plus change capture, verify the target, pause writes, and perform a controlled cutover.


120. Choosing a database architecture from access patterns (Domain 3.3)

🧒 LIKE I'M 5
A chef chooses a pressure cooker, fridge, or serving tray depending on the meal. An architect chooses a database and cache based on how the app reads and writes data.

📖 EXPLAINED SIMPLY

  • Start with the data shape: related tables, key-value items, documents, graphs, time-series, or analytics columns.
  • Identify access patterns before choosing the service. List the queries, write rate, consistency needs, and expected data size.
  • Use RDS or Aurora for relational transactions and SQL joins.
  • Use DynamoDB for key-based and predictable access at scale. Design partition keys around queries.
  • Use ElastiCache for frequently reused values that need very fast responses.
  • Use DAX when DynamoDB reads are repeated and eventual consistency is acceptable.
  • Use Redshift or Athena for analytics rather than running heavy reports on a transactional database.
  • Separate write-heavy ingestion from read-heavy reporting when necessary.
  • Use read replicas for read scaling, RDS Proxy for connection management, and cache for repeated values. These solve different problems.
  • Consider consistency, replication lag, data residency, backup needs, and cost.
  • A purpose-built database is not automatically the best answer. The workload requirements decide.

📚 JARGON BOX

  • Access pattern → How an application reads and writes data.
  • OLTP → Online Transaction Processing; frequent business transactions.
  • OLAP → Online Analytical Processing; large analytical queries.
  • Consistency → How current and correct reads are after writes.
  • Workload → The application's pattern of reads, writes, and processing.
  • Purpose-built → Designed for a particular type of data or task.

⚖️ COMPARE WITH LOOKALIKES

RequirementSuitable option
SQL joins and transactionsRDS/Aurora
Key-value at scaleDynamoDB
Repeated low-latency readsElastiCache or DAX
Large analytical scansAthena/Redshift
Relationship traversalNeptune
Time-stamped metricsTime-series database

🎯 EXAM LENS

  • "Complex transactions and joins" → Relational.
  • "Massive predictable key lookups" → DynamoDB.
  • "Repeated hot values" → Cache.
  • "Analyze large historical datasets" → Analytics store.
  • "Graph traversal" → Graph database.

🪤 TRAPS

  • A read replica does not replace a cache.
  • A cache does not replace durable storage.
  • DynamoDB requires access-pattern-aware key design.
  • Do not run analytical scans on a transaction database without considering impact.

📝 PRACTICE QUESTION
An application has relational order transactions and a separate reporting workload that scans years of sales data. Which architecture is best?
A. Keep transactional data in RDS/Aurora and use a separate analytics service for reports
B. Run every report on the primary database at peak hours
C. Store all orders as image files
D. Use only an in-memory cache

Answer: A. Separating OLTP and analytics protects transaction performance. B overloads the primary. C is not a database design. D is not durable storage.

🔁 ONE-LINE RECAP
Choose databases by access patterns, and separate transactions, caching, and analytics when their workloads differ.

✅ Batch 6 — topics 101–120

Batch 6 review sheet

  • Relational transactions and joins → RDS/Aurora.
  • Flexible key-value/document lookups → DynamoDB.
  • Relationship traversal → Graph database.
  • Analytics over large columns → Redshift or Parquet-based analytics.
  • Database engine compatibility → Select RDS engine deliberately.
  • Disk I/O bottleneck → Investigate IOPS and storage latency.
  • Aurora read scaling → Reader endpoint and Aurora Replicas.
  • Variable Aurora compute → Aurora Serverless.
  • Concentrated DynamoDB traffic → Redesign or shard partition keys.
  • Unpredictable DynamoDB request rate → On-demand capacity.
  • Predictable DynamoDB workload → Provisioned capacity with sizing/auto scaling.
  • Microsecond DynamoDB reads → DAX.
  • React to item changes → DynamoDB Streams.
  • Rich cache data structures and replication → Valkey/Redis OSS.
  • Simple multi-threaded object cache → Memcached.
  • Cache on first access → Lazy loading/cache-aside.
  • Update cache with DB write → Write-through.
  • Scale RDS reads → Read replicas.
  • Lambda connection storms → RDS Proxy.
  • Same-engine migration with short cutover → DMS full load + CDC.
  • Different-engine migration → DMS Schema Conversion plus DMS.
  • Low-downtime migration → Baseline copy, CDC, validate, cut over.

5 Extra Mixed Scenario Questions

1. A DynamoDB table has repeated reads for the same items and can accept eventual consistency. It needs microsecond latency. What should it use?
A. DAX
B. RDS Proxy
C. S3 Glacier
D. Route 53

Answer: A. DAX caches DynamoDB reads in memory. RDS Proxy manages relational connections. Glacier and Route 53 are unrelated.

2. A DynamoDB write-heavy workload concentrates traffic on one partition key. What should the architect change?
A. Use higher-cardinality or sharded key values
B. Add an RDS read replica
C. Add a larger NAT gateway
D. Increase S3 lifecycle retention

Answer: A. Distributing keys spreads requests. A read replica does not fix DynamoDB hot partitions.

3. A company is migrating Oracle to PostgreSQL and needs schema conversion. What should it use?
A. DMS Schema Conversion and DMS
B. S3 Transfer Acceleration only
C. CloudFront
D. Storage Gateway

Answer: A. Schema Conversion prepares database objects for the target engine; DMS moves data and can capture changes.

4. A Lambda workload creates too many RDS connections during bursts. The database has enough CPU and storage. What should it add?
A. RDS Proxy
B. Read replica only
C. CloudFront
D. Route 53 weighted routing

Answer: A. RDS Proxy pools connections. Read replicas scale reads, not connection churn to the primary.

5. A reporting app can tolerate slight delay but must not slow the transactional database's writes. What is the best design?
A. Send reporting reads to a read replica
B. Send every report to the writer
C. Put database files in instance store
D. Disable database indexes

Answer: A. A read replica offloads reporting reads. B increases primary load. C is not durable. D generally worsens queries.

3.4 High-performing and scalable networks

Topics to cover, in this order:

  1. IP addressing and CIDR, subnet tiers, routing
  2. ALB vs NLB vs GWLB
  3. CloudFront (origins, caching, OAC)
  4. Global Accelerator vs CloudFront
  5. VPC peering vs Transit Gateway
  6. VPN, Direct Connect, PrivateLink for hybrid networks
  7. Designing global and multi-tier topologies

121. IP addressing, CIDR, and subnet sizing (Domain 3.4)

🧒 LIKE I'M 5
A city needs house numbers and street blocks. IP addresses identify network devices, while CIDR reserves ranges for different parts of the network.

📖 EXPLAINED SIMPLY

  • An IP address identifies a device or network interface.
  • IPv4 uses 32-bit addresses. IPv6 uses 128-bit addresses and provides a much larger address space.
  • CIDR writes a network range as an address and prefix, such as 10.0.0.0/16.
  • A smaller IPv4 prefix number represents a larger address range. A /16 contains more addresses than a /24.
  • A VPC has one or more CIDR blocks. A subnet uses a smaller range inside the VPC.
  • AWS reserves five IPv4 addresses in each subnet. Plan usable addresses before choosing subnet sizes.
  • Avoid overlapping CIDR ranges when networks may connect through peering, Transit Gateway, or VPN.
  • Leave spare address space for future subnets, endpoints, load balancers, and scaling.
  • IPv6 can reduce address exhaustion. It requires dual-stack or IPv6-only design choices and compatible applications.
  • Use small subnets for isolated functions and larger ranges for high-scale fleets. Do not allocate every IP range upfront without a plan.

📚 JARGON BOX

  • IP address → Network address identifying an interface.
  • IPv4 → 32-bit address format.
  • IPv6 → 128-bit address format.
  • CIDR → Notation describing an address range.
  • Prefix length → Number after the slash.
  • Overlapping CIDR → Two network ranges sharing addresses.
  • Address exhaustion → Running out of usable IP addresses.

⚖️ COMPARE WITH LOOKALIKES

Address familySizeMain advantage
IPv432 bitsWidely supported
IPv6128 bitsVery large address space
CIDR /16Larger rangeVPC-level address plan
CIDR /24Smaller rangeSubnet-level allocation

🎯 EXAM LENS

  • "Connect VPCs later" → Plan non-overlapping CIDRs.
  • "Subnet ran out of addresses" → Revisit subnet sizing and address allocation.
  • "Large address space" → IPv6.
  • "One /16 split into AZ subnets" → CIDR subnet planning.

🪤 TRAPS

  • A subnet cannot exceed its VPC CIDR.
  • AWS reserves five IPv4 addresses in each subnet.
  • Overlapping IPv4 ranges complicate or prevent routing.
  • IPv6 does not automatically solve application security or routing.

📝 PRACTICE QUESTION
A company plans to connect three VPCs through a Transit Gateway. What should it do during address planning?
A. Use non-overlapping CIDR ranges
B. Give every VPC the same CIDR
C. Put all workloads in one subnet
D. Disable route tables

Answer: A. Non-overlapping ranges allow normal routing between VPCs. Identical ranges create address ambiguity.

🔁 ONE-LINE RECAP
Plan non-overlapping CIDRs with spare space so VPCs and subnets can grow and connect cleanly.


122. Subnet tiers and resource placement (Domain 3.4)

🧒 LIKE I'M 5
A mall has a public entrance, staff-only corridors, and a locked records room. Network tiers separate public entry from application and data systems.

📖 EXPLAINED SIMPLY

  • A public subnet has a route to an Internet Gateway. Internet-facing resources also need suitable public addressing and security rules.
  • A private subnet has no direct route to the Internet Gateway. It can use NAT for outbound IPv4 access or VPC endpoints for supported services.
  • An isolated subnet has no route to public internet gateways or NAT. Use it for highly restricted workloads when appropriate.
  • Place internet-facing ALBs in public subnets across multiple AZs.
  • Place application servers, ECS tasks, and internal services in private subnets.
  • Place databases in private or isolated subnets. Allow only the application tier's security group to reach database ports.
  • Put NAT gateways in public subnets. Route private subnet outbound traffic to the NAT gateway.
  • Place interface VPC endpoints in selected subnets and protect their network interfaces with security groups.
  • Keep resources close to their callers when latency and data transfer matter. Consider AZ-specific dependencies and costs.
  • Use multiple AZs for availability. A public subnet alone does not make an application highly available.

📚 JARGON BOX

  • Public subnet → Subnet with a route to an Internet Gateway.
  • Private subnet → No direct Internet Gateway route.
  • Isolated subnet → No external internet route.
  • Tier → Group of resources with a defined role.
  • Placement → Choosing the subnet and AZ for a resource.
  • East-west traffic → Traffic moving between internal services.

⚖️ COMPARE WITH LOOKALIKES

TierTypical resourcesExposure
PublicInternet-facing ALB, NAT gatewayControlled internet path
Private applicationEC2, ECS, internal servicesNo direct inbound internet route
Private dataRDS, cacheLimited to approved app traffic
IsolatedHighly restricted systemsNo general internet path

🎯 EXAM LENS

  • "Public users reach a load balancer, not EC2 directly" → Public ALB with private targets.
  • "Database only accepts app traffic" → Private DB subnet plus security group reference.
  • "Private instances need AWS APIs without NAT" → VPC endpoints.
  • "Reduce exposure" → Keep application and data tiers private.

🪤 TRAPS

  • Public IP alone does not make a subnet public.
  • Private subnets can still have outbound paths through NAT.
  • Subnet placement does not replace security groups or NACLs.
  • A single-AZ private tier can still be a failure point.

📝 PRACTICE QUESTION
A public website has application servers and a database. The database must never receive direct internet traffic. Which placement is best?
A. Public ALB; private app subnets; private database subnets
B. All resources in public subnets
C. Database with public IP and open port
D. One public EC2 server only

Answer: A. This design separates public entry, application, and data tiers. The other choices expose internal systems or remove resilience.

🔁 ONE-LINE RECAP
Place only public entry points in public subnets; keep app and database tiers private with narrow traffic rules.


123. Route tables, longest-prefix match, and scalable routing (Domain 3.4)

🧒 LIKE I'M 5
A delivery driver follows the most specific street sign available. Route tables choose where network packets go based on their destination.

📖 EXPLAINED SIMPLY

  • A route table contains destination CIDRs and targets.
  • Every subnet uses one route table. It uses the VPC main table unless associated with another table.
  • The local route allows traffic inside VPC CIDR ranges.
  • Common targets include Internet Gateway, NAT Gateway, Transit Gateway, VPC peering, VPN, and network firewall endpoints.
  • AWS uses longest-prefix match. The most specific destination range wins.
  • A default route such as 0.0.0.0/0 handles IPv4 destinations not covered by a more specific route.
  • Use separate route tables for public, private, isolated, and inspection subnets.
  • Route traffic through a firewall endpoint when inspection is required. Ensure return paths are designed correctly.
  • Use Transit Gateway route tables to separate environments or network domains.
  • Route tables control paths, not permissions. Security groups and NACLs still decide whether traffic is allowed.
  • Document route ownership and avoid broad routes that bypass inspection.

📚 JARGON BOX

  • Destination CIDR → Address range a route matches.
  • Target → Next hop for matching traffic.
  • Local route → Route within the VPC.
  • Default route → Route used when no more specific route matches.
  • Longest-prefix match → Most specific matching route wins.
  • Route propagation → Automatically add routes from a connected gateway.

⚖️ COMPARE WITH LOOKALIKES

ControlMain job
Route tableSelect network path
Security groupAllow traffic at resource interface
NACLAllow/deny traffic at subnet
Network FirewallInspect and filter routed traffic

🎯 EXAM LENS

  • "Most specific route wins" → Longest-prefix match.
  • "Private subnet outbound internet" → Default route to NAT.
  • "Public subnet internet access" → Route to IGW.
  • "Traffic must pass inspection" → Route through firewall endpoint.

🪤 TRAPS

  • A route does not grant permission.
  • Attaching an IGW is not enough without a route and public address.
  • More-specific routes can override broader routes.
  • Asymmetric routing can break stateful firewall inspection.

📝 PRACTICE QUESTION
A VPC has a default route to a NAT gateway and a more-specific route for S3 to a gateway endpoint. Which route is used for S3 traffic?
A. The more-specific S3 endpoint route
B. The default NAT route always
C. The local route only
D. No route can match

Answer: A. Longest-prefix match chooses the more-specific S3 route. The default route handles destinations without a more-specific match.

🔁 ONE-LINE RECAP
Use route tables to direct traffic deliberately; the most specific matching route wins.


124. Load balancer selection: ALB, NLB, and GWLB (Domain 3.4)

🧒 LIKE I'M 5
A traffic controller may route cars by destination, move trains by track, or send every vehicle through an inspection station. AWS has different load balancers for these jobs.

📖 EXPLAINED SIMPLY

  • Application Load Balancer (ALB) operates at Layer 7. It understands HTTP and HTTPS.
  • ALB supports host-based and path-based routing, redirects, authentication integrations, and HTTP health checks.
  • Network Load Balancer (NLB) operates at Layer 4. It handles TCP, UDP, and TLS with high performance and static IP support.
  • NLB suits non-HTTP services, very high connection rates, and clients that need fixed IP addresses.
  • Gateway Load Balancer (GWLB) distributes network traffic through virtual appliances such as firewalls and intrusion-prevention systems.
  • GWLB uses GENEVE encapsulation and supports appliance fleets. The appliance performs the inspection.
  • Choose by protocol, routing needs, static IP requirements, and whether traffic needs inspection.
  • Health checks send traffic only to healthy registered targets.
  • A load balancer does not automatically create more targets. Use Auto Scaling for EC2 or service scaling for containers.

📚 JARGON BOX

  • Layer 7 → Application layer, such as HTTP.
  • Layer 4 → Transport layer, such as TCP or UDP.
  • Layer 3 → Network layer, IP routing.
  • Listener → Port and protocol accepting traffic.
  • Target group → Registered backends.
  • GENEVE → Encapsulation protocol used by GWLB.

⚖️ COMPARE WITH LOOKALIKES

Load balancerLayerBest use
ALB7HTTP/HTTPS and content routing
NLB4TCP/UDP/TLS, static IP, high throughput
GWLB3Route traffic through network appliances

🎯 EXAM LENS

  • "Route by URL path or host" → ALB.
  • "Static IP and TCP/UDP" → NLB.
  • "Transparent firewall appliance fleet" → GWLB.
  • "Scale backend count with traffic" → Load balancer plus Auto Scaling.

🪤 TRAPS

  • NLB does not provide ALB-style path routing.
  • GWLB is not a normal client-facing web load balancer.
  • A load balancer does not replace security groups.
  • Health checks detect unhealthy targets; they do not repair them.

📝 PRACTICE QUESTION
A public API uses TCP and needs static IP addresses in each enabled AZ. Which load balancer should it use?
A. NLB B. ALB C. GWLB D. NAT Gateway

Answer: A. NLB supports Layer 4 traffic and static IPs. ALB focuses on HTTP. GWLB directs traffic through appliances. NAT translates addresses.

🔁 ONE-LINE RECAP
Choose ALB for HTTP logic, NLB for Layer 4 endpoints, and GWLB for appliance inspection.


125. CloudFront architecture: distributions, origins, and edge caching (Domain 3.4)

🧒 LIKE I'M 5
A bakery keeps popular snacks in small shops near customers. CloudFront caches content at edge locations so users do not fetch every file from one distant server.

📖 EXPLAINED SIMPLY

  • Amazon CloudFront is a content delivery network (CDN). It delivers content through a global network of edge locations.
  • A distribution defines how CloudFront receives requests and fetches content.
  • An origin is the source, such as S3, an Application Load Balancer, an API, or a custom web server.
  • On a cache hit, CloudFront serves the object from the edge. On a miss, it requests the object from the origin and may cache it.
  • Cache behavior controls which paths use which origin and caching rules.
  • Use separate behaviors for static assets and dynamic API paths.
  • CloudFront supports HTTPS using certificates from ACM. The viewer certificate for CloudFront must be in us-east-1.
  • Use Origin Access Control (OAC) for a private S3 origin. Keep the bucket private and allow the intended distribution through its bucket policy.
  • CloudFront can reduce origin load, latency, and some data-transfer costs.
  • Dynamic content may have low cacheability. Configure headers, cookies, query strings, and TTL deliberately.
  • Use CloudFront when users are geographically distributed or repeated content can be cached near them.

📚 JARGON BOX

  • CDN → Content Delivery Network.
  • Distribution → CloudFront configuration for delivery.
  • Edge location → Site close to users.
  • Origin → Source of content.
  • Cache hit → Content served from cache.
  • Cache miss → CloudFront must fetch from origin.
  • Cache behavior → Rules for a path pattern.
  • OAC → Origin Access Control.

⚖️ COMPARE WITH LOOKALIKES

OptionMain purpose
CloudFrontCache and deliver content globally
Global AcceleratorImprove network path to endpoints
ALBRoute application requests within a Region
S3 direct accessRetrieve objects without CDN caching

🎯 EXAM LENS

  • "Static images and files served globally" → CloudFront.
  • "Private S3 origin" → CloudFront with OAC.
  • "Cache hit reduces origin requests" → CloudFront edge cache.
  • "CloudFront viewer certificate" → ACM certificate in us-east-1.

🪤 TRAPS

  • CloudFront is not a database.
  • Caching can return stale content until expiry or invalidation.
  • OAC is preferred over the older OAI for new S3-origin designs.
  • CloudFront does not automatically cache every dynamic request.

📝 PRACTICE QUESTION
A company hosts private product images in S3 and serves users worldwide. It wants faster delivery without making the bucket public. What should it use?
A. CloudFront with OAC and a restrictive bucket policy
B. Public S3 ACL
C. A NAT gateway
D. EBS Multi-Attach

Answer: A. CloudFront caches images globally and OAC authorizes access to a private S3 origin. The other choices expose the bucket or solve unrelated problems.

🔁 ONE-LINE RECAP
Use CloudFront to cache content near users and OAC to keep S3 origins private.


126. CloudFront cache policies, TTL, invalidations, and origin shield (Domain 3.4)

🧒 LIKE I'M 5
A shop decides how long a popular price list can stay on the front shelf before checking the main office. CloudFront cache rules decide how long copies remain at the edge.

📖 EXPLAINED SIMPLY

  • A cache policy controls which parts of a request become part of the cache key. These can include query strings, headers, and cookies.
  • Fewer cache-key variations usually increase cache hits. Include only request values that change the response.
  • TTL (Time To Live) controls how long an object can remain cached.
  • The origin can send cache-control headers. CloudFront cache policy sets minimum, default, and maximum TTL behavior.
  • Invalidation removes selected objects from CloudFront caches before their normal TTL expires.
  • For frequently changing assets, version filenames such as app.v2.js. This avoids repeated invalidations and improves cache predictability.
  • Origin Shield adds a centralized caching layer between edge locations and the origin. It can reduce origin load for high-volume distributions.
  • Dynamic requests may need forwarding to the origin. Configure cookies and authorization carefully.
  • Do not cache personalized data across users unless the cache key and authorization model make it safe.
  • Use cache policies to improve hit ratio and protect origins. Use invalidation for urgent content removal.

📚 JARGON BOX

  • Cache key → Request fields that determine which cached object is used.
  • TTL → How long a cached object remains valid.
  • Cache hit ratio → Share of requests served from cache.
  • Invalidation → Remove cached objects before expiry.
  • Origin Shield → Additional central cache layer near the origin.
  • Cache-Control → HTTP header giving caching instructions.

⚖️ COMPARE WITH LOOKALIKES

TechniquePurpose
Long TTLIncrease cache reuse
InvalidationRemove selected cached objects now
Versioned filenamesPublish new assets under new names
Origin ShieldReduce repeated origin fetches

🎯 EXAM LENS

  • "Increase cache hit ratio" → Reduce unnecessary cache-key variations.
  • "Content must disappear immediately" → CloudFront invalidation.
  • "Static files rarely change" → Long TTL and versioned names.
  • "Protect origin from many edge misses" → Origin Shield.

🪤 TRAPS

  • Forwarding every header, cookie, and query string can fragment the cache.
  • Long TTL can leave old content cached.
  • Invalidation has limits and may incur charges beyond included usage.
  • Never share cached personalized responses across users.

📝 PRACTICE QUESTION
A static website publishes a new version of its JavaScript file every release. It wants high cache hit ratio and fewer invalidations. What is best?
A. Use versioned filenames and long TTLs
B. Set TTL to zero for every asset
C. Forward every cookie and header
D. Disable CloudFront caching

Answer: A. Versioned filenames create new cache keys for new content. Long TTL keeps unchanged assets cached. The other options reduce cache reuse.

🔁 ONE-LINE RECAP
Design cache keys carefully, set TTL to match freshness, and use versioned assets or invalidations for updates.


127. Global Accelerator vs CloudFront (Domain 3.4)

🧒 LIKE I'M 5
CloudFront keeps popular files in nearby shops. Global Accelerator directs customers through fast roads to the healthiest application entrance.

📖 EXPLAINED SIMPLY

  • AWS Global Accelerator provides static anycast IP addresses and routes traffic over the AWS global network to healthy regional endpoints.
  • It supports endpoints such as ALBs, NLBs, EC2 instances, and Elastic IP addresses.
  • It helps improve availability and network performance for TCP and UDP applications.
  • Global Accelerator can shift traffic between Regions using endpoint health and traffic dials.
  • CloudFront is a CDN. It caches HTTP content at edge locations and reduces origin requests.
  • CloudFront is best for static and cacheable web content, APIs, and media delivery.
  • Global Accelerator does not cache content. It improves the network path to an application endpoint.
  • Use both when the application needs global content caching and stable, accelerated application entry points.
  • Choose based on whether the requirement is content caching or network routing.

📚 JARGON BOX

  • Anycast IP → Same IP announced from multiple network locations.
  • Endpoint group → Regional set of Global Accelerator endpoints.
  • Traffic dial → Percentage of traffic allowed to a Region.
  • CDN → Content Delivery Network.
  • Edge cache → Copy of content close to a user.

⚖️ COMPARE WITH LOOKALIKES

FeatureGlobal AcceleratorCloudFront
Main jobRoute traffic over AWS networkCache and deliver content
Static IPsYes, anycastUses CloudFront DNS names
ProtocolsTCP and UDPPrimarily HTTP/HTTPS delivery
CachingNoYes
Best fitDynamic apps and global endpointsStatic/dynamic web content and media

🎯 EXAM LENS

  • "Static anycast IPs and fast regional failover" → Global Accelerator.
  • "Cache content near users" → CloudFront.
  • "Improve UDP application connectivity" → Global Accelerator.
  • "Reduce origin load for static website" → CloudFront.

🪤 TRAPS

  • Global Accelerator does not cache files.
  • CloudFront does not provide the same static anycast IP model.
  • Global Accelerator endpoint health does not replace app-level health design.
  • DNS routing and Global Accelerator solve related but different problems.

📝 PRACTICE QUESTION
A global gaming service uses UDP and needs static IP addresses with rapid regional failover. Which service fits?
A. Global Accelerator
B. CloudFront only
C. S3 Transfer Acceleration
D. AWS Glue

Answer: A. Global Accelerator supports TCP/UDP and static anycast IPs. CloudFront is a CDN. Transfer Acceleration speeds S3 transfers. Glue is ETL.

🔁 ONE-LINE RECAP
Choose Global Accelerator for accelerated network paths and static anycast IPs; choose CloudFront for content caching.


128. Route 53 policies for global performance and availability (Domain 3.4)

🧒 LIKE I'M 5
A travel agent sends each customer to the closest or healthiest branch. Route 53 can choose DNS answers based on latency, location, weight, or health.

📖 EXPLAINED SIMPLY

  • Route 53 is DNS. It maps a domain name to an endpoint or resource.
  • Latency-based routing returns the Region expected to give the lowest network latency.
  • Geolocation routing chooses an answer based on the user's geographic location.
  • Geoproximity routing considers the geographic relationship between users and resources. Bias can shift the area served.
  • Weighted routing splits DNS answers by configured weights. Use it for canary releases or traffic migration.
  • Failover routing selects a primary or secondary record using health-check status.
  • DNS responses are cached based on TTL. Failover is not always immediate because resolvers may continue using cached answers.
  • Use latency routing for network responsiveness, geolocation for location-based rules, and failover for backup endpoints.
  • Use Global Accelerator when you need static IPs and fast network-level traffic steering.
  • Monitor health checks and verify every Region can handle its intended traffic.

📚 JARGON BOX

  • Latency routing → Choose endpoint with lower network latency.
  • Geolocation → Route based on user location.
  • Geoproximity → Route by user/resource geography and bias.
  • Weighted routing → Split DNS answers by proportion.
  • Failover → Return a backup endpoint when primary fails.
  • TTL → DNS cache duration.

⚖️ COMPARE WITH LOOKALIKES

PolicyBest use
LatencyImprove network response time
GeolocationCountry or location rules
GeoproximityShift geographic coverage
WeightedCanary traffic split
FailoverPrimary/secondary DNS response

🎯 EXAM LENS

  • "Lowest latency Region" → Latency routing.
  • "Send users in a country to a specific Region" → Geolocation.
  • "Move coverage area with bias" → Geoproximity.
  • "Send 10% to new version" → Weighted.
  • "Primary endpoint unhealthy" → Failover with health checks.

🪤 TRAPS

  • DNS routing is affected by resolver caching.
  • Geolocation is not latency optimization.
  • Weighted routing is not exact per-request load balancing.
  • Health checks must test meaningful endpoints.

📝 PRACTICE QUESTION
A website must send European users to a European endpoint and North American users to a North American endpoint, regardless of which is slightly faster. Which policy fits?
A. Geolocation
B. Latency
C. Weighted
D. Simple

Answer: A. Geolocation makes decisions based on the user's location. Latency chooses the lower-latency endpoint instead.

🔁 ONE-LINE RECAP
Use Route 53 policies according to the routing goal: latency, geography, weight, or health-based failover.


129. Global and multi-Region network topology (Domain 3.4)

🧒 LIKE I'M 5
A delivery company has branches in several cities. Each branch serves nearby customers, and a central system connects the branches. A global AWS topology does the same.

📖 EXPLAINED SIMPLY

  • A global application places workloads in multiple AWS Regions to serve users closer to them or improve regional resilience.
  • Use Route 53 or Global Accelerator to direct users to an appropriate Regional endpoint.
  • Each Region should have a complete enough application stack to meet its role: active, warm standby, or passive recovery.
  • Use CloudFront for cacheable content that can be served near users.
  • Use regional load balancers such as ALB or NLB to distribute traffic inside each Region.
  • Use database replication appropriate to the engine and consistency requirement.
  • Keep network paths private where needed through Transit Gateway, VPN, Direct Connect, or PrivateLink.
  • Plan CIDRs, DNS, certificate deployment, secrets, logs, and monitoring across Regions.
  • Avoid sending every user request across Regions to one database if local processing can meet the requirement.
  • Multi-Region design increases cost and consistency complexity. Use it when latency, availability, or legal needs justify it.

📚 JARGON BOX

  • Global topology → Network design spanning multiple Regions.
  • Regional stack → Application resources deployed in one Region.
  • Active/active → Multiple Regions serve traffic.
  • Warm standby → Smaller live recovery environment.
  • Data replication → Copying data between locations.
  • Regional endpoint → Application entry point in one Region.

⚖️ COMPARE WITH LOOKALIKES

DesignTrafficMain benefit
Single Region, multi-AZOne RegionAZ resilience
Multi-Region active/standbyOne primary RegionRegional DR
Multi-Region active/activeMultiple RegionsLow latency and rapid availability
CloudFront global edgeCached content globallyFast content delivery

🎯 EXAM LENS

  • "Users worldwide need static content quickly" → CloudFront.
  • "Regional failure must not stop the application" → Multi-Region DR.
  • "Both Regions serve live users" → Active/active.
  • "Keep data in each Region with low-latency writes" → Purpose-built multi-Region database design.

🪤 TRAPS

  • Multi-AZ is not multi-Region.
  • DNS failover does not replicate application data.
  • Global network routing does not guarantee database consistency.
  • Every active Region needs enough capacity and quotas.

📝 PRACTICE QUESTION
A global application must remain available after an entire Region outage. Which architecture is the strongest baseline?
A. Deploy recovery capacity and replicated data in a second Region
B. Put all resources in one AZ
C. Use CloudFront without a second origin
D. Add more EBS volumes in the primary AZ

Answer: A. A second Region with suitable capacity and replicated data supports regional recovery. B and D remain in one AZ. C cannot replace a failed origin by itself.

🔁 ONE-LINE RECAP
A global topology combines regional application stacks, routing, edge delivery, and data replication.


130. VPC peering: connectivity, limits, and use cases (Domain 3.4)

🧒 LIKE I'M 5
Two houses build a private road directly between their gates. VPC peering creates a private network connection between two VPCs.

📖 EXPLAINED SIMPLY

  • VPC peering connects two VPCs using private IP addresses.
  • It can connect VPCs in the same or different Regions, including supported cross-account configurations.
  • Update route tables on both sides so traffic uses the peering connection.
  • Security groups and NACLs still control traffic.
  • Peering is one-to-one. It is not transitive. If A peers with B and B peers with C, A cannot automatically reach C through B.
  • VPC CIDR ranges must not overlap for normal peering routes.
  • Peering does not provide a central gateway or automatic route propagation across every connected VPC.
  • Use peering for a small number of VPCs that need direct private communication.
  • For many VPCs and on-premises networks, evaluate Transit Gateway.
  • VPC peering does not share a VPC's internet gateway or NAT gateway as a transitive route.

📚 JARGON BOX

  • Peering → Direct private connection between two VPCs.
  • Non-transitive → Cannot pass traffic through one peer to another peer.
  • Route table → Directs traffic to a next hop.
  • CIDR overlap → Two VPCs use overlapping address ranges.
  • Cross-account → VPCs owned by different AWS accounts.

⚖️ COMPARE WITH LOOKALIKES

FeatureVPC peeringTransit Gateway
TopologyPairwise linksCentral hub
Transitive routingNoYes, through attachments and routes
Scaling many VPCsMany peer linksCentralized
CIDR overlapNot supported for normal peeringOverlap still complicates routing
Best useFew VPCsMany VPCs and hybrid networks

🎯 EXAM LENS

  • "Connect two VPCs directly" → VPC peering.
  • "A cannot route through B to C" → Peering is non-transitive.
  • "Many VPCs need a hub" → Transit Gateway.
  • "Overlapping CIDRs" → Peering is not a fit.

🪤 TRAPS

  • Peering is not transitive.
  • Both VPC route tables need correct routes.
  • Peering does not share gateways automatically.
  • Overlapping CIDRs block ordinary peering connectivity.

📝 PRACTICE QUESTION
VPC A peers with B. VPC B peers with C. The company wants A to communicate with C through B. What should it know?
A. VPC peering is non-transitive
B. Peering automatically routes through B
C. A can use B's NAT gateway by default
D. Route tables are not required

Answer: A. Peering does not provide transitive routing. The other statements are incorrect.

🔁 ONE-LINE RECAP
Use peering for direct VPC pairs; use a hub when many networks need shared connectivity.


131. AWS Transit Gateway and hub-and-spoke networks (Domain 3.4)

🧒 LIKE I'M 5
A city builds one central bus station. Many neighborhoods connect to it instead of building a direct road to every other neighborhood. Transit Gateway is a central network hub.

📖 EXPLAINED SIMPLY

  • AWS Transit Gateway (TGW) connects many VPCs and on-premises networks through one regional hub.
  • Attach VPCs, VPNs, Direct Connect gateways, and supported network connections.
  • Each attachment can be associated with a Transit Gateway route table.
  • Route tables decide which attachments can communicate. Use separate tables to isolate production, development, and shared services.
  • Transit Gateway supports transitive routing through the hub when routes permit it.
  • Use route propagation to learn routes from supported attachments. Static routes can also be added.
  • For on-premises connectivity, attach VPN or Direct Connect gateway through the supported design.
  • Inter-Region peering can connect Transit Gateways in different Regions.
  • TGW simplifies large network topologies but adds attachment, data processing, and hourly costs.
  • Plan CIDRs, route tables, segmentation, and bandwidth before connecting many networks.
  • Use TGW when there are many VPCs, centralized inspection, shared services, or hybrid connectivity needs.

📚 JARGON BOX

  • Transit Gateway → Regional network hub.
  • Attachment → Connection from a VPC or network to the hub.
  • Association → Route table used by an attachment.
  • Propagation → Routes learned from an attachment.
  • Hub-and-spoke → Central hub connects separate networks.
  • Segmentation → Separating traffic domains.

⚖️ COMPARE WITH LOOKALIKES

OptionNetwork shapeBest fit
VPC peeringPairwiseFew VPCs
Transit GatewayCentral hubMany VPCs and hybrid networks
Direct ConnectDedicated physical connectivityOn-premises to AWS
PrivateLinkService-specific private pathShare one service privately

🎯 EXAM LENS

  • "Connect dozens of VPCs and offices" → Transit Gateway.
  • "Centralize routing and segmentation" → TGW route tables.
  • "Transitive network connectivity" → Transit Gateway.
  • "Many accounts need shared network hub" → Shared TGW design.

🪤 TRAPS

  • TGW does not automatically allow every attachment to reach every other attachment.
  • Route-table association and propagation matter.
  • TGW does not replace firewall controls.
  • CIDR planning still matters.

📝 PRACTICE QUESTION
A company has 40 VPCs and several branch offices. It wants centralized routing and network segmentation. Which service fits?
A. Transit Gateway
B. One peering connection between two VPCs
C. S3 gateway endpoint
D. CloudFront

Answer: A. Transit Gateway centralizes routing for many networks. Peering is pairwise. S3 endpoints and CloudFront are not network hubs.

🔁 ONE-LINE RECAP
Transit Gateway is a hub for many VPCs and hybrid networks, with route tables controlling connectivity.


132. VPC peering vs Transit Gateway: architecture choice (Domain 3.4)

🧒 LIKE I'M 5
Two houses can build one direct road. A whole city needs a central station. Pick the connection model based on network count and future growth.

📖 EXPLAINED SIMPLY

  • Use VPC peering when only a few VPCs need direct private communication.
  • Peering is simple and has no central router to manage. But each pair needs its own connection and route setup.
  • Peering is non-transitive. Adding more VPCs creates many relationships.
  • Use Transit Gateway when many VPCs and on-premises networks need a hub.
  • TGW supports transitive routing through attachments and route tables. It supports segmentation between groups.
  • TGW adds attachment and data-processing charges. It can simplify operations as the network grows.
  • VPC peering can be cheaper for a small number of connections. TGW can be operationally simpler for many networks.
  • Neither service automatically solves overlapping CIDR ranges. Plan address space before connecting networks.
  • Use PrivateLink when the consumer needs one service privately rather than full network connectivity.

📚 JARGON BOX

  • Pairwise → One connection for each pair.
  • Hub-and-spoke → Networks connect through a central hub.
  • Transitive → Traffic can pass through an intermediate network.
  • Attachment → Connection to Transit Gateway.
  • Service exposure → Making one specific application available to another network.

⚖️ COMPARE WITH LOOKALIKES

NeedBest choice
Two VPCs direct communicationPeering
Many VPCs and officesTransit Gateway
Share one private servicePrivateLink
Dedicated office-to-AWS pathDirect Connect

🎯 EXAM LENS

  • "Two VPCs, simple direct link" → Peering.
  • "Dozens of VPCs, centralized routing" → TGW.
  • "No full network access, just one service" → PrivateLink.
  • "Many route domains and shared services" → TGW.

🪤 TRAPS

  • Peering cannot route transitively.
  • TGW is not always cheaper for two VPCs.
  • PrivateLink is service-oriented, not general network connectivity.
  • CIDR overlap needs special design regardless of hub choice.

📝 PRACTICE QUESTION
Two VPCs need private connectivity and do not require a hub or transitive routing. The company wants the simplest design. Which should it choose?
A. VPC peering
B. Transit Gateway
C. CloudFront
D. AWS Storage Gateway

Answer: A. Peering directly connects a small pair of VPCs. TGW is more useful for many networks. The other services do not connect VPCs this way.

🔁 ONE-LINE RECAP
Choose peering for a small number of direct links and Transit Gateway for a growing hub-and-spoke network.


133. Hybrid networking: Site-to-Site VPN and Direct Connect performance (Domain 3.4)

🧒 LIKE I'M 5
A company can send trucks over public roads using locked containers, or reserve a dedicated highway. VPN is the encrypted tunnel; Direct Connect is the dedicated link.

📖 EXPLAINED SIMPLY

  • Site-to-Site VPN connects an on-premises network to AWS using IPsec-encrypted tunnels over the internet.
  • It is usually faster to establish than Direct Connect. Performance depends on internet conditions and gateway capacity.
  • Direct Connect provides a dedicated network connection from a data center or colocation facility to AWS.
  • Direct Connect can provide more consistent latency and bandwidth. It is not encrypted by default.
  • Add IPsec VPN over Direct Connect or supported MACsec when encryption is required.
  • Use redundant VPN tunnels and devices. For Direct Connect, use independent connections and locations for stronger resilience.
  • Many designs use Direct Connect as the primary path and VPN as backup.
  • Use VPN for quick setup, smaller bandwidth needs, or backup. Use Direct Connect for predictable high-volume traffic.
  • Check bandwidth, latency, packet loss, redundancy, and encryption requirements.
  • Correct routing and BGP configuration are essential for failover.

📚 JARGON BOX

  • Hybrid network → Network connecting on-premises and cloud environments.
  • IPsec → Protocol suite encrypting IP traffic.
  • Direct Connect → Dedicated network connection to AWS.
  • MACsec → Link-layer encryption where supported.
  • BGP → Protocol exchanging routes between networks.
  • Redundancy → Independent backup paths.

⚖️ COMPARE WITH LOOKALIKES

FeatureSite-to-Site VPNDirect Connect
PathInternetDedicated
EncryptionIPsecNot by default
SetupUsually fasterOften longer
PerformanceInternet-dependentMore consistent
Common roleBackup or quick hybrid linkPrimary high-volume link

🎯 EXAM LENS

  • "Quick encrypted office-to-AWS connection" → VPN.
  • "Dedicated, consistent bandwidth" → Direct Connect.
  • "Encrypt Direct Connect" → IPsec over DX or supported MACsec.
  • "Primary DX plus backup" → VPN backup with routing.

🪤 TRAPS

  • Direct Connect alone does not encrypt traffic.
  • One tunnel or one DX connection can be a failure point.
  • VPN backup needs routing failover.
  • Private connectivity does not automatically grant application permissions.

📝 PRACTICE QUESTION
A company moves large data volumes daily and requires predictable network performance. Which option should it evaluate first?
A. Direct Connect
B. Public internet only
C. S3 presigned URL
D. CloudFront Functions

Answer: A. Direct Connect offers dedicated connectivity. VPN can be a backup or quick option. The other choices do not provide a dedicated hybrid network.

🔁 ONE-LINE RECAP
Use VPN for fast encrypted setup and Direct Connect for dedicated predictable hybrid connectivity.


🧒 LIKE I'M 5
A supplier lets customers use one service counter without opening its whole warehouse. PrivateLink shares a private service endpoint without connecting entire VPCs.

📖 EXPLAINED SIMPLY

  • AWS PrivateLink provides private connectivity to supported services using interface VPC endpoints.
  • A service provider creates an endpoint service, commonly backed by a Network Load Balancer.
  • A consumer creates an interface endpoint in its own VPC. The endpoint has private IP addresses.
  • The provider controls which AWS principals can connect and can require connection acceptance.
  • The consumer reaches the service over AWS networking without public internet access.
  • VPC peering is not required. The consumer does not gain access to the provider's entire VPC.
  • PrivateLink can work when consumer and provider CIDR ranges overlap because it exposes a service rather than routing all network addresses.
  • Security groups on the endpoint and provider-side controls still apply.
  • Use PrivateLink for SaaS services, shared internal APIs, and partner service access.
  • Use peering or Transit Gateway when full network connectivity is required.
  • Interface endpoints incur hourly and data-processing charges.

📚 JARGON BOX

  • PrivateLink → Private service connectivity.
  • Endpoint service → Service exposed by provider.
  • Consumer → Account connecting to the service.
  • Provider → Account exposing the service.
  • Interface endpoint → Private network interface for service access.
  • NLB → Network Load Balancer.

⚖️ COMPARE WITH LOOKALIKES

OptionAccess provided
PrivateLinkOne service privately
VPC peeringDirect VPC network connection
Transit GatewayHub connectivity among networks
Public endpointInternet-accessible service

🎯 EXAM LENS

  • "Share one internal API privately" → PrivateLink.
  • "No VPC peering" → PrivateLink.
  • "Overlapping VPC CIDRs" → PrivateLink may fit for service access.
  • "Connect all subnets of many VPCs" → Transit Gateway.

🪤 TRAPS

  • PrivateLink is not full VPC-to-VPC routing.
  • Interface endpoints need security group and DNS configuration.
  • The provider still secures the application.
  • PrivateLink has service charges.

📝 PRACTICE QUESTION
A SaaS provider must expose one private API to customer VPCs. Customer CIDRs may overlap. Which service is best?
A. PrivateLink endpoint service
B. Full-mesh VPC peering
C. Public S3 bucket
D. NAT gateway

Answer: A. PrivateLink provides service-specific access without full network peering and can avoid overlapping-CIDR routing problems.

🔁 ONE-LINE RECAP
Use PrivateLink to share one service privately without exposing or routing entire VPC networks.


135. Network appliances and inspection paths with GWLB (Domain 3.4)

🧒 LIKE I'M 5
A shopping mall sends bags through one security scanner before they enter. GWLB steers network traffic through virtual security appliances.

📖 EXPLAINED SIMPLY

  • Gateway Load Balancer (GWLB) helps deploy and scale virtual appliances such as firewalls and intrusion detection systems.
  • It operates at the network layer and uses GENEVE encapsulation to send traffic to appliance targets.
  • A GWLB endpoint can provide a path from consumer VPCs to a shared appliance service.
  • The appliance inspects traffic and returns it through the designed path.
  • Use route tables to steer traffic through the endpoint. If routes bypass the appliance, inspection is skipped.
  • Plan symmetric routing so stateful appliances see both directions of a flow.
  • GWLB supports a fleet of appliances and distributes traffic among healthy targets.
  • Use Network Firewall for managed AWS firewall rules when a separate appliance fleet is not required.
  • Use GWLB when third-party or specialized virtual appliances are required.

📚 JARGON BOX

  • Appliance → Specialized networking or security software.
  • GENEVE → Encapsulation protocol used by GWLB.
  • Endpoint → Private network entry to a service.
  • Symmetric routing → Forward and return traffic follow compatible paths.
  • Inspection → Examine network traffic for threats or policy violations.

⚖️ COMPARE WITH LOOKALIKES

OptionPurpose
GWLBDistribute traffic through virtual appliances
AWS Network FirewallManaged VPC traffic inspection
WAFInspect HTTP requests
Security groupAllow traffic to a resource

🎯 EXAM LENS

  • "Third-party virtual firewall fleet" → GWLB.
  • "Transparent appliance scaling" → GWLB.
  • "Managed AWS stateful/stateless network rules" → Network Firewall.
  • "SQL injection and HTTP request filtering" → WAF.

🪤 TRAPS

  • GWLB does not inspect traffic without appliances.
  • Route tables must direct traffic to the endpoint.
  • Asymmetric routes can break stateful inspection.
  • WAF is not a general packet firewall.

📝 PRACTICE QUESTION
A company must scale a fleet of third-party network firewalls and route traffic through them transparently. Which service fits?
A. GWLB
B. ALB
C. CloudFront
D. S3

Answer: A. GWLB steers traffic through appliance fleets. ALB routes HTTP. CloudFront caches content. S3 stores objects.

🔁 ONE-LINE RECAP
Use GWLB to scale virtual network appliances and route traffic through their inspection path.


136. IPv6 connectivity and egress-only internet gateways (Domain 3.4)

🧒 LIKE I'M 5
IPv6 gives a city many more house numbers. An egress-only gateway lets residents send letters out but does not let strangers start conversations from outside.

📖 EXPLAINED SIMPLY

  • IPv6 uses 128-bit addresses. It provides a much larger address space than IPv4.
  • A VPC can support IPv4, IPv6, or dual-stack networking depending on resource and service support.
  • IPv6 addresses are globally unique and can be publicly routable. Security groups and NACLs remain important.
  • An Internet Gateway supports internet connectivity for IPv6 resources when routes and security controls allow it.
  • An Egress-Only Internet Gateway allows outbound IPv6 connections while preventing the internet from initiating inbound connections through that gateway.
  • NAT Gateway is mainly used for IPv4 address translation. It is not the standard outbound-only IPv6 solution.
  • Dual-stack applications use both IPv4 and IPv6. Verify DNS records, listeners, security groups, and dependencies.
  • IPv6 reduces address pressure but does not automatically make a subnet safe or private.
  • Use egress-only IGW for outbound-only IPv6 workloads. Use IGW for general IPv6 internet connectivity when inbound access is intended and protected.

📚 JARGON BOX

  • IPv6 → 128-bit address format.
  • Dual stack → Use IPv4 and IPv6 together.
  • Egress → Outbound traffic.
  • Ingress → Inbound traffic.
  • Egress-only IGW → Outbound-only IPv6 internet gateway.
  • AAAA record → DNS record for IPv6.

⚖️ COMPARE WITH LOOKALIKES

ComponentAddress familyMain use
NAT GatewayIPv4Private IPv4 outbound access
Internet GatewayIPv4 and IPv6Internet routing
Egress-only IGWIPv6Outbound-only internet access
VPC endpointPrivate service pathAWS service access without public internet

🎯 EXAM LENS

  • "Outbound-only IPv6 connectivity" → Egress-only Internet Gateway.
  • "Public IPv6 service" → IGW plus routes and security rules.
  • "Private S3 access" → VPC endpoint, not an egress-only gateway.
  • "IPv6 DNS record" → AAAA.

🪤 TRAPS

  • NAT Gateway is not the normal IPv6 egress-only feature.
  • IPv6 addresses may be publicly routable.
  • Security groups still control traffic.
  • An IPv6 address alone does not create a working route.

📝 PRACTICE QUESTION
Private IPv6 instances need outbound internet access for updates but must not accept internet-initiated connections. What should they use?
A. Egress-only Internet Gateway
B. Public IPv4 address
C. S3 gateway endpoint
D. VPC peering

Answer: A. An egress-only IGW provides outbound-only IPv6 internet access. The other choices do not provide that behavior.

🔁 ONE-LINE RECAP
Use an egress-only Internet Gateway for outbound-only IPv6 access and keep security rules in place.


137. DNS, Route 53, and endpoint discovery in global applications (Domain 3.4)

🧒 LIKE I'M 5
A contact list helps people find the correct office. DNS helps applications find the correct endpoint as services move or grow.

📖 EXPLAINED SIMPLY

  • DNS maps names to endpoints. Applications should use stable names rather than hard-coded IP addresses.
  • Route 53 public hosted zones resolve public application names. Private hosted zones resolve internal names in associated VPCs.
  • Alias records can point domain names to supported AWS resources such as ALBs and CloudFront.
  • Use health checks and failover records when DNS must direct users away from an unhealthy endpoint.
  • Use latency-based routing when users should reach a Region with lower network latency.
  • Use weighted routing for canary releases and staged traffic shifts.
  • Use private DNS for interface endpoints so applications can use normal service hostnames.
  • DNS answers are cached by resolvers according to TTL. Updates and failover may take time to reach all clients.
  • DNS is not a replacement for load balancing inside a Region. A regional ALB still distributes requests among healthy targets.
  • For fast global failover and static anycast IPs, compare Global Accelerator.

📚 JARGON BOX

  • DNS → System mapping names to endpoints.
  • Hosted zone → DNS records for a domain.
  • Private DNS → Internal DNS resolution within selected networks.
  • Alias → Route 53 pointer to supported AWS resources.
  • TTL → How long a resolver caches a DNS answer.
  • Endpoint discovery → Finding the correct service address.

⚖️ COMPARE WITH LOOKALIKES

FeatureRoute 53ALBGlobal Accelerator
Main scopeDNS answerRegional request routingGlobal network entry
Health-based selectionDNS health checksTarget health checksEndpoint health
CachingDNS TTLNo DNS-style cachingNo content cache

🎯 EXAM LENS

  • "Stable DNS name for changing endpoints" → Route 53.
  • "Internal AWS service name resolves privately" → Private DNS.
  • "Distribute HTTP requests in one Region" → ALB.
  • "Static IPs and fast failover across Regions" → Global Accelerator.

🪤 TRAPS

  • DNS failover is affected by TTL and client caching.
  • DNS does not replace regional health checks.
  • Alias records differ from ordinary CNAME records.
  • Private DNS requires correct VPC endpoint setup.

📝 PRACTICE QUESTION
A company wants applications in private subnets to reach Secrets Manager using its normal DNS hostname without public internet routing. Which feature should it configure?
A. Interface VPC endpoint with private DNS
B. Public hosted zone only
C. CloudFront invalidation
D. NAT instance

Answer: A. An interface endpoint and private DNS resolve the service name to private addresses. The other choices do not create private service connectivity.

🔁 ONE-LINE RECAP
Use Route 53 for endpoint naming and global DNS decisions, private DNS for service endpoints, and ALB for regional traffic.


138. Multi-AZ network design and failure-domain separation (Domain 3.4)

🧒 LIKE I'M 5
A city has bridges in several locations. If one bridge closes, people can use another route. Multi-AZ network design avoids relying on one location or device.

📖 EXPLAINED SIMPLY

  • Place critical load balancers and application targets in multiple Availability Zones.
  • Use one NAT Gateway per AZ when independent outbound paths are required. Route each private subnet to its local NAT Gateway.
  • Use redundant VPN tunnels and redundant Direct Connect connectivity for hybrid paths.
  • Deploy VPC endpoints in the AZs where clients need them, when the endpoint service design supports it.
  • Spread application tasks or EC2 instances across AZs using Auto Scaling and load balancer target groups.
  • Avoid dependencies on one NAT instance, one VPN appliance, or one network firewall endpoint.
  • Health checks must detect meaningful failure and routing must move traffic to healthy paths.
  • Multi-AZ design protects from an AZ-level failure. It does not protect against an entire Region outage.
  • Check cross-AZ data transfer charges when traffic crosses AZ boundaries.
  • Use multi-Region routing when regional disaster recovery is required.

📚 JARGON BOX

  • Failure domain → Area affected by one failure.
  • Multi-AZ → Resources spread across Availability Zones.
  • Redundant path → Alternate connection available after failure.
  • Cross-AZ traffic → Traffic moving between AZs.
  • Failover → Move traffic to a healthy alternative.

⚖️ COMPARE WITH LOOKALIKES

DesignProtects against
Multiple subnets in one AZSubnet-level issues, not AZ failure
Multi-AZAZ failure
Multi-RegionRegional failure
Backup onlyData loss, not immediate network availability

🎯 EXAM LENS

  • "One AZ must fail without losing service" → Multi-AZ load balancer and targets.
  • "Private subnets need resilient outbound access" → NAT per AZ.
  • "Hybrid network must survive a tunnel failure" → Redundant VPN/DX paths.
  • "Whole Region outage" → Multi-Region DR.

🪤 TRAPS

  • Two subnets in one AZ are not multi-AZ.
  • One NAT gateway can be a cross-AZ failure dependency.
  • Multi-AZ does not equal multi-Region.
  • Redundant endpoints still need route and health-check configuration.

📝 PRACTICE QUESTION
A private application spans two AZs. Each AZ must retain outbound internet access if the other AZ fails. What should it deploy?
A. NAT Gateway in each AZ with local private routes
B. One NAT Gateway in one AZ for both subnets
C. One public IP on the database
D. One subnet for the entire VPC

Answer: A. Per-AZ NAT gateways remove the other AZ as an outbound dependency. B depends on one AZ. C exposes the database. D is not valid subnet design.

🔁 ONE-LINE RECAP
Spread network entry points and outbound paths across AZs to remove single failure dependencies.


139. Hybrid and multi-tier network topology patterns (Domain 3.4)

🧒 LIKE I'M 5
A city separates roads for houses, factories, and emergency vehicles. A network topology separates public, application, database, shared, and on-premises traffic.

📖 EXPLAINED SIMPLY

  • A multi-tier VPC separates public entry, private application services, and private database resources.
  • A hub-and-spoke network connects many VPCs through a Transit Gateway or shared networking account.
  • A hybrid network connects AWS VPCs with on-premises networks using VPN or Direct Connect.
  • Shared services such as DNS, inspection appliances, and directory services can live in a shared-services VPC.
  • Use separate TGW route tables to isolate production, development, and partner traffic.
  • Centralized inspection can route selected traffic through Network Firewall or a GWLB appliance fleet.
  • Use VPC endpoints for private access to supported AWS services without sending traffic through public internet or NAT.
  • Keep route domains and CIDRs documented. Avoid accidental transitive access between environments.
  • Use PrivateLink when a consumer only needs one service from another VPC.
  • Design for the smallest required connectivity. Full network access is not always necessary.

📚 JARGON BOX

  • Topology → Overall shape of a network.
  • Hub-and-spoke → Many networks connect through one hub.
  • Shared-services VPC → VPC hosting common internal services.
  • Route domain → Set of networks with defined routing visibility.
  • Centralized inspection → Route traffic through shared security controls.
  • Segmentation → Separate network areas for isolation.

⚖️ COMPARE WITH LOOKALIKES

PatternMain use
Multi-tier VPCSeparate web, app, and database
Hub-and-spokeConnect many VPCs centrally
HybridConnect cloud and on-premises
Shared servicesCentralize DNS, directory, inspection
PrivateLinkShare one service only

🎯 EXAM LENS

  • "Many VPCs and on-premises sites" → Transit Gateway hub.
  • "Shared DNS and inspection" → Shared-services VPC.
  • "Only one partner API needed" → PrivateLink.
  • "Public ALB with isolated database" → Multi-tier VPC.

🪤 TRAPS

  • Do not use full-mesh peering for every large network.
  • Centralization can create a bottleneck or single failure point if not redundant.
  • Shared route tables can accidentally expose environments.
  • PrivateLink is service access, not broad VPC routing.

📝 PRACTICE QUESTION
A company has production and development VPCs plus an on-premises data center. It needs central DNS and inspection services but must isolate production traffic. Which design is strongest?
A. Transit Gateway with separate route tables and a shared-services VPC
B. One shared public subnet
C. Full-mesh public IP routing
D. One S3 bucket

Answer: A. TGW centralizes connectivity while route tables segment traffic. A shared-services VPC hosts common services. The others do not provide a secure network architecture.

🔁 ONE-LINE RECAP
Use multi-tier, hub-and-spoke, and hybrid patterns to connect only the networks and services that must communicate.


140. Scaling network architectures and avoiding IP/connection bottlenecks (Domain 3.4)

🧒 LIKE I'M 5
A growing city needs more roads, parking spaces, and bridges before traffic increases. Network architecture must plan address space, routes, connections, and bandwidth ahead of growth.

📖 EXPLAINED SIMPLY

  • Scale network design across IP addresses, route tables, gateways, load balancers, and bandwidth.
  • Use larger planned CIDR ranges or secondary CIDRs when future subnets and resources may need addresses.
  • Watch subnet free IP metrics and service quotas before scaling large fleets.
  • Use Transit Gateway when the number of network connections grows beyond simple peering.
  • Use VPC endpoints to avoid routing supported AWS service traffic through NAT gateways.
  • Use CloudFront for cached content and Global Accelerator for global network entry.
  • Use multiple VPN tunnels or higher-bandwidth Direct Connect paths when hybrid traffic grows.
  • Use load balancers to distribute connections across healthy targets. Scale target capacity separately.
  • Design route tables and firewall rules so adding an AZ or Region does not require risky manual rewrites.
  • Monitor latency, packet loss, connection counts, rejected traffic, and endpoint health.
  • Add capacity before demand reaches hard service limits. Check quotas in every Region.
  • Avoid routing every workload through one NAT, VPN, or inspection endpoint without resilience planning.

📚 JARGON BOX

  • Network bottleneck → Component limiting traffic flow.
  • Bandwidth → Maximum data transfer rate.
  • Packet loss → Network packets that do not reach destination.
  • Connection count → Number of active network sessions.
  • Secondary CIDR → Additional address range for a VPC.
  • Quota headroom → Spare allowance before reaching a service limit.

⚖️ COMPARE WITH LOOKALIKES

SymptomScale or redesign
Subnet runs out of IPsCIDR planning and subnet expansion
Too many VPC connectionsTransit Gateway
NAT data processing is highVPC endpoints or route redesign
Slow global usersCloudFront or Global Accelerator
Hybrid link saturatedMore bandwidth or redundant paths

🎯 EXAM LENS

  • "Many VPCs are hard to connect" → Transit Gateway.
  • "Private AWS service traffic uses NAT" → VPC endpoints.
  • "Global users have slow static content" → CloudFront.
  • "Direct Connect bandwidth is exhausted" → Increase link capacity or use additional paths.
  • "Subnet IP shortage" → Expand address planning, not instance size.

🪤 TRAPS

  • More EC2 instances may worsen IP exhaustion.
  • A larger NAT gateway does not solve every route or endpoint design issue.
  • TGW adds costs; choose based on network growth and operational needs.
  • Bandwidth and latency are different metrics.

📝 PRACTICE QUESTION
A VPC fleet is growing and repeatedly runs out of subnet IP addresses. CPU and database performance are healthy. What should the architect address?
A. CIDR and subnet capacity planning
B. Increase EC2 memory
C. Add a DynamoDB read replica
D. Change S3 storage class

Answer: A. The bottleneck is IP address capacity. Compute, database, and storage changes do not add subnet addresses.

🔁 ONE-LINE RECAP
Scale networks by planning IP space, routes, gateways, bandwidth, and service quotas before demand reaches limits.

✅ Batch 7 — topics 121–140

Batch 7 review sheet

  • Non-overlapping network address planning → CIDR.
  • Web, app, and database isolation → Separate subnet tiers and security groups.
  • Most specific route wins → Longest-prefix match.
  • HTTP path and host routing → ALB.
  • Static IP and TCP/UDP → NLB.
  • Virtual firewall appliance fleet → GWLB.
  • Global content caching → CloudFront.
  • Reduce origin fetches → Cache policy, TTL, Origin Shield.
  • Static anycast IPs and TCP/UDP regional failover → Global Accelerator.
  • Country-based DNS routing → Geolocation.
  • Lower-latency DNS endpoint → Latency routing.
  • Direct private connection between two VPCs → Peering.
  • Many VPCs and on-premises sites → Transit Gateway.
  • Share one private service → PrivateLink.
  • Outbound-only IPv6 → Egress-only IGW.
  • Central DNS for private subnets → Private hosted zone / private DNS endpoint.
  • Resilient outbound path per AZ → NAT gateway per AZ.
  • Dedicated hybrid link → Direct Connect.
  • Quick encrypted hybrid connectivity → Site-to-Site VPN.
  • Scale network connections → Transit Gateway, CIDR planning, and endpoint strategy.

5 Extra Mixed Scenario Questions

1. A company needs to deliver images globally, cache them near viewers, and keep the S3 origin private. What should it use?
A. CloudFront with OAC
B. Global Accelerator only
C. VPC peering
D. NAT Gateway

Answer: A. CloudFront caches content at edge locations and OAC secures a private S3 origin. Global Accelerator routes traffic but does not cache content.

2. A company has 60 VPCs and several on-premises offices. It needs centralized routing and segmentation. What should it use?
A. Transit Gateway
B. One VPC peering connection
C. S3 gateway endpoint
D. CloudFront Functions

Answer: A. Transit Gateway provides hub-and-spoke routing. Peering is pairwise and non-transitive. S3 endpoint and CloudFront Functions solve unrelated tasks.

3. A partner needs private access to one API hosted in a provider VPC. The two VPCs have overlapping CIDR ranges. What is the best fit?
A. PrivateLink
B. Full VPC peering
C. Public S3 bucket
D. NAT Gateway

Answer: A. PrivateLink shares a specific service without full VPC routing and can work when CIDRs overlap.

4. An application needs outbound-only IPv6 internet connectivity. Which component should it use?
A. Egress-only Internet Gateway
B. NAT Gateway
C. S3 gateway endpoint
D. VPC peering

Answer: A. Egress-only IGW supports outbound-only IPv6. NAT Gateway is mainly for IPv4 translation.

5. A VPC subnet must accept internet-facing HTTPS traffic, but application instances and databases must remain private. Which design is best?
A. Public ALB across AZs; private application and database subnets
B. All resources in one public subnet
C. Private database with public IP
D. One EC2 instance with all ports open

Answer: A. The ALB is the public entry point. App and database tiers remain private with scoped security groups.

3.5 High-performing data ingestion and transformation

Topics to cover, in this order:

  1. Batch vs streaming ingestion
  2. Kinesis Data Streams vs Amazon Data Firehose vs MSK
  3. Transfer: DataSync, Storage Gateway, Snow Family, Transfer Family
  4. Glue (ETL, crawlers, Data Catalog, CSV → Parquet)
  5. Data lakes with S3 + Lake Formation (and securing them)
  6. Athena, Redshift, EMR, OpenSearch
  7. Visualization with Amazon Amazon Quick (formerly QuickSight)

141. Batch vs streaming data ingestion (Domain 3.5)

🧒 LIKE I'M 5
A shop can deliver one large truck of goods at night or send small deliveries all day. Batch ingestion collects data in groups; streaming handles data as it arrives.

📖 EXPLAINED SIMPLY

  • Batch ingestion collects data for a period, then processes it together.
  • It suits nightly reports, monthly billing, historical imports, and large file processing.
  • Streaming ingestion processes events continuously or near real time.
  • It suits clickstreams, IoT telemetry, fraud signals, live dashboards, and event-driven apps.
  • Micro-batching groups small events over short intervals. It balances throughput and latency.
  • Batch jobs often optimize for throughput and cost. Streaming systems optimize for low latency and continuous operation.
  • Select a pattern from business freshness needs. A daily report may not need a real-time stream.
  • Streaming needs checkpointing, ordering decisions, retry handling, duplicate handling, and monitoring.
  • Batch workflows need schedules, file completeness checks, retry rules, and idempotent output.
  • Use S3 for durable landing storage. Process from the landing area so failures can be replayed.
  • Do not choose streaming just because data arrives frequently. Choose it when the business needs fast action.

📚 JARGON BOX

  • Batch → Process a group of records together.
  • Streaming → Process events continuously as they arrive.
  • Micro-batch → Small batches processed frequently.
  • Latency → Time between data arrival and result.
  • Throughput → Amount of data processed over time.
  • Checkpoint → Saved progress used to resume processing.
  • Idempotent → Safe to process the same input again.

⚖️ COMPARE WITH LOOKALIKES

PatternLatencyTypical use
BatchMinutes to hoursBilling, scheduled reports
Micro-batchSeconds to minutesFrequent grouped updates
StreamingNear real timeFraud, telemetry, live events

🎯 EXAM LENS

  • "Nightly processing of uploaded files" → Batch.
  • "React to clicks as they happen" → Streaming.
  • "Small groups every few seconds" → Micro-batch.
  • "Need replay after processing failure" → Durable landing data and checkpoints.

🪤 TRAPS

  • Batch is not automatically slower for every workload.
  • Streaming needs operational handling for duplicates and late events.
  • High event volume does not prove real-time processing is required.
  • A data lake landing area helps replay failed transformations.

📝 PRACTICE QUESTION
A retailer analyzes sales once each night after stores close. The data can be several hours old. Which ingestion pattern is most cost-effective?
A. Batch ingestion
B. Always-on low-latency streaming
C. WebSocket connections
D. Global Accelerator

Answer: A. Nightly analysis does not require continuous processing. Streaming adds unnecessary operational work and cost.

🔁 ONE-LINE RECAP
Use batch for grouped workloads, streaming for fast reactions, and micro-batches when short delays are acceptable.


142. Amazon Kinesis Data Streams: stream, shards, retention (Domain 3.5)

🧒 LIKE I'M 5
A railway has several tracks. Each track carries a sequence of parcels. Kinesis Data Streams stores ordered event records across shards so consumers can process them.

📖 EXPLAINED SIMPLY

  • Amazon Kinesis Data Streams (KDS) ingests real-time streaming data from many producers.
  • A stream contains records. A record has a partition key, data blob, and sequence number.
  • A shard is a unit of stream capacity. Provisioned mode lets you choose shard count. On-demand mode manages capacity for you.
  • The partition key helps Kinesis route records to shards. Records with the same partition key go to the same shard and keep order within that shard.
  • Consumers read records and process them. Multiple consumers can read the stream independently.
  • Retention is configurable from 24 hours up to 365 days. Longer retention increases storage cost.
  • Enhanced fan-out gives registered consumers dedicated read throughput.
  • Use Kinesis Data Streams when multiple applications need to process the same event stream or when replay and ordering matter.
  • Design partition keys to distribute traffic evenly. One hot partition key can overload one shard.
  • Checkpoint consumer progress so processing can resume after failure.
  • Use Data Firehose when you mainly need managed delivery to a destination and do not need custom stream consumers.

📚 JARGON BOX

  • Stream → Continuous sequence of event records.
  • Shard → Capacity unit inside a stream.
  • Partition key → Value used to route a record to a shard.
  • Sequence number → Identifier showing record order within a shard.
  • Consumer → Application reading stream records.
  • Enhanced fan-out → Dedicated read throughput for a registered consumer.
  • Checkpoint → Saved position in the stream.

⚖️ COMPARE WITH LOOKALIKES

ServiceMain role
Kinesis Data StreamsCustom real-time stream processing
Amazon Data FirehoseManaged delivery to destinations
Amazon MSKManaged Apache Kafka
SQSWork queue for decoupled tasks

🎯 EXAM LENS

  • "Multiple consumers process same real-time stream" → Kinesis Data Streams.
  • "Order by partition key" → Records in the same shard.
  • "Replay retained records" → Kinesis Data Streams retention.
  • "No custom consumer; deliver to S3" → Data Firehose.

🪤 TRAPS

  • Shards determine capacity in provisioned mode.
  • One hot partition key can create a hot shard.
  • Stream ordering is not global across all shards.
  • Firehose and Data Streams have different roles.

📝 PRACTICE QUESTION
A company wants several independent applications to read the same real-time event stream and process records at different speeds. Which service fits?
A. Kinesis Data Streams
B. S3 Glacier
C. AWS Backup
D. Route 53

Answer: A. Kinesis Data Streams supports multiple independent consumers and retained stream records. The other services do not provide this streaming model.

🔁 ONE-LINE RECAP
Use Kinesis Data Streams for retained real-time events, multiple consumers, and partition-key ordering.


143. Kinesis producers, consumers, ordering, and scaling (Domain 3.5)

🧒 LIKE I'M 5
A factory sends packages onto tracks, and different teams read them. Producers write records; consumers read and checkpoint their progress.

📖 EXPLAINED SIMPLY

  • A producer sends records to a Kinesis stream using an SDK, agent, or supported integration.
  • A consumer reads records and runs application logic.
  • A partition key determines which shard receives a record. Use a key that spreads traffic but groups events that need ordering.
  • Records with the same partition key go to the same shard. This supports per-key ordering.
  • If one partition key dominates traffic, it can cause a hot shard. Add key diversity or shard the key when strict grouping is not required.
  • Consumers checkpoint their last processed position. This helps restart after a failure.
  • Enhanced fan-out gives each registered consumer dedicated read throughput through a push-based HTTP/2 connection.
  • Standard consumers share shard read throughput and commonly use polling APIs.
  • Kinesis supports resharding in provisioned mode. Add or merge shards as capacity needs change.
  • Idempotent consumers prevent duplicate output if a record is processed again after a restart.
  • Monitor write throttles, read throttles, iterator age, and consumer lag.
  • Use Lambda event source mappings for managed consumption when application needs fit Lambda's batch model.

📚 JARGON BOX

  • Producer → Application sending records.
  • Consumer → Application reading records.
  • Iterator age → How far a consumer is behind the stream.
  • Resharding → Increase or reduce shard count.
  • Hot shard → Shard receiving too much traffic.
  • Enhanced fan-out → Dedicated read throughput.
  • Idempotency → Reprocessing does not duplicate effects.

⚖️ COMPARE WITH LOOKALIKES

Consumer approachStrengthTrade-off
Shared-throughput pollingSimple, shared read capacityConsumers compete for shard reads
Enhanced fan-outDedicated consumer throughputAdditional cost and setup
Lambda event source mappingManaged invocation and batchingLambda limits and retry behavior

🎯 EXAM LENS

  • "Many consumers need dedicated read throughput" → Enhanced fan-out.
  • "Order events for one customer" → Customer ID as partition key.
  • "Consumer falling behind" → Monitor iterator age and increase processing capacity.
  • "Duplicate processing after restart" → Idempotent consumer.

🪤 TRAPS

  • Ordering is within a shard, not across the entire stream.
  • Bad partition keys create hot shards.
  • Checkpointing does not by itself guarantee exactly-once business effects.
  • Consumer scaling must match shard and service throughput.

📝 PRACTICE QUESTION
An application has multiple consumers. One consumer must not compete for read throughput with the others. What should it use?
A. Enhanced fan-out
B. One S3 bucket per event
C. A larger NAT gateway
D. S3 Lifecycle

Answer: A. Enhanced fan-out provides dedicated read throughput for registered consumers. The other choices do not change Kinesis read capacity.

🔁 ONE-LINE RECAP
Design partition keys for order and distribution, then scale producers and consumers using shard and lag metrics.


144. Amazon Data Firehose for managed delivery (Domain 3.5)

🧒 LIKE I'M 5
A courier collects many small parcels and delivers them in larger batches to a warehouse. Data Firehose buffers streaming records and delivers them to destinations.

📖 EXPLAINED SIMPLY

  • Amazon Data Firehose is a managed service for delivering streaming data to supported destinations.
  • It can deliver data to destinations such as S3, Redshift, OpenSearch Service, and supported third-party endpoints.
  • Producers send records to a delivery stream. Firehose buffers records by size or time before delivery.
  • It can transform records using Lambda and convert supported formats such as JSON to Parquet or ORC when configured with a schema.
  • It supports compression, encryption, backup to S3, and error handling options.
  • Firehose automatically manages delivery scaling. You do not manage shards like Kinesis Data Streams.
  • Delivery is near real time, not a strict zero-latency stream. Buffer size and interval affect delivery delay.
  • Use Firehose when the main requirement is managed delivery to a destination.
  • Use Kinesis Data Streams when you need custom consumers, shard-level control, or independent replay.
  • Monitor delivery errors, destination limits, and backup location.

📚 JARGON BOX

  • Delivery stream → Firehose configuration delivering records.
  • Buffering → Hold records until size or time threshold.
  • Transformation → Change data format or content.
  • Parquet → Columnar data format for analytics.
  • ORC → Optimized Row Columnar format.
  • Delivery error → Record that could not reach its destination.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
Data FirehoseManaged stream delivery to destinations
Kinesis Data StreamsCustom consumers and retained events
MSKKafka-compatible streaming platform
SQSDecoupled work queue

🎯 EXAM LENS

  • "Deliver streaming data to S3 with minimal administration" → Data Firehose.
  • "Transform records before delivery" → Firehose transformation.
  • "Custom real-time consumers and replay" → Kinesis Data Streams.
  • "Kafka compatibility" → MSK.

🪤 TRAPS

  • Firehose is not the same as Data Streams.
  • Buffering means delivery is not instantaneous.
  • Firehose does not offer the same shard consumer model as Data Streams.
  • Destination permissions and quotas still matter.

📝 PRACTICE QUESTION
A company collects web click events and wants them automatically delivered to S3 with optional conversion to Parquet. It does not need custom stream consumers. Which service fits?
A. Amazon Data Firehose
B. Kinesis Data Streams only
C. AWS Client VPN
D. Amazon RDS Proxy

Answer: A. Data Firehose buffers and delivers records to S3 and can convert formats. The other services do not provide this managed delivery workflow.

🔁 ONE-LINE RECAP
Use Data Firehose for managed streaming delivery and Kinesis Data Streams for custom event consumers.


145. Amazon MSK and Kafka-based streaming (Domain 3.5)

🧒 LIKE I'M 5
A company already uses a familiar messaging railway system. Amazon MSK runs Apache Kafka in AWS so existing Kafka applications can keep using familiar tools.

📖 EXPLAINED SIMPLY

  • Amazon Managed Streaming for Apache Kafka (MSK) provides managed Kafka clusters.
  • Kafka uses topics. Producers write messages to topics, and consumers read them.
  • A topic is divided into partitions. Partitions allow parallel processing and preserve order within each partition.
  • Kafka stores replicated logs across brokers. Replication improves durability and availability.
  • MSK supports Kafka-compatible clients and ecosystem tools.
  • MSK Provisioned lets you choose broker capacity and manage cluster sizing decisions.
  • MSK Serverless manages broker capacity for supported workloads and reduces infrastructure management.
  • Use MSK when the organization already uses Kafka APIs, Kafka Connect, or Kafka ecosystem tooling.
  • Choose Kinesis when AWS-native streaming features fit better and Kafka compatibility is not needed.
  • Plan partition count, replication factor, retention, producer batching, and consumer groups.
  • A consumer group shares work across its members. Different consumer groups can read the same topic independently.

📚 JARGON BOX

  • Kafka → Distributed event streaming platform.
  • Topic → Named stream of messages.
  • Partition → Ordered subset of a topic.
  • Broker → Kafka server storing and serving partitions.
  • Replication factor → Number of copies of a partition.
  • Consumer group → Consumers sharing topic partitions.
  • Retention → How long Kafka stores records.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
MSKExisting Kafka applications and ecosystem
Kinesis Data StreamsAWS-native real-time stream processing
Data FirehoseManaged delivery to destinations
SQSDecoupled task queue

🎯 EXAM LENS

  • "Existing Kafka application" → MSK.
  • "Kafka topics and consumer groups" → MSK.
  • "Managed stream delivery to S3" → Data Firehose.
  • "AWS-native real-time stream with shards" → Kinesis Data Streams.

🪤 TRAPS

  • MSK is not a simple SQS queue.
  • Kafka ordering is within a partition.
  • More partitions add parallelism but affect ordering and operations.
  • MSK Provisioned and Serverless have different capacity models.

📝 PRACTICE QUESTION
A company has several applications built around Kafka topics and consumer groups. It wants to move the platform to AWS with minimal application changes. Which service fits?
A. Amazon MSK
B. SQS Standard
C. Data Firehose only
D. Amazon Polly

Answer: A. MSK provides managed Kafka compatibility. SQS and Firehose use different consumption models. Polly generates speech.

🔁 ONE-LINE RECAP
Use MSK when Kafka compatibility and its topic/partition ecosystem are important.


146. Choosing Kinesis, Firehose, MSK, or SQS (Domain 3.5)

🧒 LIKE I'M 5
A courier, railway, and token counter all move work, but each follows a different model. Choose the service based on how data should be consumed.

📖 EXPLAINED SIMPLY

  • Choose Kinesis Data Streams when many custom consumers need retained real-time records and partition-based ordering.
  • Choose Data Firehose when records should be delivered to S3, Redshift, OpenSearch, or supported destinations with minimal management.
  • Choose Amazon MSK when applications already use Apache Kafka or need Kafka ecosystem compatibility.
  • Choose SQS when messages represent independent work items processed by competing consumers.
  • Kinesis and Kafka are stream platforms. Firehose is a delivery service. SQS is a queue.
  • Kinesis retains records for replay within its configured window. Firehose focuses on delivery and optional buffering.
  • Kafka partitions provide ordering within partitions. Kinesis uses shards and partition keys.
  • SQS Standard offers at-least-once delivery and best-effort ordering. FIFO provides ordered message groups.
  • Select based on ordering, replay, protocol compatibility, destination, consumer model, and operations.
  • Avoid adding a streaming platform when an ordinary queue or scheduled batch job is sufficient.

📚 JARGON BOX

  • Stream platform → Service storing sequences of events for consumers.
  • Delivery service → Service that forwards records to destinations.
  • Queue → Work items waiting for consumers.
  • Replay → Process previously retained records again.
  • Consumer group → Set of consumers sharing stream partitions.
  • Protocol compatibility → Ability to use existing client interfaces.

⚖️ COMPARE WITH LOOKALIKES

RequirementBest fit
Custom real-time stream consumersKinesis Data Streams
Managed delivery to S3/RedshiftData Firehose
Existing Kafka clientsMSK
Independent work queueSQS
Simple nightly filesBatch ingestion

🎯 EXAM LENS

  • "Several consumers, replay, shard ordering" → Kinesis Data Streams.
  • "Deliver and transform records to S3" → Data Firehose.
  • "Kafka migration" → MSK.
  • "Work queue with visibility timeout and DLQ" → SQS.

🪤 TRAPS

  • Firehose is not a Kafka replacement.
  • SQS does not guarantee global ordering in Standard queues.
  • Kinesis requires partition-key design.
  • Streaming is not always better than batch.

📝 PRACTICE QUESTION
A company has Kafka-based applications and wants to preserve Kafka APIs and consumer groups during migration. Which service is best?
A. Amazon MSK
B. SQS FIFO
C. Data Firehose
D. AWS Glue

Answer: A. MSK maintains Kafka compatibility. FIFO is a queue, Firehose delivers records, and Glue performs data integration.

🔁 ONE-LINE RECAP
Choose Kinesis for custom streams, Firehose for delivery, MSK for Kafka, and SQS for queued work.


147. AWS DataSync for large-scale data transfer (Domain 3.5)

🧒 LIKE I'M 5
A moving company copies everything from one house to another and checks what changed since the last trip. DataSync moves and synchronizes data between storage systems.

📖 EXPLAINED SIMPLY

  • AWS DataSync is a managed service for moving data between on-premises storage and AWS, or between supported AWS storage services.
  • It supports common transfer patterns involving NFS, SMB, S3, EFS, FSx, and other supported locations.
  • An agent can run on-premises when DataSync needs to access local storage.
  • A task defines source, destination, schedule, and transfer settings.
  • DataSync can perform one-time transfers or recurring synchronization.
  • It verifies data integrity and can preserve file metadata depending on location and configuration.
  • Use it for NAS migration, file server transfers, backup copy, and scheduled synchronization.
  • DataSync is not the same as Storage Gateway. DataSync moves files; Storage Gateway provides ongoing hybrid storage access.
  • It is not the same as Transfer Family. Transfer Family provides SFTP/FTPS/FTP/AS2 endpoints for partner file exchange.
  • Plan bandwidth, task schedule, network path, permissions, and destination storage class.
  • Large migrations may need multiple tasks or carefully designed filters.

📚 JARGON BOX

  • DataSync agent → Software appliance accessing local storage.
  • Task → Configured data transfer operation.
  • Source location → Where data starts.
  • Destination location → Where data is copied.
  • Synchronization → Copy changes after initial transfer.
  • Integrity verification → Check data correctness after transfer.

⚖️ COMPARE WITH LOOKALIKES

ServiceMain job
DataSyncMove and synchronize datasets
Storage GatewayOngoing hybrid storage interface
Transfer FamilyManaged SFTP/FTPS/FTP/AS2
Snow FamilyOffline or edge data transfer

🎯 EXAM LENS

  • "Move NAS files to EFS" → DataSync.
  • "Schedule recurring file synchronization" → DataSync.
  • "Partner uses SFTP" → Transfer Family.
  • "Keep local file interface backed by AWS" → Storage Gateway.

🪤 TRAPS

  • DataSync is transfer, not a mounted storage gateway.
  • Transfer Family is protocol-based file exchange.
  • Verify source/destination permissions.
  • Transfer speed depends on available network bandwidth.

📝 PRACTICE QUESTION
A company must copy 40 TB from an on-premises NFS file server to Amazon EFS over its network and repeat transfers nightly. Which service fits?
A. AWS DataSync
B. Amazon Polly
C. AWS WAF
D. Route 53

Answer: A. DataSync supports managed network transfer and recurring synchronization. The other services do not move file-system data.

🔁 ONE-LINE RECAP
Use DataSync for managed one-time or recurring transfers between on-premises and AWS storage.


148. AWS Snow Family for offline and edge data transfer (Domain 3.5)

🧒 LIKE I'M 5
When the internet road is too slow for a huge shipment, a company sends a secure truck full of data. Snow devices move data physically and can also run edge workloads.

📖 EXPLAINED SIMPLY

  • AWS Snow Family provides physical devices for large-scale data transfer and edge computing.
  • Use Snow devices when network transfer would take too long, be too expensive, or be impossible.
  • Snowball Edge can transfer large datasets and run selected compute or storage workloads at remote locations.
  • Snowcone is a smaller rugged device for edge locations with limited space or connectivity, subject to current availability.
  • AWS ships a device. The customer copies data locally, returns it, and AWS imports it to the selected destination.
  • Snow devices support encryption and tamper-resistant handling.
  • Snowball Edge compute capabilities can process data locally when sending everything to the cloud is not practical.
  • Use DataSync when network bandwidth is sufficient and ongoing synchronization is needed.
  • Use Snow Family for offline bulk transfer, remote field collection, or edge processing.
  • Check current device availability, capacity, supported Regions, and service lifecycle before planning a new project.

📚 JARGON BOX

  • Offline transfer → Move data without relying on network bandwidth.
  • Snow device → Physical AWS device for transfer or edge compute.
  • Edge compute → Process data near where it is created.
  • Import → Move transferred data into AWS storage.
  • Tamper-resistant → Designed to reveal or prevent unauthorized physical access.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
DataSyncNetwork-based transfer and sync
Snow FamilyPhysical transfer and edge processing
Transfer FamilyPartner file protocols
Storage GatewayOngoing hybrid storage access

🎯 EXAM LENS

  • "Hundreds of TB over a slow link" → Snow Family.
  • "Remote site has no reliable internet" → Snow device and edge processing.
  • "Recurring transfer over network" → DataSync.
  • "SFTP partner delivery" → Transfer Family.

🪤 TRAPS

  • Snow devices are not continuous file gateways.
  • DataSync is usually better when network transfer is practical.
  • Device size and availability differ by Region and generation.
  • Plan the return and import process.

📝 PRACTICE QUESTION
A research vessel collects very large datasets at sea with limited connectivity. It must process some data locally and ship the rest to AWS later. Which option fits?
A. Snow Family edge device
B. CloudFront
C. RDS Proxy
D. Route 53 latency routing

Answer: A. Snow devices support remote data transfer and selected edge computing. The other services do not solve offline bulk data collection.

🔁 ONE-LINE RECAP
Use Snow Family when network transfer is impractical or processing must happen at remote edge sites.


149. Transfer Family and file-exchange service selection (Domain 3.5)

🧒 LIKE I'M 5
A supplier sends files through a secure delivery gate. Transfer Family provides managed file-transfer endpoints so the company does not run its own public server.

📖 EXPLAINED SIMPLY

  • AWS Transfer Family provides managed endpoints for supported file-transfer protocols such as SFTP, FTPS, FTP, and AS2.
  • Files can land in Amazon S3 or Amazon EFS.
  • Use it when suppliers, banks, or partners already use standard file-transfer protocols.
  • Configure identities, permissions, host keys, logging, network access, and storage locations.
  • Use service-managed users or supported custom identity providers.
  • Transfer Family keeps the partner workflow familiar while storing files in AWS.
  • It differs from DataSync, which is designed for managed storage-to-storage transfer and synchronization.
  • It differs from AppFlow, which connects SaaS applications and maps records.
  • It differs from Storage Gateway, which exposes ongoing local file or block interfaces.
  • See the Domain 2 Transfer Family note for the complete protocol and endpoint setup. Choose the service based on how the source system sends data.

📚 JARGON BOX

  • SFTP → Secure File Transfer Protocol.
  • FTPS → FTP protected by TLS.
  • AS2 → Protocol for secure business data exchange.
  • Endpoint → Network address accepting file-transfer sessions.
  • Identity provider → System that authenticates users.
  • Host key → Server identity key used by secure file-transfer clients.

⚖️ COMPARE WITH LOOKALIKES

ServiceChoose when
Transfer FamilyPartner sends files using SFTP/FTPS/FTP/AS2
DataSyncCopy large storage datasets
AppFlowMove records between SaaS applications
Storage GatewayKeep local storage workflows backed by AWS

🎯 EXAM LENS

  • "Partner uploads files via SFTP" → Transfer Family.
  • "Salesforce data flows into S3" → AppFlow.
  • "NAS files copied to EFS" → DataSync.
  • "Local app needs SMB/NFS backed by cloud" → Storage Gateway.

🪤 TRAPS

  • Transfer Family is not a data lake ETL tool.
  • SFTP is a file-transfer protocol, not an application database API.
  • Managed endpoints still require correct access policies.
  • Do not confuse Transfer Family with DataSync.

📝 PRACTICE QUESTION
A bank sends daily settlement files using AS2. It wants a managed AWS endpoint and files stored in S3. Which service fits?
A. AWS Transfer Family
B. AWS DataSync
C. Amazon Athena
D. Amazon EMR

Answer: A. Transfer Family supports AS2 file exchange and S3 storage. DataSync transfers storage datasets. Athena and EMR analyze data.

🔁 ONE-LINE RECAP
Use Transfer Family for partner file-transfer protocols and DataSync for storage synchronization.


150. AWS Glue ETL jobs and serverless data transformation (Domain 3.5)

🧒 LIKE I'M 5
A factory washes, sorts, and packs raw ingredients before sending them to a shop. Glue transforms raw data into a useful format for analysis.

📖 EXPLAINED SIMPLY

  • AWS Glue is a managed data integration service for discovering, preparing, and moving data.
  • Glue ETL jobs can extract data from sources, transform it, and load it into destinations.
  • Glue supports Apache Spark-based jobs and other supported job types.
  • It can read and write data in S3 and connect to supported databases and services.
  • Use Glue to clean fields, join datasets, remove duplicates, and change formats.
  • Glue can run on a schedule, on demand, or through supported event-driven triggers.
  • Glue is serverless for job infrastructure, but jobs still use allocated resources and incur charges.
  • Use Glue for data preparation before Athena, Redshift, or machine-learning workflows.
  • For simple SQL directly on S3, Athena may be enough. For large Spark/Hadoop workloads requiring cluster control, evaluate EMR.
  • Monitor job duration, retries, worker capacity, and data skew.

📚 JARGON BOX

  • ETL → Extract, Transform, Load.
  • Extract → Read source data.
  • Transform → Clean or reshape data.
  • Load → Write data to a destination.
  • Job → Configured data-processing run.
  • Worker → Compute resource used by a Glue job.
  • Data skew → Uneven distribution of records across processing tasks.

⚖️ COMPARE WITH LOOKALIKES

ServiceMain purpose
GlueManaged ETL and catalog
AthenaQuery data in S3 using SQL
EMRManaged big-data frameworks
Data FirehoseDeliver streaming records
DataSyncMove files and datasets

🎯 EXAM LENS

  • "Serverless ETL job" → AWS Glue.
  • "Clean and transform data before analytics" → Glue.
  • "Run Spark/Hadoop with more control" → EMR.
  • "Query S3 without managing a cluster" → Athena.

🪤 TRAPS

  • Glue ETL is not the same as DataSync file copying.
  • Athena queries data; it is not a full ETL replacement.
  • Glue jobs still need capacity, IAM, networking, and monitoring.
  • Poor partitioning or data skew can slow jobs.

📝 PRACTICE QUESTION
A company must clean and join daily CSV files in S3, then write curated data for analysis. It wants serverless data integration. Which service fits?
A. AWS Glue
B. AWS Client VPN
C. Amazon Route 53
D. EBS snapshots

Answer: A. Glue runs managed ETL jobs. The other services handle networking, DNS, or block-storage backup.

🔁 ONE-LINE RECAP
Use Glue to discover, clean, transform, and load data for downstream analytics.


151. Glue Crawlers and the Data Catalog (Domain 3.5)

🧒 LIKE I'M 5
A librarian scans shelves and writes down what each book contains. Glue Crawlers inspect data and create table definitions in a catalog.

📖 EXPLAINED SIMPLY

  • The AWS Glue Data Catalog stores metadata about datasets, tables, columns, formats, and locations.
  • Metadata describes the data; it does not store the underlying data files.
  • A Glue Crawler scans supported data sources and infers schema information.
  • It can create or update table definitions in the Data Catalog.
  • Athena and other analytics services can use the catalog to understand data locations and schemas.
  • Crawlers are useful when new files arrive regularly and the schema is discoverable.
  • For strict schemas, define tables manually or manage schema changes carefully.
  • Crawlers may infer incorrect types when data is inconsistent. Review schema changes before production queries.
  • Partition metadata can help query engines scan only relevant data.
  • Use Lake Formation to manage fine-grained data lake permissions where required.

📚 JARGON BOX

  • Data Catalog → Metadata store describing datasets.
  • Crawler → Tool that scans data and infers schema.
  • Schema → Column names and data types.
  • Table definition → Metadata pointing to data and describing its structure.
  • Partition → Logical division of a dataset.
  • Schema evolution → Changes to dataset structure over time.

⚖️ COMPARE WITH LOOKALIKES

ComponentRole
S3Stores data files
Glue CrawlerDiscovers schema
Glue Data CatalogStores metadata
AthenaQueries data using catalog metadata
Lake FormationManages data lake permissions

🎯 EXAM LENS

  • "Discover schema of files in S3" → Glue Crawler.
  • "Central metadata repository" → Glue Data Catalog.
  • "Query cataloged S3 data with SQL" → Athena.
  • "Fine-grained data lake access" → Lake Formation.

🪤 TRAPS

  • The Data Catalog stores metadata, not the actual dataset.
  • A crawler does not automatically clean or transform data.
  • Inferred schema may need review.
  • Athena queries data; the crawler only discovers metadata.

📝 PRACTICE QUESTION
A company receives new CSV files in S3 every day. It wants to discover columns and register tables for Athena. What should it use?
A. Glue Crawler and Data Catalog
B. NAT Gateway
C. CloudFront
D. RDS Proxy

Answer: A. A crawler infers schema and updates the catalog. The other options do not discover dataset structure.

🔁 ONE-LINE RECAP
Use Glue Crawlers to discover data structure and the Data Catalog to store metadata for analytics tools.


152. Columnar formats: CSV vs Parquet vs ORC (Domain 3.5)

🧒 LIKE I'M 5
A notebook stores each row of a student's details together. A columnar register stores all marks together and all names together. Analytics often reads only a few columns.

📖 EXPLAINED SIMPLY

  • CSV stores text values separated by delimiters. It is easy to inspect but can be large and requires parsing.
  • Parquet and ORC are columnar formats. They store values by column and support compression and column pruning.
  • Analytics queries often read only a few columns from a large dataset. Columnar formats avoid reading every field.
  • Columnar storage can reduce scan size and query cost in Athena, Redshift Spectrum, and other analytics tools.
  • Parquet and ORC support schema information and efficient encoding.
  • Convert raw CSV files into Parquet or ORC during ETL when analytics is frequent.
  • Partition data by useful filter fields such as date, region, or tenant. Avoid excessive tiny partitions.
  • Compression reduces storage and scan costs, but choose codecs supported by the query engine.
  • Keep raw source files when audit or replay requirements exist. Store curated columnar outputs separately.
  • Use row-oriented formats for streaming and operational records when frequent whole-record writes are more important.

📚 JARGON BOX

  • CSV → Delimited text format.
  • Columnar → Values stored by column.
  • Parquet → Columnar analytics file format.
  • ORC → Optimized Row Columnar file format.
  • Column pruning → Read only needed columns.
  • Compression → Store data in fewer bytes.
  • Partitioning → Split data into logical folders or groups.

⚖️ COMPARE WITH LOOKALIKES

FormatStrengthTypical use
CSVSimple and portableRaw interchange
ParquetColumnar compression and pruningAnalytics
ORCColumnar format for big-data enginesAnalytics
JSONFlexible nested recordsEvent exchange

🎯 EXAM LENS

  • "Reduce Athena scan bytes" → Parquet or ORC with partitioning.
  • "Raw text data easy to inspect" → CSV.
  • "Analytics reads only selected columns" → Columnar format.
  • "Transform CSV before analytics" → Glue ETL.

🪤 TRAPS

  • Parquet is not a database engine.
  • Partitioning on too many values can create tiny files.
  • CSV is readable but may scan more bytes.
  • Keep raw data if you may need to reprocess it.

📝 PRACTICE QUESTION
Athena queries repeatedly scan only three columns from very large CSV files. The company wants lower scan cost and faster queries. What should it do?
A. Convert data to Parquet and partition by common filters
B. Store all files in one uncompressed CSV
C. Move data to EBS instance store
D. Disable the Data Catalog

Answer: A. Parquet supports column pruning and compression. Partitioning can reduce scanned data. The other options do not optimize analytic scans.

🔁 ONE-LINE RECAP
Use Parquet or ORC plus sensible partitions to reduce analytics scans compared with raw CSV.


153. Data lake architecture on Amazon S3 (Domain 3.5)

🧒 LIKE I'M 5
A large warehouse stores raw ingredients, cleaned ingredients, and finished products in separate areas. A data lake keeps raw and processed datasets in an organized storage system.

📖 EXPLAINED SIMPLY

  • A data lake stores data from many sources in a central location, often Amazon S3.
  • It can store structured, semi-structured, and unstructured data.
  • Organize data into zones such as raw, cleaned, curated, and analytics-ready.
  • Keep original source data in a raw zone so it can be reprocessed later.
  • Use Glue to catalog and transform data. Use Lake Formation to manage permissions.
  • Use Athena for SQL queries on S3. Use Redshift for data warehousing and more complex analytics.
  • Use EMR for large-scale Spark or Hadoop processing.
  • Apply partitioning and columnar formats to improve query performance and cost.
  • Secure the lake with IAM, bucket policies, KMS encryption, Lake Formation permissions, and audit logs.
  • Avoid giving every analyst broad access to all raw data.
  • Data lake design must include ownership, naming, retention, data quality, and access controls.
  • A data lake is not automatically a data warehouse. It requires governance and curated datasets for trusted reporting.

📚 JARGON BOX

  • Data lake → Central store for diverse data.
  • Raw zone → Original data as received.
  • Curated zone → Cleaned and prepared data.
  • Data quality → Accuracy and completeness of datasets.
  • Governance → Rules for ownership, access, and use.
  • Data catalog → Metadata describing datasets.

⚖️ COMPARE WITH LOOKALIKES

StoreMain role
S3 data lakeFlexible storage for diverse datasets
Redshift warehouseStructured analytics and BI
RDS databaseOperational transactions
Lake FormationData lake permissions and governance

🎯 EXAM LENS

  • "Store raw and curated files at scale" → S3 data lake.
  • "Govern lake access by table or column" → Lake Formation.
  • "SQL on files in S3" → Athena.
  • "Structured warehouse for BI" → Redshift.

🪤 TRAPS

  • A data lake is not automatically governed.
  • S3 stores files; Glue stores metadata.
  • Lake Formation does not replace encryption or IAM.
  • Raw data should not be overwritten if replay and audit are needed.

📝 PRACTICE QUESTION
A company wants a central S3-based data lake with raw and curated zones, cataloging, and fine-grained permissions. Which combination fits?
A. S3 + Glue Data Catalog + Lake Formation
B. EC2 instance store only
C. CloudFront + Route 53
D. RDS Proxy + NAT Gateway

Answer: A. S3 stores data, Glue catalogs it, and Lake Formation governs access. The other combinations do not build a governed lake.

🔁 ONE-LINE RECAP
Build data lakes on S3, catalog with Glue, transform with ETL, and govern access with Lake Formation.


154. AWS Lake Formation permissions and governance (Domain 3.5)

🧒 LIKE I'M 5
A warehouse has shelves for different teams. The manager decides which team can view, edit, or use each shelf. Lake Formation manages data lake permissions.

📖 EXPLAINED SIMPLY

  • AWS Lake Formation helps set up, secure, and govern data lakes built on AWS services such as S3 and Glue.
  • It centralizes permissions for databases, tables, columns, and supported data resources.
  • Data permissions can be granted to IAM principals and supported identity sources.
  • LF-Tags let administrators tag resources and grant access based on tag policies.
  • Column-level permissions can restrict access to sensitive fields while allowing access to other columns.
  • Lake Formation works with Glue Data Catalog metadata and supported analytics services such as Athena and Redshift Spectrum.
  • It does not replace S3 encryption, IAM, or network security. All layers must be configured correctly.
  • Use it when many teams share a lake and need fine-grained access.
  • Use simpler IAM and bucket policies for small systems with limited data-sharing needs.
  • Monitor access and audit permissions regularly.

📚 JARGON BOX

  • Lake Formation → Data lake governance service.
  • LF-Tag → Metadata tag used to manage permissions.
  • Column-level permission → Access to selected columns only.
  • Principal → User, role, or service identity.
  • Data Catalog → Metadata repository used by analytics tools.
  • Governance → Rules controlling data access and use.

⚖️ COMPARE WITH LOOKALIKES

ControlScope
IAM policyAWS API and resource permissions
S3 bucket policyBucket/object access
Lake FormationFine-grained data lake permissions
KMS key policyEncryption key usage

🎯 EXAM LENS

  • "Different teams access different tables or columns" → Lake Formation.
  • "Tag-based data permissions" → LF-Tags.
  • "Central lake governance" → Lake Formation.
  • "Encrypt data at rest" → KMS, not Lake Formation alone.

🪤 TRAPS

  • Lake Formation is not a storage service.
  • It does not replace KMS encryption.
  • S3 bucket permissions and Lake Formation permissions must work together.
  • LF-Tags describe governance, not the data format.

📝 PRACTICE QUESTION
A data lake contains employee records and public analytics. Analysts may see only non-sensitive columns. Which service should manage fine-grained permissions?
A. Lake Formation
B. Data Firehose
C. CloudFront
D. S3 Transfer Acceleration

Answer: A. Lake Formation can manage table and column permissions. The other services deliver streams, content, or file transfers.

🔁 ONE-LINE RECAP
Use Lake Formation to centralize fine-grained permissions across a shared S3 data lake.


155. Amazon Athena: serverless SQL on S3 (Domain 3.5)

🧒 LIKE I'M 5
A librarian searches a warehouse's catalog without moving every box to a new building. Athena runs SQL queries directly on data stored in S3.

📖 EXPLAINED SIMPLY

  • Amazon Athena is a serverless interactive query service for data stored in S3.
  • Write SQL queries and Athena scans the selected files. You do not manage database servers.
  • It uses metadata from the Glue Data Catalog or supported catalogs to understand tables and schemas.
  • Athena supports formats such as CSV, JSON, Parquet, and ORC.
  • Query cost is commonly based on data scanned. Columnar formats and partitioning can reduce scanned bytes.
  • Use compression to reduce storage and query scan size.
  • Partitioning organizes data by fields such as year, month, or region. Queries that filter on partition columns can scan less data.
  • Use CTAS (Create Table As Select) to create a new table from query results. It can help convert data to optimized formats.
  • Athena is ideal for ad hoc analysis and data-lake queries. It is not usually the best choice for heavy transactional workloads.
  • Store query results in S3 and secure the result location. Query permissions and source data permissions both matter.

📚 JARGON BOX

  • Serverless query → Run SQL without managing database servers.
  • Scan → Read bytes from underlying files.
  • Partition → Logical subset of a dataset.
  • CTAS → Create Table As Select.
  • Ad hoc query → One-off question against data.
  • Workgroup → Configuration and control for query execution.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
AthenaSQL on S3 data
RedshiftData warehouse
EMRSpark/Hadoop workloads
RDSOperational relational database

🎯 EXAM LENS

  • "Run SQL directly on S3" → Athena.
  • "Reduce query scan cost" → Parquet/ORC and partitions.
  • "No database infrastructure to manage" → Athena.
  • "Complex warehouse workloads and BI" → Redshift.

🪤 TRAPS

  • Athena is not a transactional database.
  • Query cost can rise with large scans.
  • Partitioning helps only when queries filter on partition columns.
  • Metadata must describe the underlying data correctly.

📝 PRACTICE QUESTION
Analysts need to query historical Parquet files in S3 with SQL, without managing servers. Which service should they use?
A. Athena
B. RDS Proxy
C. Amazon MQ
D. EC2 Auto Scaling

Answer: A. Athena queries files in S3 serverlessly. The other services manage database connections, brokers, or EC2 capacity.

🔁 ONE-LINE RECAP
Use Athena for serverless SQL on S3 and reduce scan cost with columnar files and partitions.


156. Amazon Redshift and data warehousing (Domain 3.5)

🧒 LIKE I'M 5
A shop's daily cash register stores individual transactions. A head office combines months of sales into reports. Redshift is built for analytical warehouse queries.

📖 EXPLAINED SIMPLY

  • Amazon Redshift is a managed data warehouse for analytics and business intelligence.
  • It is designed for analytical queries over large datasets rather than frequent small transactional updates.
  • Redshift uses columnar storage and parallel processing to scan and aggregate data efficiently.
  • Use it for dashboards, historical reporting, data marts, and analytical SQL workloads.
  • Data can be loaded from S3 using COPY or queried through supported integrations.
  • RA3 node types separate compute from managed storage. This allows storage growth without sizing compute and storage together in the same way as older designs.
  • Redshift Serverless adjusts data warehouse capacity for supported usage patterns without managing provisioned clusters.
  • Redshift Spectrum allows querying data in S3 without first loading all data into Redshift tables, using catalog metadata.
  • Use sort keys and distribution choices carefully for large datasets. Modern automatic table optimization can help with some choices.
  • Do not use Redshift as the default backend for high-volume transactional application requests.
  • Compare Redshift with Athena: Athena is simpler for ad hoc S3 queries; Redshift suits repeated warehouse workloads and managed BI.

📚 JARGON BOX

  • Data warehouse → Store optimized for analytics.
  • Columnar storage → Store values by column.
  • Parallel processing → Multiple workers process parts of a query.
  • RA3 → Redshift node family with managed storage.
  • Spectrum → Query S3 data from Redshift.
  • Sort key → Controls data ordering for query pruning.
  • Distribution style → How rows are spread across compute nodes.
  • Data mart → Smaller warehouse for a business area.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
RedshiftManaged data warehouse
AthenaAd hoc SQL on S3
RDSTransactional relational database
EMRCustom big-data frameworks

🎯 EXAM LENS

  • "Enterprise data warehouse" → Redshift.
  • "Repeated complex analytical SQL" → Redshift.
  • "Query S3 without loading into warehouse" → Athena or Redshift Spectrum depending on design.
  • "Transactional app database" → RDS/Aurora, not Redshift.

🪤 TRAPS

  • Redshift is not the main OLTP database choice.
  • Athena and Redshift both query data but have different operational models.
  • Sort and distribution choices affect performance.
  • Redshift Serverless is still a warehouse, not a generic object store.

📝 PRACTICE QUESTION
A company runs recurring BI reports and complex aggregations over terabytes of historical data. It wants a managed data warehouse. Which service fits?
A. Amazon Redshift
B. Amazon SQS
C. AWS Transfer Family
D. Amazon Cognito

Answer: A. Redshift is designed for analytical warehousing. The other services provide queues, file transfer, and identity.

🔁 ONE-LINE RECAP
Use Redshift for managed analytical warehousing and Athena for simpler ad hoc SQL on S3.


157. Amazon EMR for Spark and Hadoop analytics (Domain 3.5)

🧒 LIKE I'M 5
A research team has a huge mountain of data. It splits the work among many workers. EMR manages clusters and services for distributed data processing.

📖 EXPLAINED SIMPLY

  • Amazon EMR runs big-data frameworks such as Apache Spark and Hadoop.
  • It processes large datasets across multiple compute nodes.
  • EMR can run on EC2-based clusters, EKS, and supported serverless options.
  • Use EMR when you need control over distributed frameworks, libraries, cluster configuration, or processing jobs.
  • EMR can read and write data in S3 and other supported data sources.
  • It supports large-scale ETL, log analysis, machine learning data preparation, and data processing.
  • Choose EC2 clusters when you need fine control over instance types and long-running clusters.
  • Choose EMR Serverless when you want to run supported jobs without managing clusters.
  • For straightforward managed ETL, AWS Glue may be easier.
  • For simple SQL on S3, Athena may be cheaper and easier.
  • Tune parallelism, memory, shuffle, and data partitioning to avoid bottlenecks.

📚 JARGON BOX

  • Spark → Distributed data processing engine.
  • Hadoop → Distributed processing framework.
  • Cluster → Group of compute nodes.
  • Shuffle → Move data between workers during processing.
  • Parallelism → Work split among multiple workers.
  • EMR Serverless → Run supported big-data jobs without managing clusters.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
EMRSpark/Hadoop processing with control
GlueManaged ETL with less infrastructure
AthenaServerless SQL on S3
BatchQueue and run compute jobs

🎯 EXAM LENS

  • "Run Apache Spark or Hadoop" → EMR.
  • "Need cluster tuning and libraries" → EMR on EC2.
  • "Avoid managing clusters for Spark jobs" → EMR Serverless.
  • "Simple SQL over S3" → Athena.

🪤 TRAPS

  • EMR is not just a message queue.
  • Glue may be simpler for standard ETL jobs.
  • Cluster sizing and data shuffle affect cost and speed.
  • Serverless does not remove data and job optimization.

📝 PRACTICE QUESTION
A company uses custom Spark libraries and needs control over cluster instance types for a large ETL workload. Which service should it use?
A. Amazon EMR on EC2
B. Amazon Polly
C. S3 Glacier
D. Route 53

Answer: A. EMR on EC2 provides cluster and instance control for Spark. The other services do not run distributed analytics.

🔁 ONE-LINE RECAP
Use EMR for distributed Spark/Hadoop jobs when framework, cluster, or library control matters.


158. Amazon OpenSearch Service for search and log analytics (Domain 3.5)

🧒 LIKE I'M 5
A library index helps people find books by words, not only by shelf number. OpenSearch indexes documents so applications can search and analyze them quickly.

📖 EXPLAINED SIMPLY

  • Amazon OpenSearch Service provides managed OpenSearch clusters and serverless search collections.
  • It is useful for full-text search, log analytics, observability, and near-real-time search.
  • Applications send documents to an index. OpenSearch builds structures that make text and field searches fast.
  • Use it for product search, application logs, clickstream analysis, and dashboards.
  • It is not usually the system of record for orders or payments. Store durable source data in a primary database or S3.
  • OpenSearch Dashboards provides visual exploration and dashboards.
  • Search performance depends on index mappings, shards, replicas, refresh intervals, and query patterns.
  • Serverless collections reduce some cluster management but still need capacity and cost planning.
  • For simple SQL analytics on S3, Athena may be better. For relational transactions, use RDS/Aurora.
  • Secure domains or collections with network access controls, identity policies, and encryption.

📚 JARGON BOX

  • Index → Searchable collection of documents.
  • Document → JSON-like record indexed for search.
  • Shard → Partition of an index.
  • Replica → Copy of a shard for resilience or read capacity.
  • Full-text search → Search based on words and relevance.
  • Mapping → Definition of field types.
  • Refresh interval → How quickly new indexed data becomes searchable.

⚖️ COMPARE WITH LOOKALIKES

ServiceBest use
OpenSearchSearch and log analytics
AthenaSQL over files in S3
RedshiftData warehouse
RDSTransactional database

🎯 EXAM LENS

  • "Full-text product search" → OpenSearch.
  • "Analyze and visualize logs" → OpenSearch and Dashboards.
  • "SQL over S3 files" → Athena.
  • "Transactional relational records" → RDS/Aurora.

🪤 TRAPS

  • OpenSearch is not a replacement for every relational database.
  • Indexes require sizing and shard planning.
  • Search indexing may lag behind the source of truth.
  • Keep original records in durable storage.

📝 PRACTICE QUESTION
An e-commerce site needs fast full-text product search with relevance ranking and filters. Which service should it evaluate?
A. Amazon OpenSearch Service
B. AWS Backup
C. Amazon SQS
D. Direct Connect

Answer: A. OpenSearch provides indexed full-text search. The other services manage backups, queues, or networking.

🔁 ONE-LINE RECAP
Use OpenSearch for fast full-text search and log analytics, not as the default transactional system of record.


159. Amazon Quick and Quick Sight dashboards and business intelligence (Domain 3.5)

🧒 LIKE I'M 5
A school principal wants one dashboard showing attendance, marks, and fees. Amazon Quick turns data from different sources into charts and reports.

📖 EXPLAINED SIMPLY

  • Amazon Quick is the current AWS service name. Its business-intelligence and dashboard capability is Amazon Quick Sight, previously known as Amazon QuickSight.
  • It connects to supported data sources and lets users build analyses, visualizations, and dashboards.
  • It supports interactive filters, calculated fields, and sharing with users or groups.
  • SPICE is an in-memory optimized data store used by QuickSight for fast analytics. Importing data into SPICE can improve dashboard responsiveness.
  • Direct query accesses the underlying data source when supported. It can provide fresher data but depends on source performance.
  • Row-level security restricts which rows different users can see. Column-level security can restrict sensitive fields where supported.
  • Choose SPICE for fast interactive dashboards with scheduled refresh. Choose direct query when fresher data is required and the source can handle it.
  • Amazon Quick is a visualization and BI service, not the primary place to store raw data.
  • Use Athena, Redshift, or another supported data source to prepare datasets for dashboards.
  • Monitor refresh frequency, data size, and user access.

📚 JARGON BOX

  • BI → Business Intelligence; turning data into reports and insight.
  • Dashboard → Visual page containing charts and metrics.
  • Analysis → Interactive report-building workspace.
  • SPICE → In-memory storage engine used by Amazon Quick.
  • Direct query → Query the source data when users access a visual.
  • Row-level security → Restrict which records a user can see.
  • Refresh → Update imported dashboard data.

⚖️ COMPARE WITH LOOKALIKES

ServiceMain job
Amazon QuickDashboards and BI
AthenaSQL queries on S3
RedshiftData warehouse
OpenSearch DashboardsSearch and log visualizations

🎯 EXAM LENS

  • "Create interactive BI dashboards" → Amazon Quick.
  • "Improve dashboard speed using in-memory data" → SPICE.
  • "Fresh data directly from source" → Direct query.
  • "Restrict rows by user" → Row-level security.

🪤 TRAPS

  • Amazon Quick is not the data lake itself.
  • SPICE data must be refreshed.
  • Direct query depends on source availability and performance.
  • Dashboard permissions must protect sensitive fields.

📝 PRACTICE QUESTION
A company wants fast interactive dashboards for sales managers. Data can refresh every hour, and user access must be limited by region. What should it use?
A. Amazon Quick with SPICE and row-level security
B. S3 Glacier only
C. NAT Gateway
D. Amazon MQ

Answer: A. SPICE accelerates dashboard queries and row-level security limits visible rows. The other services do not provide BI dashboards.

🔁 ONE-LINE RECAP
Use Amazon Quick for interactive BI, SPICE for fast imported data, and row-level security for user-specific views.


160. Selecting an analytics architecture from ingestion to dashboard (Domain 3.5)

🧒 LIKE I'M 5
A farm collects crops, cleans them, stores them, and sends them to a market. An analytics architecture ingests data, transforms it, catalogs it, queries it, and shows results.

📖 EXPLAINED SIMPLY

  • Start with data arrival: batch files, continuous events, or partner transfers.
  • Use DataSync for storage migration, Transfer Family for partner file protocols, Snow Family for offline bulk transfer, and Kinesis or MSK for streaming.
  • Store raw data in S3. Keep the original copy so processing can be repeated.
  • Use Glue to clean, join, and transform datasets. Use Glue Crawlers and the Data Catalog for metadata.
  • Convert analytical datasets to Parquet or ORC and partition them by common filters.
  • Use Lake Formation for fine-grained data lake permissions.
  • Use Athena for ad hoc SQL, Redshift for a managed data warehouse, EMR for custom Spark/Hadoop processing, and OpenSearch for search and log analytics.
  • Use Amazon Quick for business dashboards and interactive visualizations.
  • Keep operational databases separate from analytics scans when workloads differ.
  • Monitor data freshness, failed jobs, schema changes, costs, and access.
  • Choose the simplest service combination that satisfies freshness, scale, query, security, and budget requirements.

📚 JARGON BOX

  • Ingestion → Bring data into a system.
  • Transformation → Clean or reshape data.
  • Catalog → Metadata describing datasets.
  • Data lake → Central store for raw and curated data.
  • Warehouse → Store optimized for analytical queries.
  • BI → Business Intelligence dashboards.
  • Data freshness → How recently a dataset was updated.

⚖️ COMPARE WITH LOOKALIKES

StageCandidate service
Partner file transferTransfer Family
Bulk storage transferDataSync or Snow Family
Streaming ingestKinesis or MSK
Managed deliveryData Firehose
ETL/catalogGlue
Lake permissionsLake Formation
SQL on S3Athena
WarehouseRedshift
Big-data frameworkEMR
Search/logsOpenSearch
DashboardsAmazon Quick

🎯 EXAM LENS

  • "SFTP partner file" → Transfer Family.
  • "Huge dataset over slow network" → Snow Family.
  • "Continuous event stream" → Kinesis or MSK.
  • "CSV to Parquet" → Glue.
  • "SQL directly on S3" → Athena.
  • "Executive dashboards" → Amazon Quick.

🪤 TRAPS

  • DataSync, Transfer Family, and Firehose are not interchangeable.
  • Glue transforms data; Data Catalog stores metadata.
  • Lake Formation governs permissions; S3 stores the files.
  • Athena and Redshift have different query and warehouse operating models.

📝 PRACTICE QUESTION
A company receives continuous device events, stores raw data in S3, transforms it into Parquet, queries it with SQL, and presents dashboards. Which flow is most appropriate?
A. Kinesis Data Streams or MSK → S3 landing → Glue ETL/Catalog → Athena or Redshift → Amazon Quick
B. Route 53 → NAT Gateway → Cognito
C. S3 Glacier → RDS Proxy → CloudFront
D. IAM group → EBS snapshot → Polly

Answer: A. This flow ingests events, stores raw data, transforms and catalogs it, then supports analytics and dashboards. The other options do not form a data analytics pipeline.

🔁 ONE-LINE RECAP
Design analytics end to end: ingest, land, transform, catalog, govern, query, and visualize.

✅ Batch 8 — topics 141–160

Batch 8 review sheet

  • Nightly scheduled analysis → Batch ingestion.
  • Continuous event processing → Streaming.
  • Multiple custom real-time consumers → Kinesis Data Streams.
  • Managed delivery of stream records to S3 → Data Firehose.
  • Existing Kafka ecosystem → MSK.
  • Large network-based file transfer → DataSync.
  • No reliable network for bulk data → Snow Family.
  • Partner SFTP/AS2 uploads → Transfer Family.
  • Serverless ETL → Glue.
  • Discover schema in S3 files → Glue Crawler.
  • Metadata repository → Glue Data Catalog.
  • Lower Athena scan costs → Parquet/ORC + partitions.
  • Central raw and curated object storage → S3 data lake.
  • Fine-grained lake/table/column permissions → Lake Formation.
  • Serverless SQL directly on S3 → Athena.
  • Data warehouse → Redshift.
  • Spark/Hadoop frameworks → EMR.
  • Full-text search and log analytics → OpenSearch.
  • Dashboards and BI → Amazon Quick.
  • Fast imported dashboard data → SPICE.

5 Extra Mixed Scenario Questions

1. A company wants to deliver streaming click events to S3 automatically, with optional transformation. It does not need custom consumers. Which service fits?
A. Data Firehose
B. Kinesis Data Streams only
C. SQS FIFO
D. Amazon MQ

Answer: A. Firehose provides managed delivery and optional transformation. Data Streams is for custom consumers. SQS and MQ are messaging systems.

2. Analysts query S3 datasets frequently, but only need a few columns. What is a strong optimization?
A. Convert to Parquet and partition by common filters
B. Keep every file as uncompressed CSV
C. Move the data into instance store
D. Disable metadata

Answer: A. Parquet supports column pruning and compression. Partitioning can reduce scanned bytes.

3. A data lake must allow finance to see financial tables but hide sensitive employee columns from analysts. Which service should govern access?
A. Lake Formation
B. CloudFront
C. NAT Gateway
D. AWS Batch

Answer: A. Lake Formation supports fine-grained data permissions, including column-level access where supported.

4. A team needs to run complex Spark processing with custom libraries and cluster control. Which service fits?
A. EMR on EC2
B. Athena only
C. Amazon Polly
D. S3 Transfer Acceleration

Answer: A. EMR on EC2 supports custom Spark/Hadoop environments and instance control.

5. A company wants sales dashboards with fast interactive filtering and region-specific row access. Which service and features fit?
A. Amazon Quick with SPICE and row-level security
B. SQS FIFO and visibility timeout
C. DataSync and Snowball
D. Route 53 and Global Accelerator

Answer: A. Amazon Quick provides BI dashboards. SPICE improves interactive performance, and row-level security restricts data by user.

📌 Domain 3 cheat sheet

  • Shared Linux file system → EFS.
  • Windows SMB with Active Directory → FSx for Windows File Server.
  • HPC parallel file system → FSx for Lustre.
  • General-purpose persistent EC2 disk → EBS gp3.
  • Very high storage IOPS → EBS io2.
  • Large sequential disk throughput → EBS st1.
  • Temporary local scratch data → Instance store.
  • Changing or unknown S3 access patterns → Intelligent-Tiering.
  • Convert large S3 uploads into parts → Multipart upload.
  • EC2 CPU, memory, storage, or GPU bottleneck → Choose the matching instance family.
  • Low-latency tightly coupled EC2 nodes → Cluster placement group.
  • Rack-level distribution for Kafka/Hadoop → Partition placement group.
  • Keep EC2 CPU near a target → Target tracking scaling.
  • Queue thousands of independent compute jobs → AWS Batch.
  • Spark/Hadoop distributed processing → EMR.
  • Telecom 5G edge compute → Wavelength.
  • Customer-site AWS infrastructure → Outposts.
  • Relational transactions → RDS/Aurora.
  • Repeated DynamoDB reads needing microseconds → DAX.
  • Hot DynamoDB partition → Redesign or shard partition keys.
  • Need table-change events → DynamoDB Streams.
  • Rich cache structures and replication → Valkey/Redis OSS.
  • Simple multi-threaded object cache → Memcached.
  • Lazy cache fill on first read → Cache-aside.
  • Update cache during DB write → Write-through.
  • Too many application-to-database connections → RDS Proxy.
  • Same-engine migration with a short cutover → DMS full load + CDC.
  • Different database engine → DMS Schema Conversion plus data migration.
  • Static global content → CloudFront.
  • Global static anycast IP and regional traffic failover → Global Accelerator.
  • Few VPCs needing a direct link → VPC peering.
  • Many VPCs and offices → Transit Gateway.
  • Share one private service without full VPC routing → PrivateLink.
  • Outbound-only IPv6 → Egress-only Internet Gateway.
  • Retained real-time records with custom consumers → Kinesis Data Streams.
  • Managed delivery of streaming records → Data Firehose.
  • Existing Kafka application → Amazon MSK.
  • Partner SFTP/AS2 transfer → Transfer Family.
  • Bulk storage synchronization → DataSync.
  • Offline bulk data or remote edge processing → Snow Family.
  • Serverless data transformation → Glue.
  • Discover data schema in S3 → Glue Crawler and Data Catalog.
  • Reduce analytics scan bytes → Parquet/ORC and sensible partitions.
  • Fine-grained data lake access → Lake Formation.
  • Serverless SQL directly on S3 → Athena.
  • Managed analytics warehouse → Redshift.
  • Full-text search and log analytics → OpenSearch.
  • Interactive business dashboards → Amazon Quick; SPICE accelerates imported data.

🔎 Official exam guide audit supplements — v1.1

Hybrid container choices: ECS Anywhere, EKS Anywhere, and EKS Distro

Read this alongside topic 64. These are distinct choices, not three names for the same service.

OptionWhat it runsWho manages the infrastructure?Best fit
Amazon ECS AnywhereECS tasks on external serversYou manage the external servers; ECS provides the control-plane integrationExtend an ECS environment to on-premises or edge servers
Amazon EKS AnywhereKubernetes clusters on your own infrastructureYou manage the underlying infrastructure and cluster operationsRun Kubernetes consistently outside AWS Regions
Amazon EKS DistroAWS-maintained distribution of Kubernetes componentsYou operate the Kubernetes environment yourselfBuild or operate a self-managed Kubernetes platform
  • ECS Anywhere is for teams already using ECS that need workloads on customer-managed servers.
  • EKS Anywhere is for teams that need Kubernetes clusters on premises or at the edge.
  • EKS Distro provides Kubernetes software components based on the versions used by Amazon EKS. It is not the same as the fully managed Amazon EKS service.
  • Do not choose these just because a question says “containers.” First decide whether it requires ECS or Kubernetes, and where the servers must run.

Exam clue: “ECS tasks on existing on-premises servers” → ECS Anywhere. “Kubernetes on customer-owned infrastructure” → EKS Anywhere. “AWS-maintained Kubernetes distribution for a self-managed cluster” → EKS Distro.

Securing data-ingestion access points

This makes the security requirement in Task 3.5 explicit. A data pipeline must protect the place where data enters, not just the storage destination.

  1. Authenticate the sender. Use IAM roles, Cognito, API Gateway authorizers, or the identity method supported by the ingestion service.
  2. Grant least privilege. Use IAM policies, S3 bucket policies, queue or stream resource policies, and endpoint policies to limit who can submit data.
  3. Encrypt the connection. Use TLS for data moving over a network.
  4. Encrypt stored data. Use AWS KMS-backed encryption where required.
  5. Keep private traffic private. Use appropriate VPC endpoints or private connectivity when supported, instead of sending sensitive traffic over public paths.
  6. Protect the lake after ingestion. Use Lake Formation for table and column permissions, alongside IAM and S3 permissions.
  7. Audit the path. Use CloudTrail and relevant service logs; use VPC Flow Logs when network traffic visibility is needed.
Ingestion pathImportant controls
API GatewayAuthorizer, throttling, TLS, least-privilege backend role
S3 uploadIAM/bucket policy, TLS, encryption, Block Public Access
Kinesis streamProducer identity, stream resource policy, encryption
Transfer FamilySFTP/FTPS endpoint, user or identity-provider permissions, destination role

Traps: Lake Formation does not secure every network entry point. KMS does not authenticate a sender. A private endpoint does not replace IAM authorization. Never embed long-term AWS access keys in an application.