Beanstalk

컴퓨팅 연관 문항 10개

코드만 올리면 환경을 자동 구성하는 PaaS

이게 뭔가요? / What is this?

Elastic Beanstalk은 그 자체가 서버가 아니라, 코드만 올리면 뒤에서 EC2·로드밸런서·오토스케일링 같은 실제 자원들을 알아서 조립해 주는 관리형 배포 서비스입니다. 이사할 때 가구를 직접 나르지 않고 이삿짐센터에 맡기면 알아서 배치까지 해주는 것과 비슷하며, 필요하면 나중에 그 가구(자원)를 직접 손볼 수도 있습니다.

개요 / Overview

Elastic Beanstalk은 코드를 업로드하면 EC2·ALB·ASG·모니터링을 자동으로 구성합니다. 인프라는 사용자 계정에 그대로 생성되므로 필요하면 직접 손댈 수 있습니다. "개발자가 인프라를 몰라도 배포", "빠르게 웹앱 올리기"가 신호입니다.

동작 원리 / How it works

Elastic Beanstalk은 코드 번들을 받아 플랫폼(Node, Python, Java, Docker 등)을 판별하고, 그에 맞는 CloudFormation 스택을 생성합니다. 결과물인 EC2·ALB·ASG·CloudWatch 알람은 여러분 계정에 그대로 보이며 직접 수정할 수도 있습니다. 즉 Beanstalk은 인프라를 감추는 게 아니라 초기 구성을 대신 해 주는 오케스트레이터입니다.

배포 정책이 무중단 여부를 결정합니다. Immutable은 새 인스턴스 세트를 병렬로 띄운 뒤 교체해 롤백이 가장 안전하고, Blue/Green은 별도 환경을 만든 뒤 CNAME을 교체합니다.

시험은 무엇을 보는가 / What the exam is testing

시험에서 Beanstalk은 "개발자가 인프라를 신경 쓰지 않고 웹앱을 올려야 한다"는 조건에 대응합니다. 다만 컨테이너 중심 문제에서는 ECS/Fargate가, 완전 서버리스 조건에서는 Lambda + API Gateway가 더 나은 정답이 되는 경우가 많습니다.

시험 포인트 / Exam points

배포 정책

All at once(빠르지만 다운타임), Rolling(일부씩 교체), Rolling with additional batch(용량 유지), Immutable(새 인스턴스 세트로 교체, 롤백 안전), Blue/Green(환경 URL 교체). "무중단"이면 Immutable이나 Blue/Green입니다.

워커 환경

웹 티어와 별개로 SQS 큐를 소비하는 워커 환경을 만들 수 있습니다. 장시간 백그라운드 처리를 웹 요청과 분리하는 표준 구성입니다.

자주 틀리는 함정 / Common traps

무중단 배포를 요구하는데 All at once를 고르는 것 — 모든 인스턴스를 동시에 교체해 다운타임이 발생합니다.

📝 이 개념 문제 풀기

Elastic Beanstalk

Compute 10 related questions

PaaS that builds the environment from your uploaded code

이게 뭔가요? / What is this?

Elastic Beanstalk is not a server itself — it is a managed deployment service that assembles real resources like EC2, a load balancer, and Auto Scaling behind the scenes once code is uploaded. It is like hiring a moving company that not only moves the furniture but arranges it, while it can still be rearranged (tuned) by hand afterward.

개요 / Overview

Elastic Beanstalk provisions EC2, ALB, ASG, and monitoring from uploaded code, while the resources remain visible in your account for manual tuning. Signals: "developers should not manage infrastructure", "deploy a web app quickly".

동작 원리 / How it works

Elastic Beanstalk takes a code bundle, detects the platform (Node, Python, Java, Docker), and creates a matching CloudFormation stack. The resulting EC2, ALB, ASG, and CloudWatch alarms remain visible in your account and can be edited directly. Beanstalk does not hide infrastructure; it orchestrates the initial setup for you.

The deployment policy decides whether there is downtime. Immutable launches a parallel set of new instances then swaps, giving the safest rollback; Blue/Green builds a separate environment and swaps CNAMEs.

시험은 무엇을 보는가 / What the exam is testing

Beanstalk answers "developers must ship a web app without touching infrastructure". In container-centric questions ECS or Fargate usually wins, and under a fully serverless requirement Lambda with API Gateway is often the better answer.

시험 포인트 / Exam points

Deployment policies

All at once (fast, has downtime), Rolling, Rolling with additional batch (keeps capacity), Immutable (fresh set, safest rollback), and Blue/Green (swap environment URLs). "Zero downtime" → Immutable or Blue/Green.

Worker environments

A worker environment consuming an SQS queue can be created alongside the web tier — the standard way to split long background processing from web requests.

자주 틀리는 함정 / Common traps

Choosing All at once when zero downtime is required — it replaces every instance simultaneously and causes an outage.

📝 Practice this concept

AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.