SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
DEA-C01 · Domain 4

Data Security and Governance practice questions

Data Security and Governance is worth 18% of the DEA-C01 exam — the lightest of the 4 domains. Applying authentication and authorization, encrypting and masking data, preparing audit logs, and managing data privacy and governance. Official weighting 18%. 6 fully worked examples are further down this page, answers included.

Exam weight
18%
the lightest of the 4 domains
Questions
100
across 5 topics
Free, no account
5/day
sign up free to remove the cap
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 4 domains, in Learn mode.

Focused review

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Data Security and Governance questions, fully explained

Questions from the DEA-C01 bank mapped to domain 4, with the answer key and the reasoning behind every option. None of them repeat the examples on the main DEA-C01 practice page.

Question 1Data Security and Governance

Data analysts with IAM identities in AWS account A need to run Amazon Athena queries against a data lake owned by account B. The security team in account B wants to grant access without creating any new IAM users and wants all access to use temporary credentials. What is the MOST appropriate approach?

Choose one.

  • a
    Create IAM users in account B for each analyst and share the access keys securely.

    This creates new long-term credentials and duplicate identities, which is exactly what the security team wants to avoid.

  • b
    Create an IAM role in account B with a trust policy that allows principals from account A to assume it, and have the analysts call AWS STS AssumeRole. Correct

    Cross-account role assumption issues temporary STS credentials, keeps identity management in account A, and gives account B full control over what the role can do.

  • c
    Add the analysts' IAM user ARNs to an S3 bucket ACL in account B.

    S3 ACLs are a legacy mechanism that cannot grant IAM principals query access through Athena and are disabled by default on new buckets; they also do not provide temporary credentials.

  • d
    Generate an IAM user in account B and embed its access keys in the analysts' Athena workgroup configuration.

    Embedding shared long-term keys in a workgroup is not a supported authentication pattern and would violate the no-new-users, temporary-credentials requirements.

The concept

Cross-account access in AWS is built on IAM roles and AWS STS: the resource-owning account defines a role and trust policy, and principals in the trusted account assume the role to receive temporary credentials.

Why that’s the answer

An assumable role in account B satisfies every constraint. Account B controls the role's permissions and can revoke trust at any time; account A keeps managing its own people; and every session uses short-lived STS credentials that expire automatically. The alternatives either mint new long-term credentials (new IAM users, shared keys) or rely on ACLs, which are legacy, coarse, and not a credential-issuing mechanism at all.

How to reason it out
  1. In account B, create a role with permissions for Athena, the Glue Data Catalog, and the underlying S3 data.
  2. Set the role's trust policy to allow the specific principals (or the account root with conditions) from account A to call sts:AssumeRole.
  3. In account A, grant the analysts permission to assume the role; they then run Athena queries using the temporary credentials from the assumed-role session.

Exam tip: For cross-account access, assume a role with STS - never duplicate users or distribute long-term keys across accounts.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

Question 2Data Security and Governance

A data engineer tries to create an AWS Glue job that uses an existing service role named GlueETLRole. The request fails with an error stating the engineer is not authorized to perform iam:PassRole. The engineer already has full Glue permissions. What should an administrator do to fix this while following least privilege?

Choose one.

  • a
    Grant the engineer sts:AssumeRole on GlueETLRole.

    The engineer is not assuming the role - the Glue service is. AssumeRole permission would let the engineer take on the role directly, which is a different and broader capability.

  • b
    Add the engineer's IAM principal to the trust policy of GlueETLRole.

    The trust policy controls who or what can assume the role (here, the Glue service); it has no effect on the ability to pass the role to a service.

  • c
    Grant the engineer iam:PassRole on the GlueETLRole ARN, with a condition restricting the passed role's service to glue.amazonaws.com. Correct

    Creating a job that runs as a role requires the caller to hold iam:PassRole for that specific role; scoping to the role ARN and the Glue service keeps the grant minimal.

  • d
    Attach the AdministratorAccess managed policy to the engineer's role.

    This would resolve the error but grants vastly more than needed, violating least privilege.

The concept

iam:PassRole is the permission that lets a principal hand a role to an AWS service (Glue, Lambda, EC2). It exists to stop users from attaching roles more powerful than their own permissions to services they control.

Why that’s the answer

When you create a Glue job, you specify the service role the job will run as, and IAM checks that you are allowed to pass that role. The correct fix is a narrowly scoped iam:PassRole grant: resource-limited to the GlueETLRole ARN and condition-limited with iam:PassedToService set to glue.amazonaws.com so the role cannot be passed to other services. AssumeRole and trust-policy edits address role assumption, not role passing, and AdministratorAccess is a least-privilege violation.

How to reason it out
  1. Identify the exact role ARN the job needs to run as.
  2. Add a policy statement to the engineer's identity granting iam:PassRole on that ARN only.
  3. Add an iam:PassedToService condition limiting the pass target to glue.amazonaws.com, then retry the job creation.

Exam tip: Configuring a service to run as a role requires iam:PassRole on that role - scope it to the role ARN and the destination service.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

Question 3Data Security and Governance

A 24/7 streaming pipeline signs in to an Amazon Redshift cluster with credentials stored in AWS Secrets Manager. During each rotation, some pipeline workers that cached the secret just before rotation fail to authenticate because the password has already changed. Which change eliminates these sign-in failures while keeping automatic rotation?

Choose one.

  • a
    Keep the single-user rotation strategy but shorten the rotation interval so stale credentials are cached for less time.

    Rotating more often increases how frequently the password becomes invalid, making cache-timing failures more likely, not less.

  • b
    Switch the secret to the alternating-users rotation strategy so the previously valid credentials keep working during and after each rotation. Correct

    With alternating users, rotation updates the inactive of two database users, so the credentials a worker cached moments earlier remain valid until the next rotation cycle.

  • c
    Disable automatic rotation and rotate the password manually during a monthly maintenance window.

    This abandons the automatic-rotation requirement and a 24/7 pipeline has no natural maintenance window.

  • d
    Store a second static copy of the password in Systems Manager Parameter Store as a fallback for failed sign-ins.

    A static fallback copy immediately drifts from the rotated password and reintroduces an unrotated credential, defeating rotation entirely.

The concept

Secrets Manager supports two rotation strategies: single-user, which changes the one user's password in place, and alternating-users, which flips between two database users so one set of credentials is always stable.

Why that’s the answer

The failures happen because single-user rotation invalidates the old password the instant rotation completes, so any client holding a cached copy fails until it refetches. The alternating-users strategy rotates the password of the currently inactive user and then updates the secret to point at it; the previously active user's credentials continue to work through the transition. Clients with a slightly stale cache still authenticate, and they pick up the new user on their next fetch.

How to reason it out
  1. Create or designate a second database user cloned from the first with identical privileges.
  2. Reconfigure the secret's rotation to the alternating-users strategy referencing both users.
  3. Keep clients refreshing the secret periodically (or on authentication failure) so they converge on the newest credentials.

Exam tip: Use alternating-users rotation when clients cache credentials and cannot tolerate a hard password cutover.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

Question 4Data Security and Governance

A data pipeline needs a central place to store non-secret configuration values such as S3 bucket names, Glue job settings, and environment flags. A few values, such as a third-party API key, must be encrypted at rest. The values never need automatic rotation and the team wants the lowest-cost option. Which service should the team use?

Choose one.

  • a
    AWS Secrets Manager for all values.

    Secrets Manager charges per secret per month and per API call; paying its premium for plain configuration values that need no rotation is wasteful.

  • b
    AWS Systems Manager Parameter Store, using standard parameters for configuration and SecureString parameters for the API key. Correct

    Standard parameters are free, SecureString parameters provide KMS encryption for the sensitive values, and no rotation is needed - the exact fit at the lowest cost.

  • c
    A DynamoDB table with an application-managed encryption layer for sensitive items.

    This forces the team to build and maintain its own configuration API and encryption handling, which Parameter Store already provides natively.

  • d
    Environment variables baked into each job's deployment package.

    Baked-in values require redeployment for every change, scatter the API key across artifacts in plaintext, and offer no central management or audit.

