Glue, Lake Formation and access
Separate discovery from transformation
Glue crawlers discover metadata; Glue ETL jobs extract, transform and load records. Neither a catalog entry nor a successful crawler proves data quality. Define a contract: unique order ID, valid event date, nonnegative integer cents, known currency. Convert valid CSV rows to curated Parquet with a job, quarantine rejects, record counts and reconcile totals. Keep a job run ID and source object version for reproducibility.
Build an explicit access model
Lake Formation can govern cataloged data through table, column and supported row/cell filters with integrated engines. IAM still controls service API access; S3 and KMS policies matter for underlying access paths. Register the relevant location, set the permissions model, grant only the needed table access and verify with the actual analyst role. Hybrid access mode allows IAM and Lake Formation paths for different principals; review IAMAllowedPrincipals and direct S3 permissions to prevent unintended access outside the governed path.
Test quality and permissions independently
A synthetic row with negative cents is rejected even when its schema is valid. A duplicate order ID is also rejected by this lesson’s simple batch policy; real event pipelines may require explicit corrections or upserts. Use Glue Data Quality rules where supported, monitor failure counts and stop promotion if the threshold is breached. Separate raw-data writers, ETL roles, governance administrators and analyst readers; test denied columns as well as approved queries.
Treat query outputs as another dataset
A governed query can write an exported result that needs separate protection. For Athena results stored in customer-managed S3, Lake Formation does not govern the result location itself. Align workgroup membership, IAM access, result prefixes, encryption and expiry with the source permissions. Do not let a broad result-reader role defeat column filtering. Practice: give a report reader curated totals but no raw write or result access from other teams.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Glue, Lake Formation and access — knowledge check
Reason about data layout, governance and query costs.
What is a crawler primarily for?
Which row violates the stated sales contract?
What does hybrid access mode support?
How protect customer-managed S3 query results?
What should occur on a breached quality threshold?