Lesson 19 of 30
This track's CloudFront and CI/CD lessons show how to wire up S3, CloudFront, and a pipeline by hand. Amplify is AWS betting a frontend team would rather not — the same convenience-for-control trade Elastic Beanstalk makes on the compute side.
11 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
What's the core tradeoff AWS Amplify Hosting makes compared to manually configuring S3, CloudFront, and a CI pipeline yourself?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
AWS Amplify is a frontend-specific platform-as-a-service: connect a git repository, and Amplify builds and deploys on every push — no manually wiring together S3, CloudFront, and a CI pipeline the way this track's CloudFront and CI/CD lessons walk through by hand. Under the hood it's still provisioning something like that same infrastructure, but you never touch it directly.
Amplify is really two products people conflate:
This lesson is about the hosting half. It exists for the same reason Elastic Beanstalk exists on the compute side: doing this by hand is a well-understood but genuinely multi-step job, and Amplify trades the control that comes from owning each step for not having to do them.
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- node_modules/**/*
That's the entire deploy configuration. Connect the repo, point Amplify at this amplify.yml, and every push to the tracked branch triggers this build and ships the result — Amplify provisions and manages the CDN distribution, certificate, and cache invalidation itself. Compare that to the CI/CD lesson's manual sequence: authenticate via OIDC, s3 sync, then a separate cloudfront create-invalidation call. Amplify collapses that into a config file it interprets for you.
"When would you reach for Amplify instead of hand-rolling S3 + CloudFront + a pipeline?" tests whether a candidate can name the actual tradeoff — convenience and velocity versus fine-grained control — rather than treating a managed platform as a strictly better version of the manual setup.