The concept

Parameter Store is the low-cost home for configuration and modest secrets: standard parameters are free, and SecureString parameters add KMS encryption. Secrets Manager earns its cost only when you need automatic rotation and cross-account secret sharing features.

Why that’s the answer

The requirements are centralized config, selective encryption, no rotation, minimal cost. Parameter Store checks every box: hierarchical parameter names organize configuration, SecureString encrypts the API key with KMS, and IAM policies control who reads what. Secrets Manager is the right tool when rotation is required, which is explicitly not the case here.

How to reason it out
  1. Create a parameter hierarchy (for example /pipeline/prod/...) with standard String parameters for the non-secret values.
  2. Store the API key as a SecureString parameter encrypted with an AWS KMS key.
  3. Grant the pipeline roles ssm:GetParameter (with kms:Decrypt for the SecureString) scoped to the parameter path.

Exam tip: No rotation requirement plus cost sensitivity points to Parameter Store; reserve Secrets Manager for credentials that must rotate.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

Question 5Data Security and Governance

AWS Glue jobs run inside private subnets of a VPC that has no internet gateway and no NAT gateway. The jobs must read from and write to Amazon S3. The solution must add no data processing or hourly charges. How should the team enable this connectivity?

Choose one.

  • a
    Create an interface VPC endpoint for Amazon S3 in each private subnet.

    An interface endpoint would work but incurs hourly and per-GB PrivateLink charges, failing the no-additional-cost requirement when a free gateway endpoint exists for S3.

  • b
    Create a gateway VPC endpoint for Amazon S3 and add it to the route tables of the private subnets. Correct

    Gateway endpoints route S3 traffic privately over the AWS network at no additional charge, which satisfies both the no-internet and no-cost constraints.

  • c
    Add a NAT gateway in a public subnet and route the private subnets through it.

    A NAT gateway sends traffic out through the internet path and carries hourly plus per-GB charges - it fails both constraints.

  • d
    Attach an internet gateway to the VPC and give the job ENIs public IP addresses.

    This exposes the subnets to the public internet, contradicting the private-subnet design, and S3 traffic would traverse public address space.

The concept

Amazon S3 and DynamoDB support gateway VPC endpoints - free, route-table-based endpoints that keep traffic on the AWS network. Interface endpoints (PrivateLink) support far more services but bill hourly and per GB.

Why that’s the answer

A gateway endpoint is purpose-built for this scenario: it adds a prefix-list route for S3 to the chosen route tables, so instances and Glue ENIs in those subnets reach S3 privately with no internet path and no endpoint charges. The interface endpoint is the classic tempting distractor - functionally fine, but it costs money where the gateway option is free, and exam questions that stress cost expect you to know the difference.

How to reason it out
  1. Create a gateway VPC endpoint for the com.amazonaws.<region>.s3 service in the VPC.
  2. Associate the endpoint with the route tables used by the private subnets that host the Glue connections.
  3. Optionally attach an endpoint policy restricting which buckets and actions are reachable through the endpoint.

Exam tip: For S3 and DynamoDB from a VPC, use free gateway endpoints; interface endpoints are for the services that have no gateway option.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

Question 6Data Security and Governance

A Lambda function attached to private subnets must call AWS Secrets Manager to fetch database credentials. The VPC has no internet access, and the security team requires that the API calls never leave the AWS network. What should the team configure?

Choose one.

  • a
    Create a gateway VPC endpoint for Secrets Manager and update the private route tables.

    Gateway endpoints exist only for Amazon S3 and DynamoDB; there is no gateway endpoint for Secrets Manager.

  • b
    Create an interface VPC endpoint (AWS PrivateLink) for Secrets Manager in the VPC and allow HTTPS from the function's security group. Correct

    Secrets Manager is reached over PrivateLink through an interface endpoint, which places an ENI in the subnets so API calls stay entirely on the AWS network.

  • c
    Launch a NAT instance in a public subnet so the function can reach the Secrets Manager public endpoint.

    A NAT instance routes the calls out to the public Secrets Manager endpoint over the internet, violating the requirement that traffic never leave the AWS private network.

  • d
    Set up VPC peering between the function's VPC and the Secrets Manager service.

    VPC peering connects two customer VPCs; AWS services like Secrets Manager are not VPCs you can peer with.

