AWS Data Engineer Associate (DEA-C01) · 18% practice allocation

AWS DEA-C01: Data Security and Governance Practice Questions

5 free sample questions from the Data Security and Governance domain, with answers and explanations. The full DEA-C01 bank has 250 questions across 4 domains. Questions are scenario-based and written from the official AWS exam guide.

1.

A data engineer is configuring Amazon S3 for a new data lake that will store sensitive financial records. The security team mandates that no S3 bucket in the account should ever be publicly accessible, regardless of individual bucket policies or ACLs. Which action MOST efficiently enforces this requirement at the account level?

  • A. Enable Amazon Macie to automatically remediate public buckets by revoking public ACLs.
  • B. Apply a Service Control Policy (SCP) that denies s3:PutBucketPolicy on all buckets.
  • C. Attach a bucket policy to every S3 bucket that explicitly denies public access.
  • D. Enable S3 Block Public Access settings at the AWS account level.✓ Correct
Explanation

Enabling S3 Block Public Access at the account level applies four settings (BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets) to all current and future buckets in one action, providing a single authoritative control. This overrides any bucket-level policy or ACL that would otherwise grant public access. An SCP restricting s3:PutBucketPolicy would prevent creation of bucket policies but would not block public access granted via ACLs, and it does not cover existing policies. Attaching a bucket policy to every bucket is operationally burdensome and does not prevent future buckets from being created without such a policy. Amazon Macie is a data discovery and classification service; it can alert on public buckets but does not automatically remediate them.

2.

A data engineering team is deploying an Amazon Redshift cluster that will store PII. The security team requires that all data stored in Redshift be encrypted with a key the company fully controls, and that the key must be rotated annually without manual re-encryption of Redshift data. Which approach meets these requirements?

  • A. Enable Redshift's built-in AES-256 encryption without KMS, and use a Redshift parameter group to enforce rotation.
  • B. Enable Redshift encryption using an AWS managed key (aws/redshift) and rely on AWS's automatic annual rotation.
  • C. Enable Redshift encryption using an AWS CloudHSM cluster, and schedule a Lambda function to rotate the HSM key annually.
  • D. Enable Redshift encryption using an AWS KMS customer-managed key (CMK) with automatic key rotation enabled on the CMK.✓ Correct
Explanation

An AWS KMS customer-managed key (CMK) gives the company full control over the key policy, including who can use or manage the key. Enabling automatic key rotation on a CMK rotates the backing key material annually; KMS transparently re-wraps the Redshift cluster's data encryption key without any re-encryption of the actual cluster data. AWS managed keys (aws/redshift) are controlled by AWS, not the company, so the company does not 'fully control' them, and rotation is automatic but the key policy is not customer-managed. CloudHSM provides hardware-level key management but requires significantly more operational overhead; scheduling Lambda for key rotation does not integrate natively with Redshift's encryption workflow. Redshift's built-in encryption requires KMS or CloudHSM and has no standalone annual rotation mechanism via parameter groups.

3.

A company uses AWS Lake Formation to control access to its data lake. A data analyst requires read access only to rows in a Glue Data Catalog table where the region column equals 'US-EAST'. The analyst must not see rows for any other region. Which Lake Formation feature should the data engineer configure to satisfy this requirement?

  • A. Column-level permissions that exclude all columns except region.
  • B. A Glue Data Catalog resource policy that restricts the analyst to the specific partition.
  • C. A Lake Formation data filter with a row filter expression on the region column.✓ Correct
  • D. An IAM policy condition using s3:prefix to restrict access to US-EAST S3 prefixes.
Explanation

Lake Formation data filters support both column-level security and row-level security through a row filter expression (e.g., region = 'US-EAST'). When attached to a GRANT statement for the analyst's IAM principal, only matching rows are returned. Column-level permissions restrict which columns are visible but do not filter rows, so the analyst would still see rows for other regions. An IAM policy with an s3:prefix condition restricts S3 object access but does not enforce row-level filtering within a Glue-cataloged table, and Lake Formation fine-grained access would still need to be configured. A Glue Data Catalog resource policy controls access to catalog metadata itself (databases, tables), not the row-level contents of the underlying data.

4.

A data engineer is configuring an AWS Glue crawler to catalog data in an S3 bucket managed by AWS Lake Formation. After the crawler runs successfully, an IAM user attempts to query the newly cataloged table via Athena and receives a 'Table not found' error even though the table exists in the Glue Data Catalog. What is the MOST likely cause?

  • A. The Glue crawler did not complete successfully and the table metadata is corrupt.
  • B. The IAM user has not been granted SELECT permission on the table in AWS Lake Formation.✓ Correct
  • C. The Athena workgroup the user is using does not have permission to query Glue Data Catalog tables.
  • D. The S3 bucket's Block Public Access settings are preventing Athena from reading the underlying data files.
Explanation

When AWS Lake Formation is enabled and the account has moved beyond the legacy IAM-only access model, Lake Formation acts as an authorization layer on top of the Glue Data Catalog. Even if a user has full IAM permissions to Glue, they will not be able to see or query a table unless Lake Formation has granted them at least SELECT (and the parent database's DESCRIBE) permissions. The 'Table not found' error is Lake Formation's way of hiding tables from unauthorized principals. A corrupt crawler output (Option A) would show the table as broken or absent from the catalog, not as 'not found' for specific users while visible to others. Athena workgroup permissions (Option C) control query result locations and cost controls, not catalog table visibility. S3 Block Public Access settings (Option D) affect public access to objects and would cause query execution failures, not a 'Table not found' error at the metadata level.

5.

A healthcare data platform stores PHI in Amazon S3. Analysts query the data through Amazon Athena. A new HIPAA control requires that analysts in the 'junior' team can see patient names and diagnoses, but the SSN and date_of_birth columns must be completely hidden from them. Senior analysts retain full column access. Which AWS service feature most directly enforces this column-level restriction at the data catalog layer?

  • A. Create two separate S3 prefixes, one with SSN and DOB columns redacted, and apply S3 bucket policies to restrict junior analysts to the redacted prefix.
  • B. Use AWS Lake Formation column-level permissions to GRANT the junior analyst IAM role access only to the permitted columns of the Glue catalog table.✓ Correct
  • C. Create an Athena saved query view that excludes the SSN and DOB columns, and advise junior analysts to use only the view.
  • D. Apply a KMS key policy that prevents junior analyst IAM roles from decrypting objects containing SSN and DOB data.
Explanation

Lake Formation column-level permissions allow an administrator to explicitly GRANT SELECT on specific columns of a Glue Data Catalog table to a given IAM principal. When junior analysts query through Athena, Lake Formation enforces the column-level access; the excluded columns are simply not returned. This is enforced at the catalog layer and cannot be bypassed by crafting a different query. Creating separate S3 prefixes (Option A) requires physically duplicating or transforming data, adds storage costs, and is operationally complex to maintain as schemas change. An Athena saved query view (Option C) is not a security control—a determined user can query the underlying table directly, bypassing the view. A KMS key policy (Option D) controls decryption at the object level but cannot selectively restrict access to individual columns within a Parquet or ORC file.

Test yourself across every DEA-C01 domain

The free DEA-C01 practice test mixes about 20 questions weighted like the exam. The full 250-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Data Security and Governance study guide (DEA-C01) →

Other DEA-C01 domains

← All AWS Data Engineer Associate study resources