Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · DEA-C01

Data characteristics and batch ingestion

DEA-C01 · Lesson 1 of 23 · 4:06

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.

In this lesson

Prepare for the DEA-C01 exam (AWS Certified Data Engineer – Associate). In this lesson: volume, velocity, and variety, structured, semi-structured, and unstructured data, batch ingestion with AWS Glue, Amazon EMR, AWS DMS, the Redshift COPY command, Lambda, and Amazon AppFlow, Glue job bookmarks and file grouping, calling APIs with pagination, rate limits, and stored secrets, and a NAT gateway with a fixed Elastic IP address for allowlists. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Data in every shape

Every night, AnyCompany Games collects the sales of its in-game stores, the reports of three ad networks, and a copy of its player database. Every second, millions of game events arrive from phones and consoles. This lesson covers the first step of every data pipeline on AWS: how the data looks, and how to bring it in by batches, from files, databases, software as a service tools, and web APIs.

Volume, velocity, and variety

Three characteristics shape a pipeline. Volume is how much data there is, from megabytes of ad reports to petabytes of game events. Velocity is how fast it arrives: once a night in a batch, or all the time in a stream. Variety is how many shapes it takes: structured rows in Aurora tables, semi-structured JSON events, and unstructured data such as screenshots and chat logs. Big volumes push you to distributed processing, high velocity to streaming, and wide variety to flexible formats and schemas.

Batch ingestion services

Batch ingestion moves data in blocks, on a schedule. Amazon S3 is the usual landing zone, and AWS Glue jobs read the data, transform it, and write it back. Amazon EMR runs Apache Spark and Hadoop clusters for very large jobs that you want to tune yourself. AWS DMS copies databases, with a full load first and then the ongoing changes, while the Redshift COPY command loads files from S3 in parallel. Lambda functions handle small files and light tasks of up to fifteen minutes, and Amazon AppFlow pulls data from software as a service tools like Salesforce or Zendesk, on demand, on a schedule, or on an event.

Batch options

A few options make batch jobs reliable. Glue job bookmarks remember what a job already processed, for JDBC sources and some S3 formats, so each run reads only the new data. Thousands of small files slow Spark down, so Glue can group small files into larger reads, and does it by itself above fifty thousand files. With AWS DMS, choose a full load for a one-time copy, or a full load plus change data capture to keep a target in sync, but expect a latency that varies, with no SLA. And partition the landing zone by date, compress the files, and pick the schedule from the freshness that people need.

Data APIs

Many sources are web APIs, like the reports of the ad networks. An API returns results page by page, so the job follows the pagination token until the last page. APIs also enforce a rate limit, and answer with a too many requests error when you call too fast, so the job retries with exponential backoff. Keep the API keys in AWS Secrets Manager, never in the code. And pull only what changed since the last run, with a date filter, rather than the whole history each night.

Allowlists and network access

Some partners accept calls only from known IP addresses, on an allowlist. A job in a private subnet reaches the internet through a NAT gateway, which has a fixed Elastic IP address, so the partner allows that one address. In the other direction, a source that blocks inbound traffic must allow the address ranges of the AWS service that connects to it, such as the CIDR blocks that Amazon Data Firehose publishes for a public Redshift cluster. And a Glue connection to a database in a VPC needs a security group with a self-referencing inbound rule, plus a path to S3, such as a gateway endpoint.

Recap

Let's recap. Volume, velocity, and variety shape a pipeline, with structured, semi-structured, and unstructured data. Glue, EMR, DMS, the Redshift COPY command, Lambda, and AppFlow ingest batches. Job bookmarks avoid reprocessing, and grouping fixes small files. APIs need pagination, rate limit handling, and stored secrets. And a NAT gateway gives a fixed Elastic IP address for allowlists.

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.

  1. Every night, AnyCompany Games must copy the tickets of its support tool, a SaaS product, into S3, with no code to maintain. Which service fits best?

    • An AWS Glue job with a custom Python script
    • An AWS DMS task with a full load
    • An Amazon AppFlow flow on a schedule
    • A Kinesis data stream with a producer app
    Show the answer

    An Amazon AppFlow flow on a schedule

    AppFlow connects to software as a service tools, and runs its flows on a schedule, without code. “An AWS Glue job with a custom Python script” would work, but only with a script that the team has to maintain. “An AWS DMS task with a full load” is for copying databases, not software as a service tools. And “A Kinesis data stream with a producer app” is for streams, while this job is one nightly batch.

  2. A nightly Glue job reads the game events that land in S3, but each run processes the whole bucket again, and the target ends up with repeated rows. What should the data engineer do?

    • Add more workers to the Glue job
    • Enable job bookmarks on the Glue job
    • Run the job with the Flex execution class
    • Convert the game events to CSV files
    Show the answer

    Enable job bookmarks on the Glue job

    A job bookmark keeps the state of the last run, so the next run reads only the new files. “Add more workers to the Glue job” would make the job faster, but it would still read everything again. “Run the job with the Flex execution class” is a cheaper way to run jobs that are not urgent, with no effect on what they read. And “Convert the game events to CSV files” would change the format, not which files are processed.

  3. A Glue job in a private subnet must call the API of an ad network, which accepts only calls from the IP addresses on its allowlist. What should the data engineer give to the ad network?

    • The private IP addresses of the Glue workers
    • The CIDR block of the private subnet
    • The address of an S3 gateway endpoint
    • The Elastic IP address of a NAT gateway
    Show the answer

    The Elastic IP address of a NAT gateway

    Traffic from the private subnet leaves through the NAT gateway, so the partner sees its Elastic IP address. “The private IP addresses of the Glue workers” would give private addresses, which change and never reach the internet. “The CIDR block of the private subnet” is a private range too, which the partner never sees. And “The address of an S3 gateway endpoint” is a path to S3 only, not to the internet.