The concept

Interface VPC endpoints, powered by AWS PrivateLink, create elastic network interfaces inside your subnets that front AWS service APIs, so calls resolve to private IPs and never traverse the internet.

Why that’s the answer

Only two services offer gateway endpoints (S3 and DynamoDB); everything else, including Secrets Manager, STS, KMS, and Glue, is reached privately via interface endpoints. Creating the Secrets Manager interface endpoint with private DNS enabled means the standard SDK endpoint name resolves to the in-VPC ENI, so the Lambda function needs no code changes. NAT paths break the never-leave-AWS-network rule, and peering does not apply to service endpoints.

How to reason it out
  1. Create an interface VPC endpoint for com.amazonaws.<region>.secretsmanager in the subnets the function uses, with private DNS enabled.
  2. Attach a security group to the endpoint that allows inbound HTTPS (443) from the Lambda function's security group.
  3. Confirm the function's execution role has secretsmanager:GetSecretValue and, if the secret uses a customer managed key, kms:Decrypt.

Exam tip: Gateway endpoints are only for S3 and DynamoDB; every other AWS service needs an interface endpoint for private connectivity.

Applying Authentication Mechanisms: IAM, Secrets Manager, and Networks — the lesson that teaches this.

What DEA-C01 domain 4 tests, topic by topic

The official exam guide breaks Data Security and Governance into 5 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published DEA-C01 practice questions per topic in Data Security and Governance
TopicWhat it coversQuestions
Apply authentication mechanismsOfficial DEA-C01 task statement (guide v1.1). Updating VPC security groups; creating and updating IAM groups, roles, endpoints, and services; creating and rotating credentials (AWS Secrets Manager); setting up IAM roles for access (Lambda, Amazon API Gateway, AWS CLI, CloudFormation); applying IAM policies to roles, endpoints, and services (S3 Access Points, AWS PrivateLink); managed vs unmanaged services; using domains, domain units, and projects for SageMaker Unified Studio.20
Apply authorization mechanismsOfficial DEA-C01 task statement. Creating custom IAM policies when managed policies fall short; storing application and database credentials (Secrets Manager, AWS Systems Manager Parameter Store); providing database users, groups, and roles access (Amazon Redshift); managing permissions through AWS Lake Formation (Redshift, EMR, Athena, S3); authorization methods (role-based, tag-based, attribute-based); constructing least-privilege policies.20
Ensure data encryption and maskingOfficial DEA-C01 task statement. Applying data masking and anonymization per compliance laws or company policy; using encryption keys to encrypt/decrypt data (AWS KMS); configuring encryption across AWS account boundaries; enabling encryption in transit or before transit.20
Prepare logs for auditOfficial DEA-C01 task statement. Tracking API calls with AWS CloudTrail; storing application logs with Amazon CloudWatch Logs; centralized logging queries with AWS CloudTrail Lake; analyzing logs (Amazon Athena, CloudWatch Logs Insights, Amazon OpenSearch Service); integrating services for logging (Amazon EMR for large log volumes).20
Understand data privacy and governanceOfficial DEA-C01 task statement (guide v1.1). Granting permissions for data sharing (Amazon Redshift data sharing); implementing PII identification (Amazon Macie with Lake Formation); preventing backups/replications to disallowed AWS Regions; viewing configuration changes (AWS Config); maintaining data sovereignty; managing data access through SageMaker Catalog projects; governance data frameworks and data-sharing patterns.20
Total100

Revise Data Security and Governance before you drill it

Other DEA-C01 domains

Data Security and Governance: your questions

Data Security and Governance is domain 4 of the DEA-C01 exam guide and carries 18% of the scored content — the lightest of the 4 domains. On a 65-question paper that works out to roughly 12 questions, though AWS does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official DEA-C01 exam guide.