DB 마이그레이션

마이그레이션·전송 연관 문항 21개

데이터베이스를 최소 다운타임으로 이전

이게 뭔가요? / What is this?

DMS는 새로운 데이터베이스가 아니라, 기존 데이터베이스를 서비스 중단 없이 새로운 데이터베이스로 옮겨주는 관리형 복제·이전 서비스입니다. 원래 사무실이 계속 영업하는 동안 서류를 조금씩 새 사무실로 옮기고, 마지막 순간에만 잠깐 문을 닫고 전환하는 이사 도우미와 같습니다.

개요 / Overview

DMS는 원본 DB가 계속 서비스하는 동안 데이터를 복제해 옮기고, 전환 시점에만 잠깐 멈춥니다. 엔진이 다르면 Schema Conversion Tool과 함께 씁니다.

동작 원리 / How it works

DMS는 복제 인스턴스를 띄워 소스 DB에서 읽고 대상 DB에 씁니다. 전체 로드로 기존 데이터를 옮긴 뒤 CDC(변경 데이터 캡처)로 그 사이 발생한 변경을 계속 따라가므로, 소스는 마이그레이션 중에도 계속 서비스할 수 있습니다. 최종 전환 시점에만 애플리케이션을 새 DB로 돌리면 되어 다운타임이 몇 분 수준으로 줄어듭니다.

엔진이 다르면 스키마와 저장 프로시저를 변환해야 하므로 Schema Conversion Tool(SCT)을 먼저 씁니다. DMS는 데이터를 옮기고 SCT는 구조를 옮긴다는 분업입니다.

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

시험 신호는 "최소 다운타임으로 데이터베이스를 옮겨라"이며, 여기서 두 갈래가 갈립니다. 소스와 대상 엔진이 같으면 DMS만으로 충분하고, 다르면(Oracle → Aurora PostgreSQL 등) Schema Conversion Tool로 스키마·저장 프로시저를 먼저 변환해야 합니다. 이 SCT 단계를 빠뜨린 선택지가 이기종 문항의 대표적 오답이며, 반대로 덤프·복원을 제안하는 선택지는 다운타임 요구를 위반해 탈락합니다.

시험 포인트 / Exam points

동종 vs 이기종

Oracle→Oracle 같은 동종 이전은 DMS만으로 충분합니다. Oracle→Aurora PostgreSQL 같은 이기종은 SCT로 스키마를 변환한 뒤 DMS로 데이터를 옮깁니다.

지속적 복제(CDC)

변경 데이터 캡처로 원본의 변경을 계속 따라가므로 다운타임을 몇 분 수준으로 줄일 수 있습니다.

자주 틀리는 함정 / Common traps

이기종 이전에 DMS만 쓰려는 선택지 — 스키마 변환이 빠져 있습니다.

덤프·복원으로 이전하려는 선택지 — 다운타임 요구를 만족하지 못합니다.

📝 이 개념 문제 풀기

AWS DMS

Migration 21 related questions

Migrates databases with minimal downtime

이게 뭔가요? / What is this?

DMS is not a new database — it is a managed replication and migration service that moves data from an existing database into a new one without stopping service. It works like a moving assistant who gradually relocates files to the new office while the old one keeps operating, closing the doors only for a brief moment at the very end to complete the switch.

개요 / Overview

DMS replicates while the source keeps serving, pausing only at cutover. When engines differ, it pairs with the Schema Conversion Tool.

동작 원리 / How it works

DMS runs a replication instance that reads from the source database and writes to the target. A full load moves existing data, then change data capture follows subsequent changes, so the source keeps serving throughout. Only at cutover does the application repoint, shrinking downtime to minutes.

Different engines need schema and stored procedures converted, so the Schema Conversion Tool comes first. The division is that SCT moves structure and DMS moves data.

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

The signal is "migrate the database with minimal downtime", and it forks twice. Matching engines need only DMS; differing engines (Oracle to Aurora PostgreSQL, say) need the Schema Conversion Tool first for schema and stored procedures. Options omitting that SCT step are the classic heterogeneous distractor, while dump-and-restore options fail the downtime requirement outright.

시험 포인트 / Exam points

Homogeneous vs heterogeneous

Homogeneous moves such as Oracle to Oracle need only DMS. Heterogeneous moves such as Oracle to Aurora PostgreSQL convert the schema with SCT first, then move data with DMS.

Continuous replication (CDC)

Change data capture keeps following the source, shrinking downtime to minutes.

자주 틀리는 함정 / Common traps

Using only DMS for a heterogeneous migration — schema conversion is missing.

Migrating by dump and restore — it cannot meet the downtime requirement.

📝 Practice this concept

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