EFS 공유 파일
여러 EC2가 동시에 마운트하는 관리형 NFS. 다중 AZ 공유의 정답
이게 뭔가요? / What is this?
EFS는 하드디스크가 아니라, 여러 컴퓨터가 동시에 접속해 같은 폴더를 함께 쓰는 네트워크 공유 파일 저장소(관리형 NFS)입니다. 사무실의 공용 파일 서버(NAS)처럼 여러 사람(여러 EC2)이 동시에 같은 파일을 열고 저장할 수 있고, 용량은 넣는 만큼 자동으로 늘어납니다.
개요 / Overview
EFS는 NFS 프로토콜의 완전 관리형 파일 시스템으로, 여러 AZ의 여러 인스턴스가 동시에 마운트할 수 있고 용량이 자동으로 늘고 줄어듭니다. "인스턴스마다 다른 파일이 보인다", "여러 서버가 공유 스토리지 필요" 문제의 표준 정답입니다.
동작 원리 / How it works
EFS는 NFSv4 엔드포인트를 각 AZ의 마운트 타깃(ENI)으로 노출하는 관리형 파일 시스템입니다. 인스턴스는 자기 AZ의 마운트 타깃에 붙고, 뒤쪽 스토리지는 여러 AZ에 걸쳐 복제되어 있습니다. 용량 개념이 없어 쓰는 만큼 늘고 지우는 만큼 줄며, 과금도 저장된 바이트에만 붙습니다.
접근 제어는 두 층입니다 — 마운트 타깃의 보안 그룹이 NFS 포트(2049) 접근을 통제하고, 파일 시스템 정책과 POSIX 권한이 그 위에서 세부를 정합니다. EFS 접근 문제의 원인이 대개 보안 그룹인 이유입니다.
시험은 무엇을 보는가 / What the exam is testing
EFS는 "여러 서버가 같은 파일을 봐야 한다"는 요구의 정답으로 반복 출제됩니다. 특히 로드 밸런서 뒤 여러 EC2가 각자 EBS에 업로드를 저장해 사용자가 파일을 반쯤만 보는 시나리오는 거의 고정 패턴입니다. 비용 문제에서는 수명주기로 IA 클래스에 옮기는 것이 답이 됩니다.
시험 포인트 / Exam points
EFS는 NFS라 리눅스 워크로드용입니다. SMB가 필요한 윈도우 파일 공유는 Amazon FSx for Windows File Server가 정답입니다.
Standard와 One Zone이 있고, 각각 접근이 뜸한 데이터를 IA로 자동 전환하는 수명주기 정책을 지원합니다. 비용 절감 문제에서 "EFS IA로 전환"이 정답으로 나옵니다.
General Purpose가 기본이며 지연시간이 낮습니다. 수천 개 인스턴스가 동시에 접근하는 대규모 병렬 처리에는 Max I/O를 쓰지만 지연시간이 조금 올라갑니다.
자주 틀리는 함정 / Common traps
윈도우 서버의 파일 공유에 EFS를 고르는 것 — EFS는 NFS 전용입니다. SMB와 Active Directory가 필요하면 FSx for Windows File Server입니다.
지연시간이 극도로 중요한 단일 인스턴스 DB 볼륨에 EFS를 쓰는 것 — 네트워크 파일 시스템 오버헤드 때문에 EBS io2가 적합합니다.
Amazon EFS
Managed NFS mounted by many EC2s at once — the answer for shared multi-AZ files
이게 뭔가요? / What is this?
EFS is not a hard drive — it is a shared network file store (managed NFS) that many computers can mount and use at the same time. Like an office shared network drive (NAS), several EC2 instances can open and save the very same files simultaneously, and its capacity grows automatically as data is added.
개요 / Overview
EFS is a fully managed NFS filesystem that many instances across AZs can mount simultaneously, growing and shrinking automatically. It is the standard answer to "users see different files on each instance" and "servers need shared storage".
동작 원리 / How it works
EFS exposes NFSv4 through a mount target (an ENI) in each AZ, backed by storage replicated across AZs. Instances mount the target in their own AZ. There is no provisioned size: it grows and shrinks with usage, and billing follows stored bytes.
Access control has two layers — the mount target's security group gates NFS port 2049, and file system policies plus POSIX permissions refine it above that. This is why EFS access failures usually trace back to a security group.
시험은 무엇을 보는가 / What the exam is testing
EFS recurs as the answer to "several servers must see the same files", most notably the fixed pattern where EC2 instances behind a load balancer each write uploads to their own EBS volume and users see only half their files. In cost questions the answer is a lifecycle policy moving files to the IA class.
시험 포인트 / Exam points
EFS speaks NFS and serves Linux. Windows file shares needing SMB use Amazon FSx for Windows File Server.
Standard and One Zone classes both support lifecycle policies that move infrequently accessed files to IA — the cost-saving answer in EFS questions.
General Purpose is the low-latency default. Max I/O suits thousands of concurrent clients at the cost of slightly higher latency.
자주 틀리는 함정 / Common traps
Choosing EFS for Windows file shares — EFS is NFS only. SMB with Active Directory means FSx for Windows File Server.
Using EFS for a latency-critical single-instance database volume — network filesystem overhead makes EBS io2 the fit.
AWS SAA Hub Pro는 독립 학습 자료이며 Amazon Web Services, Inc.의 공식 서비스가 아닙니다. 시험 정책과 서비스 사양은 AWS 공식 문서를 기준으로 확인하세요.