Migration and open table formats
DEA-C01 · Lesson 10 of 23 · 1:18:27
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the DEA-C01 exam (AWS Certified Data Engineer – Associate). In this lesson: AWS Transfer Family over SFTP, FTPS, FTP, or AS2, AWS DataSync from on-premises storage, schema conversion with AWS SCT and DMS Schema Conversion, then data migration with DMS, Apache Iceberg tables with transactions, snapshots, time travel, and schema evolution, and table maintenance with compaction, snapshot expiration, and Amazon S3 Tables. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Closing the data center
AnyCompany Games is closing its last on-premises data center: a file server with ten years of game logs, an Oracle data warehouse, and partners who still send sales reports over SFTP every night. The data lake in S3 has problems too: a change to one table means rewriting whole folders, and nobody can see yesterday's version after a bad job. This lesson covers how to move files with Transfer Family and DataSync, how to convert schemas with AWS SCT and DMS Schema Conversion, and how to manage open table formats like Apache Iceberg.
Moving files
AWS Transfer Family gives partners a managed server for SFTP, FTPS, FTP, or AS2, and stores the files they send directly in Amazon S3 or Amazon EFS. Partners keep their usual tools and their usual protocol, while the files land in the data lake, ready for the next pipeline step. AWS DataSync moves large amounts of data between on-premises storage, like NFS or SMB file servers and HDFS, and AWS storage like S3 or EFS. For on-premises storage, it needs an agent, a virtual machine deployed next to your own storage, and it encrypts the data in transit and verifies its integrity. A task can run on a schedule, no more often than once an hour, and copy only the data that changed since the last run.
Converting schemas
Moving a database to a different engine, like Oracle to Aurora PostgreSQL, or a data warehouse to Redshift, needs its schema converted first: tables, views, procedures, and functions. The AWS Schema Conversion Tool, or AWS SCT, is an application that you install, which converts relational and data warehouse schemas, and its assessment report shows what converts automatically and what needs manual work. DMS Schema Conversion does the same job as a fully managed, web-based feature of AWS DMS, inside a migration project, and it can use generative AI to convert more of what the rules cannot. Both convert the schema, not the data: AWS DMS then moves the data, with a full load, then ongoing replication of the changes. So a typical migration is: assess, convert the schema, apply it to the target, migrate the data with DMS, and test.
Apache Iceberg
An open table format turns a folder of Parquet files in S3 into a real table, and Apache Iceberg works with Athena, Glue, EMR, Redshift, and Spark. Iceberg keeps metadata about every file, so it supports record-level inserts, updates, and deletes, with transactions that stay correct when several jobs write at once. Each commit creates a snapshot, so time travel queries read the table as it was at a point in time or at a snapshot ID, with FOR TIMESTAMP AS OF in Athena. Schema evolution adds, drops, renames, or reorders columns as metadata-only changes, without rewriting any data files. So after a bad job, a time travel query shows the table as it was before the job ran.
Maintaining tables
Streaming writes and frequent changes leave many small files and old snapshots, which slow down queries and cost storage. Compaction combines small files into fewer, larger ones, and in Athena, OPTIMIZE with REWRITE DATA does it on demand. VACUUM in Athena expires old snapshots and removes orphan files, so that the metadata stays small. Amazon S3 Tables stores Iceberg tables in a table bucket, and runs this maintenance for you: compaction is on by default, with a target file size of five hundred twelve megabytes, and snapshot management expires old snapshots, after one hundred twenty hours by default. And unreferenced file removal deletes the objects that no snapshot uses anymore, after a number of days that you set.
A migration plan
Here is the migration at AnyCompany Games: DataSync copies ten years of game logs from the file server to S3, with an agent next to the server, then only the changes until the switch. Transfer Family replaces the old SFTP server, so partners keep sending their reports, now straight into S3. AWS SCT converts the Oracle warehouse schema for Redshift, then DMS loads the data, with ongoing replication until the switch. And the curated tables move to Iceberg in S3 Tables, with automatic compaction, and snapshots for time travel.
Recap
Let's recap. Transfer Family receives files over SFTP, FTPS, FTP, or AS2, straight into S3 or EFS. DataSync moves large file sets from on-premises storage, with an agent, verification, schedules, and only the changes. AWS SCT and DMS Schema Conversion convert schemas, and DMS then migrates the data. Apache Iceberg brings transactions, snapshots, time travel, and schema evolution to files in S3. And compaction, snapshot expiration, and S3 Tables keep Iceberg tables fast.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
AnyCompany Games moves an Oracle database to Aurora PostgreSQL. The team wants a managed, web-based way to convert the schema, with a report of what needs manual work, and nothing to install. What should the team use?
- AWS DataSync with a scheduled transfer task
- An AWS DMS task with a full load and nothing else
- DMS Schema Conversion in a migration project
- The AWS Schema Conversion Tool on a laptop
Show the answer
DMS Schema Conversion in a migration project
DMS Schema Conversion is a fully managed, web-based feature, with an assessment of what converts and what needs manual work. “AWS DataSync with a scheduled transfer task” would move files between storage systems, not convert a schema. “An AWS DMS task with a full load and nothing else” would copy the data, but the target needs its schema first. And “The AWS Schema Conversion Tool on a laptop” would convert the schema too, but it is an application that you must install.
An Iceberg table that Athena queries receives small streaming writes all day, and the queries keep getting slower. The team wants to rewrite the small files into larger ones tonight. What should the data engineer run?
- OPTIMIZE with REWRITE DATA on the table
- A time travel query on the last snapshot
- MSCK REPAIR TABLE on the table
- A new DataSync task to the same bucket
Show the answer
OPTIMIZE with REWRITE DATA on the table
OPTIMIZE with REWRITE DATA compacts the small files into larger ones, so queries read fewer files. “A time travel query on the last snapshot” would read an old version of the table, without changing any file. “MSCK REPAIR TABLE on the table” is for adding Hive-style partitions to a catalog, not for Iceberg files. And “A new DataSync task to the same bucket” would copy files, without combining them.
Partners upload sales reports every night with their existing SFTP clients. The team wants to shut down the old server and receive the files directly in S3, with no servers to manage. What should the data engineer use?
- AWS DataSync with an agent at each partner
- An EC2 instance that runs an SFTP daemon
- Amazon AppFlow on a nightly schedule
- AWS Transfer Family with an SFTP server
Show the answer
AWS Transfer Family with an SFTP server
Transfer Family runs a managed SFTP server, so partners keep their clients, and the files land directly in S3. “AWS DataSync with an agent at each partner” would need an agent in each partner's environment, and partners would have to change how they work. “An EC2 instance that runs an SFTP daemon” would keep a server to patch and run. And “Amazon AppFlow on a nightly schedule” is for software as a service applications, not for SFTP clients.