aws DEA-C01: AWS Certified Data Engineer – Associate · Practice questions

Domain 4: Data Security and Governance Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A company has a data lake in us-east-1. A new regulation requires that data about EU customers be stored and processed only in an EU Region. Which approach fits BEST?

  1. Store and process EU customer data only in an EU Region and its services. — Correct
  2. Keep all data in us-east-1 and encrypt EU data with a different KMS key.
  3. Replicate all data, including EU data, to every Region for availability.
  4. Use S3 Transfer Acceleration to make EU data appear local to the EU.

Correct answer

Store and process EU customer data only in an EU Region and its services.

Explanation

Data residency requires storing and processing data in the required Region. Encryption, Transfer Acceleration, and broad replication do not meet residency rules.

Question 2

A data engineer wants to restrict an IAM role so that it can run Athena queries only in a specific workgroup that enforces encryption of query results. Which approach fits BEST?

  1. Allow athena:* on all resources and ask the user to pick the right workgroup each time.
  2. Remove all IAM permissions and let the user run queries as the root user.
  3. Configure the S3 result bucket to be public so that any workgroup can write to it.
  4. Scope Athena permissions to that workgroup, which enforces result encryption. — Correct

Correct answer

Scope Athena permissions to that workgroup, which enforces result encryption.

Explanation

Resource-scoped permissions plus workgroup settings enforce encryption and usage limits. Broad access, root use, and public buckets are insecure.

Question 3

A data lake bucket must encrypt all objects with a customer managed KMS key, and the analytics engines must be able to read the data. Which permissions are needed for an Athena user to query the data? (Choose TWO.)

  1. iam:CreateUser permission to create query users on demand
  2. kms:CreateKey permission to create a new key for each query that runs
  3. s3:PutBucketPolicy permission on the data lake bucket for each analyst
  4. Athena and Glue Data Catalog permissions to run queries and read table metadata — Correct
  5. s3:GetObject on the data and kms:Decrypt on the key, or equivalent Lake Formation access — Correct

Correct answer

Athena and Glue Data Catalog permissions to run queries and read table metadata; s3:GetObject on the data and kms:Decrypt on the key, or equivalent Lake Formation access

Explanation

Users need data access (S3 and KMS, or Lake Formation-granted access) and Athena and catalog permissions. Creating keys, changing bucket policies, or creating users are not needed.

Question 4

A company wants to ensure that all S3 buckets in its data lake account block public access and that this cannot be changed by data engineers. Which approach fits BEST?

  1. Ask data engineers to check bucket settings manually every Friday.
  2. Enable S3 Intelligent-Tiering on all buckets in the data lake account.
  3. Account-level S3 Block Public Access, protected by an SCP that denies changes — Correct
  4. Enable S3 Transfer Acceleration on all buckets in the data lake account.

Correct answer

Account-level S3 Block Public Access, protected by an SCP that denies changes

Explanation

Account-level Block Public Access protected by an SCP prevents public buckets. Manual checks, Intelligent-Tiering, and Transfer Acceleration do not prevent public access.

Question 5

A company wants to limit which rows of a Redshift table each sales manager can see, based on the manager's region. Which feature should be used?

  1. Redshift row-level security (RLS) policies — Correct
  2. Redshift concurrency scaling
  3. Redshift automatic table optimization
  4. Redshift short query acceleration

Correct answer

Redshift row-level security (RLS) policies

Explanation

Row-level security policies filter rows by user or role. Table optimization, concurrency scaling, and SQA affect performance, not access.

Question 6

A data engineer must allow an Amazon EMR cluster to read only specific tables in the data lake governed by Lake Formation, with column-level restrictions. Which configuration fits BEST?

  1. Use EMR's Lake Formation integration with runtime roles — Correct
  2. Give the EMR cluster's instance role s3:* on the entire data lake bucket.
  3. Disable Lake Formation so that EMR can read data with IAM permissions only.
  4. Copy the allowed columns to a new bucket for the EMR cluster every night.

Correct answer

Use EMR's Lake Formation integration with runtime roles

Explanation

EMR's Lake Formation integration enforces fine-grained permissions. Broad S3 access bypasses governance. Copies add cost and drift. Disabling Lake Formation removes controls.

Question 7

Users authenticate to Amazon Redshift with corporate identities from IAM Identity Center, and the security team wants permissions managed through Redshift roles mapped to identity groups. Which approach fits BEST?

  1. Integrate Redshift with IAM Identity Center and map groups to roles. — Correct
  2. Store database passwords in the analysts' desktop configuration files.
  3. Use the Redshift admin user for all analysts and track access in a spreadsheet.
  4. Create local Redshift users with shared passwords for each department.

Correct answer

Integrate Redshift with IAM Identity Center and map groups to roles.

Explanation

Identity Center integration enables SSO and group-based permissions in Redshift. Shared users and passwords are insecure and hard to audit.

Question 8

A team needs to audit which users ran which SQL statements in Amazon Redshift. What should the engineer enable?

  1. Redshift audit logging (user activity log) — Correct
  2. Redshift enhanced VPC routing on the cluster
  3. Redshift concurrency scaling for every queue
  4. Redshift automated snapshots every 8 hours

Correct answer

Redshift audit logging (user activity log)

Explanation

Audit logging records connections, users, and user activity (SQL statements). Concurrency scaling, snapshots, and enhanced VPC routing do not record SQL activity.

Question 9

A company must ensure that only encrypted connections are used to its Redshift cluster. Which setting enforces this?

  1. Enable enhanced VPC routing on the cluster
  2. Enable automated snapshots with a 35-day retention period
  3. Enable concurrency scaling on the default queue
  4. Set require_ssl to true in the cluster's parameter group — Correct

Correct answer

Set require_ssl to true in the cluster's parameter group

Explanation

require_ssl forces SSL connections. Snapshots, enhanced VPC routing, and concurrency scaling do not enforce encryption in transit.

Question 10

A data engineer must share a Glue Data Catalog database and its underlying S3 data with another AWS account, with fine-grained permissions managed centrally. Which approach fits BEST?

  1. Make the S3 bucket public and share the table names with the other account.
  2. Copy the data to a bucket in the other account every night and recreate the tables there.
  3. Share the producer account's IAM user credentials with the consumer account's analysts.
  4. Use Lake Formation cross-account sharing (through AWS RAM) with Lake Formation permissions. — Correct

Correct answer

Use Lake Formation cross-account sharing (through AWS RAM) with Lake Formation permissions.

Explanation

Lake Formation cross-account sharing grants access to catalog resources with central permissions. Public buckets, copies, and shared credentials are insecure or inefficient.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz