Learning Objectives
By the end of this chapter, you will be able to:
- Apply authentication mechanisms across AWS data services including VPC security groups, IAM groups and roles, AWS Secrets Manager rotation, and IAM policies on S3 Access Points and AWS PrivateLink.
- Apply authorization mechanisms using custom IAM policies, AWS Lake Formation permissions, role-based, tag-based, and attribute-based access control, and least-privilege construction.
- Configure data encryption at rest, in transit, and across AWS account boundaries with AWS KMS, including S3 Bucket Keys, customer-managed keys, and cross-account grants.
- Apply data masking and anonymization using Amazon Redshift dynamic data masking, AWS Lake Formation cell filters, and S3 Object Lambda redaction patterns.
- Prepare logs for audit with AWS CloudTrail management and data events, AWS CloudTrail Lake event data stores, Amazon CloudWatch Logs, and downstream analysis using Amazon Athena, CloudWatch Logs Insights, and Amazon OpenSearch Service.
- Manage data privacy and governance through Amazon Macie, AWS Config rules, SCP-based Region restrictions, Amazon SageMaker Catalog projects, and Amazon Redshift data sharing permissions.
Executive Summary
- Authentication establishes WHO is calling an AWS data service; authorization defines WHAT they can do. The data engineer composes both with VPC controls, IAM identities, resource policies, and Lake Formation permissions.
- AWS KMS customer-managed keys are the encryption boundary for sensitive data. Cross-account access to S3, Amazon Redshift, AWS Glue Data Catalog, and Apache Iceberg tables requires explicit KMS key policy grants in addition to the data-service policies.
- Audit and governance rely on AWS CloudTrail for API calls, Amazon CloudWatch Logs for application logs, AWS Config for configuration drift, and Amazon Macie for sensitive-data discovery. Each emits a different evidence trail; an audit-ready pipeline runs all four.
- Data sovereignty is enforced with AWS Organizations service control policies (SCPs), Region deny lists, AWS Config aws:RequestedRegion rules, and S3 Replication / Cross-Region Replication boundaries. None of these are turned on by default; the engineer wires them in.
Assumptions
- All identifiers (account IDs, ARNs, bucket names, role names, KMS key IDs) are fictional and follow the convention
dea-<purpose>-<env>. Region examples assumeus-east-1unless a Region restriction is the point of the example. - IAM principles introduced in earlier chapters (event-source mappings, AWS Glue connections, Lake Formation cataloging) are referenced by their established names without redefinition.
- "Data engineer" in this chapter is the human or automation role that builds and operates pipelines; "data steward" is the role that owns governance policy for a domain. The two map cleanly to AWS Lake Formation administrator and Lake Formation data lake principal patterns.
