AWS · translate a mechanism into infrastructureLESSON 12.02 · 2 OF 6 IN CHAPTER
PART D / AWS infrastructure
Step 182 of 252
LESSON 12.02 · 2 OF 6 IN CHAPTERAWS implementation

AWS · translate a mechanism into infrastructure

AWS is the implementation platform for this path. It is not a claim that all interviewers expect AWS product names. Explain the vendor-neutral requirement, then choose a service and show its operational consequences.

What connects local code to these services

A Python dictionary can demonstrate deduplication, but it cannot share that decision across Lambda invocations. A local SQLite file can demonstrate a transaction, but moving its rows to DynamoDB requires a different storage adapter and data model. The table below names candidate infrastructure roles. It is not a list of services already deployed by every project.

Choose one learning path before creating resources:

  • Understand a boundary locally: the contract, cache, and recovery models run without AWS credentials.
  • Exercise a real service directly: the conditional-write and upload labs provide small CLI/script paths and cleanup.
  • Deploy a supplied application slice: the queue lab includes a SAM template, worker, resource permissions, and result contract.

For example, the queue worker reads an SQS message, validates its operation ID and payload, then conditionally writes a DynamoDB result. The template connects the event source and permits the worker’s data access. Both the application code and that infrastructure definition are needed. A diagram alone supplies neither.

Service decisions

Need Candidate AWS services Decision to explain Implementation proof
Short request handlers API Gateway + Lambda Burst behavior, duration, cold start, dependency connections Request validation, deadline, version conflict
Long-lived/container work ALB + ECS/Fargate Process lifecycle, load balancing, task count, graceful drain Health check and shutdown without losing work
Static frontend and objects S3 + CloudFront Cache policy, private access, invalidation, byte transfer Upload directly; verify permissions and expiry
Relational data RDS/Aurora Transactions, joins, indexes, connection budget Query plan and concurrent-write test
Key-based access DynamoDB Partition key, hot keys, conditional writes, read consistency Atomic create and duplicate rejection
Independent jobs SQS standard + Lambda/ECS At-least-once delivery, visibility, partial failure, DLQ Retry after lost acknowledgement
Ordered groups SQS FIFO Ordering scope, message groups, retries and deduplication scope One slow group does not block unrelated groups
Routing/fan-out EventBridge / SNS Event filtering and subscribers versus durable processing state Failed subscriber and retry contract
Repeated low-latency reads ElastiCache Freshness, eviction, outage fallback, hot-key behavior Stampede and outage test
Identity and permissions Cognito + IAM User authentication versus service privileges and object authorization Cross-tenant denial and least-privilege role
Operations CloudWatch / tracing User outcomes, queue age, cost/cardinality Alarm threshold and trace showing a slow dependency

Local-first progression and optional infrastructure

Lab Implement Level extension
0 · Application contract boundary Local request/response validators and malformed-200 tests Senior: actual validation boundary; lead: compatible rollout and service lifecycle
1 · Conditional data writes A DynamoDB table, atomic first write, duplicate and conflict behavior Junior: explain keys; senior: model access patterns; staff: tenant partition policy
2 · Direct object upload Private S3 object upload through a short-lived capability Junior: byte flow; senior: finalization/versioning; staff: retention and regional strategy
3 · Durable queued work SAM template, SQS, Lambda worker, DynamoDB results, alarms, DLQ Junior: follow one job; senior: inject duplicates; staff: quotas and replay governance
4 · Recovery beyond one result Local leases/fencing, provider uncertainty, outbox, replay and migration Senior: failure schedules; lead: rebalance, region loss and rollback

For relational practice use the PostgreSQL lab. For cache/outage and warm-link authorization use the cache and revocation tests.

Labs 1 and 2 are command-driven exercises with small scripts. Lab 3 includes executable infrastructure and unit tests. Deploy to your own disposable learning account/stack only when ready; these steps create billable resources. No resources were deployed while preparing this branch. Choose your region and verify current pricing/quotas. The examples avoid hard-coded account IDs and never require committing credentials.

Primary documentation, checked 2026-09-22

  • DynamoDB conditional expressions
  • DynamoDB transactions
  • Lambda with SQS
  • SQS partial-batch responses
  • SAM SQS event properties
  • S3 presigned uploads

These live technical references may predate the research window. They establish service behavior, not recent interview frequency.

REST API Gateway basic validation covers configured requests; response models alone do not enforce backend response-body schemas. The local contract lab shows application response validation and records API flavor, media-type, and parameter-format limits. As checked 2026-09-22, App Mesh support ends September 30, 2026. Treat App Mesh as retirement scope; evaluate supported alternatives against their actual features and keep deadlines, retries, and validation explicit.

Architecture · Interview home

Learn from actual incidents

The production casebook maps five recent incidents to AWS implementation exercises: configuration rollout, retry budgets, deployment headroom, stale status projections, and hot partitions.

Sources and further reading · 7