Fargate

컴퓨팅 연관 문항 21개

컨테이너용 서버리스 실행 환경. EC2 호스트 관리가 사라짐

이게 뭔가요? / What is this?

Fargate는 만질 수 있는 서버가 아니라, 컨테이너를 실행할 때 그 뒤에 있는 EC2 호스트 자체를 통째로 안 보이게 만든 서버리스 실행 환경입니다. 셰프에게 필요한 것이 요리할 부엌뿐이듯, 부엌을 소유하거나 관리할 필요 없이 필요한 만큼 빌려 쓰고 끝나면 반납하는 것과 비슷합니다.

개요 / Overview

Fargate는 ECS·EKS의 시작 유형으로, 컨테이너에 필요한 vCPU·메모리만 지정하면 AWS가 실행 환경을 대신 준비합니다. 클러스터 인스턴스 패치·스케일링이 사라져 "운영 부담 최소화" 요구에 잘 맞습니다.

동작 원리 / How it works

Fargate는 태스크마다 격리된 마이크로VM을 띄워 그 안에서 컨테이너를 실행합니다. 여러분에게는 호스트라는 개념이 없어지고, 태스크 정의에 적은 vCPU·메모리 조합만 존재합니다. 태스크마다 자기 ENI를 받으므로 보안 그룹을 태스크 단위로 적용할 수 있고, 이 점이 EC2 시작 유형(호스트 단위 공유)과 비교해 격리 수준이 높은 이유입니다.

과금은 태스크가 살아 있는 동안의 vCPU·GB 단가입니다. 그래서 사용률이 낮고 간헐적인 워크로드에서는 저렴하지만, 사용률이 높고 24시간 돌아가는 워크로드에서는 같은 자원을 Spot이나 RI로 산 EC2보다 비쌉니다.

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

시험이 Fargate로 확인하는 것은 "운영 부담과 비용의 트레이드오프를 정확히 읽는가"입니다. 두 조건이 같이 나오면 문제에서 대문자로 강조된 쪽(LEAST operational overhead vs MOST cost-effective)이 승자를 결정합니다.

시험 포인트 / Exam points

Lambda와의 선택 기준

둘 다 서버리스지만 Lambda는 15분·이벤트 기반, Fargate는 장시간 실행·상주 서비스에 적합합니다. "컨테이너 이미지를 그대로 써야 한다", "15분을 넘는다"면 Fargate입니다.

비용 트레이드오프

Fargate는 vCPU·메모리 단위 과금이라 사용률이 높고 상시 돌아가는 워크로드에서는 EC2 시작 유형(특히 Spot/RI)보다 비쌉니다. "가장 저렴"을 물으면 EC2 시작 유형이 정답일 수 있습니다.

자주 틀리는 함정 / Common traps

상시 높은 사용률 워크로드에 "가장 저렴"을 물었는데 Fargate를 고르는 것 — 이 조건에서는 EC2 시작 유형 + Spot/RI가 더 쌉니다.

GPU나 특수 커널 파라미터, 데몬셋 성격의 워크로드에 Fargate를 고르는 것 — 호스트 접근이 필요한 요구는 Fargate로 충족되지 않습니다.

📝 이 개념 문제 풀기

AWS Fargate

Compute 21 related questions

Serverless compute for containers; no EC2 hosts to manage

이게 뭔가요? / What is this?

Fargate is not a server you can touch — it is a serverless runtime that hides the underlying EC2 host entirely when running your containers. It is like renting a fully equipped kitchen only for the time you need to cook, with no ownership or upkeep of the kitchen itself.

개요 / Overview

Fargate is a launch type for ECS and EKS: you declare vCPU and memory and AWS provides the runtime. Cluster patching and scaling disappear, which fits "minimize operational overhead".

동작 원리 / How it works

Fargate launches an isolated micro-VM per task and runs your container inside it. The notion of a host disappears; only the vCPU and memory combination in the task definition remains. Each task gets its own ENI, so security groups apply per task — a stronger isolation boundary than the EC2 launch type, where the host is shared.

Billing is per vCPU and GB for as long as the task lives. That makes it cheap for low-utilisation intermittent work and more expensive than the same capacity bought as Spot or Reserved EC2 for steady round-the-clock workloads.

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

Fargate tests whether you read the overhead-versus-cost trade-off precisely. When both appear, the capitalised qualifier in the question — LEAST operational overhead versus MOST cost-effective — decides the winner.

시험 포인트 / Exam points

Choosing between Fargate and Lambda

Both are serverless, but Lambda is event-driven and capped at 15 minutes while Fargate suits long-running services. "Must use the existing container image" or "runs longer than 15 minutes" → Fargate.

Cost trade-off

Fargate bills per vCPU and GB, so for steady high-utilisation workloads it costs more than the EC2 launch type with Spot or RIs. If the question asks for cheapest, EC2 launch type may win.

자주 틀리는 함정 / Common traps

Choosing Fargate when a steady high-utilisation workload asks for the cheapest option — EC2 launch type with Spot or RIs wins there.

Choosing Fargate for GPU workloads, custom kernel parameters, or daemon-style agents — anything needing host access cannot run there.

📝 Practice this concept

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