Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · DEA-C01

Privacy and governance

DEA-C01 · Lesson 23 of 23 · 3:19:20

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: Redshift data sharing with datashares within and across accounts, finding PII in S3 with Amazon Macie and restricting it with LF-Tags, service control policies that keep data, backups, and replicas in permitted Regions, AWS Config, data sovereignty, and SageMaker Catalog projects for a data mesh with federated governance. Includes three original practice questions.

Study notes

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

Copies everywhere

AnyCompany Games sends nightly copies of its Redshift tables to the marketing account, and nobody knows which copy is current. A new team creates a backup in a Region outside the European Union, against company policy, and no one can say who changed the bucket settings last week. This lesson covers data sharing, PII and Regions, configuration changes and sovereignty, and SageMaker Catalog.

Sharing data from Redshift

Redshift data sharing gives other clusters and workgroups live access to data, without copying or moving it, so every consumer sees the latest committed data. On the producer, you create a datashare, add schemas, tables, or views to it, and grant usage on the datashare to a consumer namespace or to another AWS account. Across accounts, sharing needs a two-way handshake: the producer administrator authorizes the consumer account, and the consumer administrator associates the datashare with the whole account or with specific clusters. On the consumer, you create a database from the datashare, and then grant access to it to your own users and roles. Data sharing works across clusters, serverless workgroups, accounts, and Regions, and it isolates workloads, since each consumer queries with its own compute.

PII and permitted Regions

Amazon Macie keeps an inventory of your S3 buckets, and uses machine learning and pattern matching to find sensitive data, like PII, in their objects, with built-in or custom criteria. Each detection produces a finding, and with Lake Formation, you can tag the tables of those buckets with an LF-Tag, like sensitivity equals PII, so only approved roles can query them. To keep data in permitted Regions, a service control policy in AWS Organizations can deny requests to other Regions with the aws:RequestedRegion condition, leaving global services like IAM out of the deny. Since no bucket or backup vault can then be created in those Regions, replication rules and backup copy rules have no destination there. Still review backup plans and replication rules, because resources created before the policy, or in the management account, which SCPs do not affect, can still copy data elsewhere.

Configuration changes and sovereignty

AWS Config captures the configuration of your resources as configuration items, so you can view every configuration change in the timeline of a resource, like a bucket policy or an encryption setting. Config rules flag resources that do not comply, for example a bucket without default encryption, and an aggregator gathers this data from several accounts and Regions. Config shows what changed and when, and CloudTrail shows who made the API call, so the two work together in an audit. Data sovereignty means keeping data under the laws and control of a country or region, which starts with choosing the Regions where data is stored and processed. Then enforce it with service control policies, keep your keys in KMS, and for the strictest needs in Europe, the AWS European Sovereign Cloud is an independent cloud located entirely within the European Union.

SageMaker Catalog and data mesh

In SageMaker Unified Studio, a project brings its data into an inventory, adds business metadata like descriptions and glossary terms, and publishes assets to the SageMaker Catalog. Other users search the catalog and subscribe to an asset with a justification, and the owning project approves or rejects the request. For managed assets, like Glue tables and Redshift tables and views, access is granted automatically after approval, so nobody writes the grants by hand. This supports a data mesh, a governance model where domain teams own their data and publish it as products, with self-service access and federated governance. So compare sharing patterns: copying data creates versions to keep in sync, while sharing in place, with datashares, Lake Formation, or catalog subscriptions, keeps a single current version under the rules of its owner.

Governance at AnyCompany Games

Here is the plan at AnyCompany Games: marketing reads the warehouse through a datashare, authorized for its account, with no more nightly copies. Macie scans the data lake buckets, and tables with PII get a sensitivity LF-Tag. An SCP keeps every account in two European Union Regions, and AWS Config captures each configuration change. And each studio publishes its tables to SageMaker Catalog, where other teams subscribe.

Recap

Let's recap. Redshift data sharing gives live access without copies, through datashares, within an account or across accounts after a handshake. Macie finds PII in S3, and LF-Tags in Lake Formation can restrict the tables that hold it. Service control policies keep data, backups, and replicas in permitted Regions. AWS Config captures configuration changes, and sovereignty starts with Regions, keys, and controls. And SageMaker Catalog projects publish and subscribe, which fits a data mesh with federated governance.

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 copies Redshift tables to the cluster of the marketing account, and the copies are often out of date. Marketing needs the latest data, with no copies. What should the data engineer set up?

    • An S3 replication rule from the warehouse bucket to marketing
    • A nightly UNLOAD job to a bucket of the marketing account
    • A Redshift datashare authorized for the marketing account
    • A Lake Formation data filter on the marketing tables
    Show the answer

    A Redshift datashare authorized for the marketing account

    A datashare gives the marketing account live access to the data, with no copy, once the producer authorizes it and the consumer associates it. “An S3 replication rule from the warehouse bucket to marketing” would still copy files, outside the warehouse. “A nightly UNLOAD job to a bucket of the marketing account” would export a new copy every night, out of date by morning. And “A Lake Formation data filter on the marketing tables” would filter rows and columns of data lake tables, without sharing the warehouse.

  2. Company policy says that game data must stay in two European Union Regions. Teams have admin access in their own accounts, and a backup copy recently went to another Region. What should the data engineer put in place?

    • An SCP that denies requests to every other Region
    • A Macie job that scans each backup for player data
    • An AWS Config rule that reports noncompliant buckets
    • A Redshift datashare limited to the two Regions
    Show the answer

    An SCP that denies requests to every other Region

    A service control policy limits even administrators, so no bucket or backup vault can be created in other Regions. “A Macie job that scans each backup for player data” would find sensitive data, without stopping any copy. “An AWS Config rule that reports noncompliant buckets” would report problems after the fact, without preventing them. And “A Redshift datashare limited to the two Regions” would share warehouse data, without controlling backups.

  3. The analytics team of each game studio publishes its tables, and other teams must request access, with approval by the owner. Access must be granted without writing grants by hand. What should the data engineer use?

    • Redshift users and groups created by each studio
    • An S3 bucket policy, edited for each team that asks
    • A Macie inventory of the buckets of each studio
    • SageMaker Catalog projects with subscription requests
    Show the answer

    SageMaker Catalog projects with subscription requests

    Projects publish assets to the catalog, subscribers request access, owners approve, and access to managed assets is granted automatically. “Redshift users and groups created by each studio” would mean granting each user by hand, inside one warehouse. “An S3 bucket policy, edited for each team that asks” would mean editing a bucket policy for every request. And “A Macie inventory of the buckets of each studio” would find sensitive data, without granting any access.