This lesson combines 5 topics: AWS Glue Data Catalog and Crawlers, Glue Jobs and Job Bookmarks, AWS DMS - Database Migration Service, AWS DataSync and Transfer Family, AppFlow and a summary of Batch Ingestion patterns.
Learning Objectives
- Understand the central role of the Glue Data Catalog in the AWS analytics ecosystem
- Know how crawlers work: classifiers, schema inference, partition detection
- Know how to configure crawlers correctly: schedule, schema change policy, incremental crawl
- Understand the Glue Schema Registry for streaming
- Distinguish Glue job types: Spark ETL, Streaming, Python shell, Ray
- Understand worker types, DPU, Glue versions (4.0/5.0) and Flex execution
- Know how Job Bookmarks enable incremental processing
- Know Glue Studio, triggers, and the important job parameters
- Understand the DMS architecture: replication instance, endpoints, tasks
- Distinguish full load, CDC, and full load + CDC
- Know the role of SCT (Schema Conversion Tool) and DMS Serverless
- Use DMS to bring database data into an S3 data lake (ingestion pattern)
- Understand DataSync: agent, task, supported sources/destinations, sync schedules
- Understand Transfer Family: managed SFTP/FTPS/FTP/AS2 endpoints into S3/EFS
- Distinguish DataSync vs Transfer Family vs Snowball vs S3 CLI
- Choose the right tool for moving files into the data lake per scenario
- Understand Amazon AppFlow: flows, connectors, triggers, transformations
- Know other ingestion paths: Redshift COPY, Athena federated query
- Build the decision tree for choosing a batch ingestion tool
- Recognize common ingestion anti-patterns on the exam
Part 1: AWS Glue Data Catalog and Crawlers
1. Glue Data Catalog — the central metadata store
Concept
The Glue Data Catalog is a metadata store (Hive Metastore-compatible) that describes data: database → table → (schema, S3 location, format, SerDe, partitions). One catalog per region per account.
Key exam point: the catalog holds only metadata — the actual data stays on S3 (or the JDBC source). Dropping a table in the catalog does not delete the data.
Ways to get metadata into the catalog
- Crawler — automatically discovers the schema (most common)
- Athena DDL —
CREATE EXTERNAL TABLE ... - Glue API / CloudFormation / Terraform — infrastructure as code
- Glue ETL job —
enableUpdateCatalogwhen writing output
2. How a Crawler Works
Flow
Data store (S3 / JDBC / DynamoDB / MongoDB...)
│ (1) connect using an IAM role / connection
▼
Classifiers: determine the format (built-in: Parquet, ORC, Avro,
│ JSON, CSV, ...; custom: Grok, XML, JSON path, CSV)
▼
(2) Infer schema + detect partitions from the directory structure
▼
(3) Write/update tables + partitions in the Data Catalog
- The crawler matches similarity across files/prefixes: if schemas are similar → merged into 1 table with many partitions; if different → multiple tables
- Directories in
key=valueform are recognized as partition keys - Custom classifiers run before built-in ones, in the order declared
Schema change policy
When re-crawling and the source schema has changed:
| Option | Behavior |
|---|---|
| Update the table definition | Update the schema in the catalog (default) |
| Add new columns only | Only add new columns, don't change existing ones |
| Ignore change, don't update | Leave the catalog as is |
| Object deletion: delete/deprecate/ignore | Handling when a table disappears from the source |
Incremental crawls and optimizing crawler cost
- Incremental crawls (crawl new folders only): scan only new folders — fast and cheap for data appended by partition
- S3 event-based crawler: the crawler reads S3 event notifications via SQS to crawl only changed objects — "least cost/latency" for large buckets instead of a scheduled full re-crawl
- Replacing crawlers entirely: partition projection (Athena) or a Glue job that runs
ALTER TABLE ADD PARTITIONitself
3. Connections — crawling/ETL on sources outside S3
A Glue Connection holds connection information (JDBC URL, VPC/subnet/security group, credentials from Secrets Manager):
- JDBC: RDS, Redshift, on-premises databases (via VPC/VPN/DX)
- MongoDB, DynamoDB, Kafka (for streaming jobs)
- When Glue runs in a VPC: it needs a self-referencing security group rule and a VPC endpoint/NAT for S3 and the Glue API — VPC connectivity errors are a common troubleshooting question
4. Glue Schema Registry (for streaming)
- A store of Avro/JSON Schema/Protobuf schemas with versioning and compatibility modes (BACKWARD, FORWARD, FULL...)
- Producers/consumers (MSK, Kinesis, Flink) serialize with a schema ID — the registry validates whether a new schema is compatible before allowing it to be registered
- Unlike the Data Catalog: the Schema Registry is for streaming messages, the Data Catalog is for datasets at rest
5. Typical scenario questions
| Scenario | Answer direction |
|---|---|
| New partitions every hour, Athena doesn't see the new data | Crawler schedule/event-based, MSCK REPAIR, or partition projection |
| Crawler creates hundreds of tables instead of 1 | Inconsistent S3 structure; enable "Create a single schema for each S3 path" / standardize the layout |
| Crawling a 10TB bucket every day is expensive | Incremental crawl or S3 event-based crawler |
| Log files in an unusual format (custom text) | Custom classifier (Grok pattern) |
| Need schema validation for Kafka messages | Glue Schema Registry with compatibility mode |
Part 2: Glue Jobs and Job Bookmarks
1. Glue Job Types
| Type | Engine | Use case | Billing |
|---|---|---|---|
| Spark ETL | Apache Spark (distributed) | Batch ETL on large data | DPU-hour, min 1 minute |
| Spark Streaming | Spark Structured Streaming | Read Kinesis/Kafka in micro-batches | DPU-hour |
| Python shell | Plain Python (1 node) | Light tasks: API calls, small files, glue code | 0.0625 or 1 DPU |
| Ray | Ray (distributed Python) | Parallel Python processing without Spark | Ray workers |
Glue versions: Glue 4.0 (Spark 3.3, Python 3.10), Glue 5.0 (12/2024 — Spark 3.5, Python 3.11, Java 17, newer Iceberg/Hudi/Delta support, faster). Choose the latest version unless you have legacy dependencies.
Worker types
| Worker | DPU | Notes |
|---|---|---|
| G.1X | 1 (4 vCPU, 16GB) | Default, regular workloads |
| G.2X | 2 (8 vCPU, 32GB) | Jobs that need more memory |
| G.4X / G.8X | 4 / 8 | Heavy transforms, large data (Glue 3.0+) |
| G.025X | 0.25 | Only for small streaming jobs |
- Auto Scaling (Glue 3.0+): the job adds/removes workers based on load — set max workers to avoid over-provisioning
- Flex execution: runs on AWS spare capacity, cheaper (~34%) for non-time-sensitive jobs (tests, batch with no SLA) — also a "most cost-effective" answer for slow-tolerant batch
2. Job Bookmarks — incremental processing
The problem
A job runs daily on s3://lake/raw/orders/ — how do you avoid reprocessing files that were already processed?
The mechanism
A job bookmark stores the state of the previous run (by S3 files read / a bookmark key column for JDBC), and the next run reads only the new part.
| Mode | Behavior |
|---|---|
| Enable | Incremental processing — only new data since the last successful run |
| Disable | Always processes everything (default) |
| Pause | Processes new data but does not update the bookmark (used when reprocessing a specific range with job-bookmark-from/to) |
- For S3: the bookmark tracks timestamps/the list of objects read
- For JDBC: needs a monotonically increasing column (primary key, timestamp) as
jobBookmarkKeys - Reset bookmark: rerun from the beginning (
job-bookmark-reset) when you need to reprocess everything - The bookmark is updated only when the job finishes successfully — if the job fails, the next run re-reads from the old point (at-least-once → downstream must be idempotent)
# In the script: bookmarks require transformation_ctx on every source/sink
datasource = glueContext.create_dynamic_frame.from_catalog(
database="sales_db",
table_name="orders",
transformation_ctx="datasource0" # REQUIRED for bookmarks to work
)
Common exam trap: bookmarks are enabled but "the job still reprocesses everything" → transformation_ctx is missing, or job.init/job.commit is not called in the script.
3. Triggers and Running Jobs
| Trigger method | Details |
|---|---|
| Schedule trigger | Cron in Glue (e.g., cron(0 2 * * ? *)) |
| Conditional trigger | Runs when another job/crawler SUCCEEDED/FAILED — build chains in Glue Workflows |
| On-demand | API/console/Step Functions/Airflow |
| EventBridge | S3 file arrives → EventBridge rule → Glue workflow/job |
Job parameters worth remembering
--job-bookmark-option: job-bookmark-enable/disable/pause--enable-metrics,--enable-continuous-cloudwatch-log: observability--enable-auto-scaling--additional-python-modules: install pip libraries at runtime- Retry:
MaxRetriesin the job definition; default timeout 2880 minutes (48h) — set it lower
4. Glue Studio and Related Tools
- Glue Studio: a visual drag-and-drop interface to build ETL jobs (source → transform → target) that generates PySpark code — "no-code/low-code ETL"
- Glue interactive sessions / notebooks: develop and test PySpark interactively, billed per minute
- Glue DataBrew: no-code data preparation for data analysts — 250+ transformations through the UI (profile, clean, normalize); differs from Studio in targeting business users/analysts, without generating Spark code for you to manage
- Quick comparison: visual ETL for engineers → Studio; data prep for analysts who don't code → DataBrew
5. Cost and Quick Limits
- Billing: DPU-hour, per second, minimum 1 minute (Glue 2.0+)
- Python shell is cheapest for small tasks — don't use a 10-DPU Spark job to copy 1 file
- Concurrency:
Max concurrent runsper job — increase it when you need to run many date partitions in parallel
Part 3: AWS DMS - Database Migration Service
1. What Is DMS
AWS DMS replicates data between databases/data stores: on-premises ↔ AWS, DB ↔ S3/Kinesis... The source keeps running normally during the migration (minimal downtime).
Three task types
| Type | Behavior | Use case |
|---|---|---|
| Full load | Copies all existing data | One-time migration, freeze acceptable |
| CDC only | Streams only changes (reads the transaction log: binlog/WAL/redo log) | Source was already loaded some other way |
| Full load + CDC | Loads everything, then keeps streaming changes | Zero-downtime migration — most common |
CDC (Change Data Capture) reads the source's transaction log, so it barely affects the source workload (requires binlog/logical replication enabled on the source).
2. DMS for Data Engineering — DB → Data Lake
An important DEA pattern: continuously replicate an operational database into S3:
- The S3 target can write Parquet directly (
DataFormat=parquet) — saves a conversion step - CDC files contain an Op column (
Insert/Update/Delete) + timestamp → downstream must apply merge logic (e.g., MERGE INTO Iceberg) to get the latest state - To stream changes in real time to other consumers: target Kinesis Data Streams
3. Schema Conversion Tool (SCT)
- DMS moves data; it does not convert schemas between different engine types.
- SCT converts schemas + code (stored procedures, functions) between different engines: Oracle → Aurora PostgreSQL, SQL Server → Aurora MySQL, Teradata/Netezza → Redshift (data warehouse migration)
- Homogeneous (MySQL → Aurora MySQL): no SCT needed (use a native dump or DMS directly)
- Heterogeneous (Oracle → PostgreSQL): SCT first (schema), DMS after (data)
- SCT also has data extraction agents for large warehouses (combined with Snowball when the network is limited)
4. DMS Serverless and Operational Features
- DMS Serverless: no instance class to choose — declare min/max DCU and DMS scales automatically; a good fit when you don't want capacity planning ("least operational overhead")
- Multi-AZ replication instance: synchronous standby for production migrations
- Table mappings + transformation rules (JSON): select schemas/tables (
include/exclude), rename, filter columns - Validation: DMS data validation compares source and target
- Large migration/weak network: SCT + AWS Snowball Edge move the full load offline, DMS CDC catches up on later changes
5. Choosing a Database Ingestion Tool — Comparison
| Need | Tool |
|---|---|
| Continuously replicate a DB (CDC) into a lake/warehouse | DMS |
| One-time copy of a JDBC table into S3, transforming along the way | Glue job (JDBC source) |
| Aurora/RDS → Redshift with no code | Zero-ETL integration (Aurora MySQL/PostgreSQL, RDS MySQL → Redshift) |
| Migrate an Oracle schema → Aurora | SCT (then DMS for data) |
| File server/NFS → S3 | DataSync (next lesson) |
Zero-ETL is worth remembering: a managed integration where data from Aurora shows up in Redshift within seconds, with no DMS/Glue pipeline to build — the "least operational overhead" answer for analytics on transactional data.
Part 4: AWS DataSync and Transfer Family
1. AWS DataSync
Concept
A service for automated, scheduled transfer of large volumes of files/objects between on-premises ↔ AWS or between AWS storage services.
Key characteristics
- Agent: a VM (VMware/Hyper-V/KVM/EC2) placed near the on-prem source; AWS↔AWS needs no agent
- Automated: scheduling (at most hourly), incremental (transfers only changes), retry, data verification (checksum), preserves metadata/permissions (POSIX/SMB ACL)
- Bandwidth: can be throttled; 1 task up to 10 Gbps
- Filters (include/exclude patterns) to select files
- Runs over the Internet (TLS) or Direct Connect/VPN with a VPC endpoint
- Billed per GB transferred
Typical DEA use cases
- Periodically sync an on-prem file server (NFS/SMB) into the S3 raw zone
- Migrate HDFS from an on-prem Hadoop cluster into S3 (modernizing to EMR/Glue)
- Move data between S3 buckets cross-account/cross-region with verification
2. AWS Transfer Family
Concept
A managed SFTP / FTPS / FTP / AS2 endpoint that lets external partners upload/download files, stored directly in S3 or EFS — replacing a self-operated SFTP server.
Key characteristics
- No servers to manage; public endpoint or inside a VPC (internal)
- Authentication: service-managed (SSH key), custom identity provider (Lambda — integrates with LDAP/DB), AWS Directory Service
- Each user maps to an IAM role + home directory (S3 prefix) — isolates partners
- AS2 for B2B EDI (retail, logistics)
- Billing: per endpoint-hour + GB transferred → expensive if left on 24/7 with little use
- Combine with S3 events → when a partner finishes uploading, trigger Glue/Lambda processing (event-driven ingestion)
3. Comparing File Transfer Options
| DataSync | Transfer Family | Snowball Edge | S3 CLI/SDK | |
|---|---|---|---|---|
| Scenario | Large-volume, scheduled storage↔storage sync | External partners send files via SFTP/AS2 | Petabytes / weak network, offline | Ad-hoc scripts, apps writing directly |
| Who initiates | You (task) | The partner (SFTP client) | Physical shipping | You |
| Agent/device | Agent VM (on-prem) | None | Device shipped by AWS | None |
| Incremental | Yes | N/A (pushes individual files) | No (one-shot) | Write it yourself |
| Data verification | Yes (checksum) | TLS | Yes | Write it yourself |
Quick selection rules
- "Partner/vendor sends files via SFTP" → Transfer Family
- "Periodically sync on-prem NFS/SMB/HDFS into S3" → DataSync
- "Hundreds of TB, limited bandwidth, deadline" → Snowball Edge (rough rule: if a network transfer would take > 1 week, consider Snowball)
- "Internal application writes directly" → SDK/CLI (multipart upload, Transfer Acceleration if far away)
What about Storage Gateway?
File Gateway is for ongoing hybrid access (on-prem mounts NFS/SMB, local cache, data lives in S3) — it is not a migration/batch transfer tool. The question says "keep using the on-prem file share but with data on S3" → File Gateway; "move/sync data into S3" → DataSync.
4. Amazon AppFlow (intro — details tomorrow)
Moves SaaS data (Salesforce, SAP, Google Analytics, ServiceNow...) into S3/Redshift with no code — covered in depth tomorrow together with the remaining ingestion patterns.
Part 5: AppFlow and a Summary of Batch Ingestion Patterns
1. Amazon AppFlow
Concept
A no-code service for moving data between SaaS applications and AWS: Salesforce, SAP OData, ServiceNow, Zendesk, Slack, Google Analytics, Marketo... → S3, Redshift (and the reverse direction: S3 → Salesforce...).
Key characteristics
- No code, no infrastructure — configure the flow and you're done
- Triggers: on-demand, schedule (incremental by a time field), event-driven (e.g., Salesforce platform events)
- Light transformations within the flow: masking, filter, validate, field mapping
- Can write Parquet to S3; optionally registers in the Glue Data Catalog automatically
- Security: KMS encryption; PrivateLink for supported SaaS — data does not traverse the public Internet
- Billing: per flow run + GB processed
Exam cue: "Salesforce/SAP data into S3/Redshift, no code, scheduled" → AppFlow. Don't choose a Glue custom connector or a Lambda calling the API when AppFlow has a built-in connector (higher operational overhead).
2. Other Ingestion Paths to Know
| Method | When |
|---|---|
| Redshift COPY from S3 | Batch loading into Redshift — the standard way, parallel by slice; compressed files, split ~ multiple of slices |
| Athena Federated Query | Query external sources in place (DynamoDB, RDS, on-prem via Lambda connector) — ad-hoc, not a replication pipeline |
| Glue JDBC ingestion | Pull tables from a database when you need to transform in the same job |
| Lambda + API | API sources with no connector; small volume; event-driven |
| Kinesis/Firehose | Streaming data (Week 1 Day 3) |
3. Batch Ingestion Decision Tree (week summary)
4. Common Anti-patterns on the Exam
- Writing your own Lambda to call the Salesforce API when AppFlow has a connector → unnecessary code, contradicts "least operational overhead"
- DMS to move files (not databases) → wrong tool; DMS works with databases/logs
- Transfer Family for internal sync → Transfer Family is a managed endpoint for external parties to push; use DataSync internally
- INSERTing rows one at a time into Redshift instead of COPY from S3 → slow and expensive; always COPY in batches
- Running a full crawler every 5 minutes on a huge bucket → event-based crawler or partition projection
- A single giant file for COPY/Spark → split it to parallelize (Redshift: multiple of slices; Spark: ~128MB-1GB/file)
5. Ingestion Design Checklist (use during the exam)
- Frequency: one-time / periodic / continuous (CDC, streaming)?
- Source: DB / SaaS / file / API / stream?
- Who initiates: do we pull, or does the other side push?
- Volume vs bandwidth: do we need a physical device?
- Target format: Parquet + partitions from the start if possible (Firehose/AppFlow/DMS can all write Parquet)
- Security: private connectivity (PrivateLink, VPN/DX), KMS, Secrets Manager for credentials
Review Questions
-
Does dropping a table in the Glue Data Catalog delete the data on S3?
Show answer
No. The catalog stores only metadata (schema, location, partitions). The S3 data is completely independent — you can recreate a table pointing at the same location. Conversely, deleting S3 data does not update the catalog automatically (the "orphan" table remains until a crawler/DDL cleans it up).
-
What will a crawler running on a bucket with
s3://lake/orders/year=2026/month=01/create in the catalog?Show answer
One table
orderswith partition keysyear,month(recognized from the Hive-stylekey=valuedirectory structure) and the corresponding partitions. Column schema is inferred from file contents (Parquet is self-describing; CSV/JSON via classifiers). -
A very large bucket, with new data landing randomly across many prefixes. How do you keep the catalog up to date with the lowest crawl cost?
Show answer
S3 event-based crawler: enable S3 event notifications → SQS queue; the crawler reads the queue and crawls only changed objects/prefixes instead of scanning the whole bucket. Incremental crawl ("crawl new folders only") fits when new data always lands in new folders; event-based is more general and the cheapest for large buckets.
-
When do you need a custom classifier?
Show answer
When built-in classifiers don't recognize the format correctly: custom text logs (use a Grok pattern), XML with a specific row tag, JSON that needs a JSON path to extract the right element, CSV with special rules (unusual delimiter/header). Custom classifiers are tried before built-in ones, in the order declared in the crawler.
-
How does the Glue Schema Registry differ from the Glue Data Catalog?
Show answer
Data Catalog: metadata for datasets at rest (tables on S3/JDBC) serving query engines. Schema Registry: manages schema versions for streaming messages (Avro/JSON Schema/Protobuf) for Kafka/MSK/Kinesis/Flink, enforcing a compatibility mode (BACKWARD/FORWARD/FULL) as the schema evolves so producers/consumers don't break when the schema changes.
-
A Glue job running in a VPC cannot connect to RDS. What are the common causes?
Show answer
(1) The connection's security group lacks a self-referencing inbound rule (Glue ENIs talk to each other); (2) the RDS SG doesn't allow traffic from the Glue SG; (3) the subnet has no route to S3/the Glue API — needs an S3 gateway endpoint or NAT; (4) wrong credentials — use Secrets Manager. Check by running the connection test in the Glue console.
-
A nightly job on S3 must skip data already processed. What do you configure, and what is required in the code?
Show answer
Enable the job bookmark (
--job-bookmark-option job-bookmark-enable), and in the script every source/sink must have a uniquetransformation_ctx, together withjob.init()/job.commit(). The bookmark records which objects were read; the next run reads only new files. Missingtransformation_ctxis the common reason a bookmark "doesn't take effect". -
When do you choose a Python shell job over a Spark job?
Show answer
When the task doesn't need distributed processing: API calls, small file/metadata operations, running SQL against a warehouse, orchestration glue code. Python shell runs on 1 node with 0.0625-1 DPU — much cheaper than a Spark job with a minimum of 2 workers. Use Spark when large data needs parallel transformation.
-
A nightly batch job with no strict SLA; you want to reduce Glue cost. Which option?
Show answer
Flex execution — the job runs on spare capacity at ~34% lower DPU-hour price, in exchange for no guarantee on start/completion time. Combine with Auto Scaling to avoid over-provisioning workers. This is the "most cost-effective" answer for non-urgent batch; keep standard for jobs with an SLA.
-
You need to reprocess all historical data once because the transform logic changed. How do you handle the bookmark?
Show answer
Reset the job bookmark (console/API ResetJobBookmark or --job-bookmark-reset) and rerun — the job reads from the beginning. If you only need to reprocess a range: use bookmark pause with job-bookmark-from/job-bookmark-to to re-read a specific run range without disturbing the current state.
- A Glue job fails midway after writing part of its output. What happens on the next run (bookmark enabled), and what should you watch out for?
Show answer
The bookmark commits only when the job succeeds, so the next run re-reads from the point after the last successful run → data from the failed run may be processed again (at-least-once). Downstream must be idempotent: overwrite by partition, use dedupe keys, or write into an Iceberg table with MERGE — avoid blind appends that lead to duplicates.
- How do DataBrew and Glue Studio differ?
Show answer
Glue Studio: visual ETL for data engineers, generates PySpark code, runs as a full Glue job. DataBrew: no-code data preparation for analysts — data profiling, 250+ built-in transforms through the UI, exporting a "recipe" that can run as a job. The question emphasizes "business analysts, no coding" → DataBrew; "ETL pipeline, engineers" → Studio/Glue job.
- Migrating a production database to AWS with minimal downtime — which DMS task type?
Show answer
Full load + CDC: DMS copies all existing data while capturing changes that occur during the load (reading the transaction log), then keeps applying changes until the target catches up — cutover takes only minutes. A pure full load loses new writes made during the copy; CDC only lacks historical data.
- Migrating Oracle to Aurora PostgreSQL — which tools, in which order?
Show answer
Heterogeneous migration: (1) AWS SCT converts the schema, PL/SQL, and objects to PostgreSQL — reporting what must be fixed by hand; (2) AWS DMS (full load + CDC) moves the data. DMS does not convert schemas between different engine types, so leaving out SCT is wrong.
- DMS writes CDC to S3 — what must downstream take care of to get the latest data state?
Show answer
CDC files are a sequence of I/U/D events (the Op column), not a snapshot. Downstream must merge: take the latest record per key + timestamp and apply deletes. The modern approach: MERGE INTO an Iceberg table with Glue/Athena; or a dedupe job by window. Write Parquet directly from DMS (DataFormat=parquet) to skip the conversion step.
- When do you choose DMS Serverless over a replication instance?
Show answer
When you don't want capacity planning: variable/unpredictable workloads, or a team that wants "least operational overhead". Declare min/max DCU and DMS scales automatically. A replication instance fits when you need fine-grained control (instance class, some engines/features only available on instances) or a stable long-term workload whose cost can be optimized.
- You need data from Aurora MySQL to appear in Redshift for BI within seconds, without operating a pipeline. Solution?
Show answer
Zero-ETL integration Aurora → Redshift — AWS continuously replicates into Redshift (managed), with latency of seconds, no DMS/Glue to build. This is the "near real-time + least operational overhead" answer. DMS with a Redshift target also works but you must operate the task/instance yourself.
- A company needs to sync 50TB from on-prem NFS into S3, nightly, transferring only changed files, with verification. Solution?
Show answer
AWS DataSync: install an agent VM next to the NFS server, create a task with an S3 destination, schedule it nightly. DataSync is automatically incremental (only changed files), does checksum verification, compresses and parallelizes — meeting all 3 requirements without writing scripts. Self-managed S3 CLI/rsync has no verification/managed scheduling; Snowball only fits one-shot transfers.
- Dozens of retail partners send order files via SFTP every day. What is the least operationally heavy way to receive them into the data lake?
Show answer
An AWS Transfer Family (SFTP) endpoint writing directly to S3: one user + home prefix per partner, with no EC2 SFTP server to operate. Combine with S3 event notifications to trigger the processing pipeline when files arrive. A question emphasizing "partner + SFTP" is almost certainly Transfer Family.
- Migrate 500TB from a data center with a 100 Mbps link, to be done within 1 month. Solution?
Show answer
100 Mbps ≈ ~1TB/day theoretical → 500TB needs 500+ days over the network — not feasible. Use AWS Snowball Edge (each device ~80TB usable, several devices in parallel), then use DataSync/DMS CDC to sync changes made in the meantime. Rule: if network transfer time is measured in weeks/months → switch to physical devices.
- How does DataSync differ from File Gateway (Storage Gateway)?
Show answer
DataSync = a tool to move/sync data (scheduled tasks, one direction per run) — used for migration and periodic ingestion. File Gateway = ongoing hybrid access: on-prem mounts an NFS/SMB share, data is stored in S3, with a local cache for frequently read files. "Move data" → DataSync; "keep using on-prem file share backed by S3" → File Gateway.
- What ways can Transfer Family authenticate users when the company wants to use its internal LDAP?
Show answer
Three options: (1) service-managed (SSH public key, managed in Transfer Family), (2) AWS Directory Service (AD), (3) custom identity provider — Lambda (or API Gateway) receives the auth request and checks it against any system such as internal LDAP/database. For LDAP → a custom identity provider with Lambda.
- Marketing needs Salesforce data landed in S3 every hour as Parquet, registered in the Glue Catalog, without writing code. Solution?
Show answer
Amazon AppFlow: a Salesforce → S3 flow, scheduled hourly in incremental mode, Parquet output format, with the Glue Data Catalog integration option enabled. No Lambda/Glue custom code needed — AppFlow is the managed connector for SaaS.
- What is the fastest way to load 2TB of batch data from S3 into Redshift — which command, and how do you optimize the files?
Show answer
The COPY command (not INSERT): Redshift loads in parallel by slice. Optimize: split into many files of roughly equal size, with the number of files a multiple of the cluster's slice count, compressed (gzip/zstd), under the same prefix so COPY scans once. A single file means only 1 slice does the work.
- When is Athena Federated Query more appropriate than replicating data to S3?
Show answer
When you need ad-hoc/infrequent queries on external sources (DynamoDB, RDS, CloudWatch Logs...) without building a pipeline: Athena uses a Lambda connector to query in place and join with S3 data. If queries repeat frequently over large volumes → replicating into the lake (DMS/Glue) is cheaper and faster (federated queries are slow and consume source resources).
- SaaS data contains PII, must not traverse the public Internet, and some fields must be masked. How does AppFlow handle this?
Show answer
AppFlow supports PrivateLink with compatible SaaS (e.g., Salesforce Private Connect) so traffic stays within the AWS network, encryption with an optional KMS key, and a masking transformation inside the flow to hide PII fields before writing to S3.
- Pick a tool for each source: (a) daily SAP OData; (b) continuous CDC from on-prem PostgreSQL; (c) one-time 300TB HDFS over a 10 Gbps link; (d) partners sending CSV via SFTP.
Show answer
(a) AppFlow (SAP OData connector). (b) DMS full load + CDC. (c) 300TB over 10 Gbps ≈ 3-4 days theoretical — feasible over the network: DataSync (supports HDFS); if bandwidth must be shared or the deadline is tight, Snowball. (d) Transfer Family SFTP endpoint → S3.
Hands-on Exercises
Part 1: AWS Glue Data Catalog and Crawlers
- Create a crawler pointing at the raw bucket from Day 1, run it, and view the table it generates in the catalog
- Add a partition folder
year=2026/month=02/with a new file, rerun the crawler in incremental mode - Query the table via Athena and confirm the partition is recognized
- Read Scheduling a crawler to keep the Data Catalog in sync
Part 2: Glue Jobs and Job Bookmarks
- Create a Glue Studio job that reads the Day 1 CSV table → transforms (drop a column) → writes Parquet to curated
- Enable the job bookmark, run twice, add a new file between the 2 runs, and confirm only the new file is processed
- Try a DataBrew project with a sample dataset and view the data profile
- Read Glue job parameters reference
Part 3: AWS DMS - Database Migration Service
- Redraw the DMS full load + CDC pipeline diagram from RDS MySQL → S3 → Glue merge → Iceberg
- In a lab (if you have RDS): create a small DMS replication instance + a full load task for one table to S3, inspect the output files and the Op column
- Read table mapping JSON: write a rule that includes only schema
salesand excludes tablesaudit_% - Read Zero-ETL integrations
Part 4: AWS DataSync and Transfer Family
- Create an S3→S3 DataSync task between 2 buckets (no agent needed) and test it with an include filter
*.csv - Calculate the time to transfer 100TB over a 1 Gbps link (hint: ~10 days theoretical) — decide whether Snowball is needed
- Sketch the architecture Transfer Family SFTP → S3 raw → S3 event → Glue workflow
- Read the DataSync supported locations table
Part 5: AppFlow and a Summary of Batch Ingestion Patterns
- Browse the list of AppFlow connectors — note 5 familiar connectors
- Draw the ingestion decision tree from section 3 from memory
- Write a sample COPY statement loading Parquet from S3 into Redshift with an IAM role
- Review the batch ingestion Parts before taking the end-of-week quiz
References
- AWS Glue Data Catalog
- Defining crawlers
- Accelerating crawls using S3 event notifications
- AWS Glue Schema Registry
- AWS Glue jobs
- Tracking processed data using job bookmarks
- AWS Glue versions
- AWS Glue DataBrew
- What is AWS DMS
- Using S3 as a target for DMS
- AWS Schema Conversion Tool
- AWS DMS Serverless
- AWS DataSync
- AWS Transfer Family
- AWS Snowball Edge
- Storage Gateway — File Gateway
- Amazon AppFlow
- Redshift COPY best practices
- Athena Federated Query