Let’s Get Certified
Module 05 / 18 · Data ingestion and transformation

Ship pipeline code against a repeatable contract

A Lambda consumer overwhelms a database during backfill.

Ship pipeline code against a repeatable contract

A Lambda consumer overwhelms a database during backfill. Measure safe concurrent connections and reserve concurrency at the worker. Put event contracts and deployment templates under version control. Test empty, duplicate and out-of-order input before promoting the same built artifact between environments.

Decisions to rehearse

Reserved concurrency
A per-function concurrency ceiling bounds simultaneous downstream work.
SAM template
AWS SAM expresses serverless resources and their event bindings in version-controlled infrastructure.
EFS mount
An EFS file system provides shared persistent files across eligible Lambda execution environments.
Keyed lookup structure
Indexing by a stable key avoids repeatedly scanning a complete reference list.
Fixture-based contract test
Known input and expected output expose behavioral regressions before release.

Practise each AWS skill

These references use the skill numbers in the AWS guide.

  1. 1.4.1 · Profile the hottest transform and compare its output and runtime before and after a keyed lookup replaces a scan.
  2. 1.4.2 · Set a Lambda concurrency ceiling from the destination's measured capacity and measure cold starts separately.
  3. 1.4.3 · Select SQL, Python or distributed Spark for three transformations with different data volumes and dependency needs.
  4. 1.4.4 · Put a deterministic fixture, error log and performance metric beside the transform's versioned code.
  5. 1.4.5 · Review a proposed infrastructure diff for new permissions, changed destinations and replacement of persistent state.
  6. 1.4.6 · Describe the function, event binding and queue in one SAM application; check the deployed binding in a test environment.
  7. 1.4.7 · Compare per-environment temporary disk with a mounted shared file system when two invocations need persistent shared files.
  8. 1.4.8 · Recreate a test stack from CloudFormation or synthesized CDK and inspect the change set before promotion.
  9. 1.4.9 · Design a CI gate that catches both an invalid input contract and a deployment that cannot write its destination.
  10. 1.4.10 · Explain where a distributed join exchanges keys and how one hot key can leave most workers idle.
  11. 1.4.11 · Choose a dictionary for identity lookup, a tree for hierarchy or a graph for dependencies, and explain the access cost.

Official skills for this topic

Work through the decision

A worker opens one database connection per invocation. Provisioned concurrency made cold starts faster, yet the database still refuses connections during backfills. Which limit is missing?

Check your reasoning

Measure safe concurrent connections and cap overlapping invocations or workers accordingly. Provisioned concurrency prepares execution environments. Reserved concurrency can bound simultaneous executions for one Lambda function.

DEA-C01 recording · 38:10

Related recording chapters: 45:22.

Related lesson in Fabric Data Engineer Associate · Promote a reviewed Fabric change.

Knowledge check

Ship pipeline code against a repeatable contract quiz

Answer 3 questions. Check each answer for an explanation.