AWS Certified Data Engineer Associate DEA-C01 Practice Question
Your data engineering team runs an AWS Glue ETL job that should read objects only from the s3://raw-data/projectA/ prefix and write output to s3://analytics/projectA/output/. No AWS managed policy provides this prefix-level control. Which approach best grants the Glue job role the least-privilege S3 permissions?
Attach the AWSGlueServiceRole managed policy and grant read and write access through bucket ACLs that list the Glue service principal.
Attach a customer managed IAM policy to the Glue job's execution role that allows s3:ListBucket on the raw-data bucket, s3:GetObject on arn:aws:s3:::raw-data/projectA/*, and s3:PutObject on arn:aws:s3:::analytics/projectA/output/*.
Attach the AmazonS3FullAccess managed policy to the Glue role and rely on an S3 gateway endpoint policy to restrict access to the required prefixes.
Register both buckets with AWS Lake Formation and assign the job role the data lake administrator permission set instead of using IAM policies.
A customer managed IAM policy can scope permissions precisely, satisfying least-privilege requirements. To read from a prefix, a role needs s3:ListBucket permission on the bucket and s3:GetObject permission on the objects within the prefix. To write, it needs s3:PutObject on the objects in the target prefix. This approach grants the job only the permissions it needs.
AmazonS3FullAccess is overly broad; an S3 endpoint policy does not restrict the role's permissions, only network access via that endpoint. Granting access through bucket ACLs is a legacy practice and less flexible than IAM. Making the role a Lake Formation data lake administrator would grant excessive authority over all registered data lake resources.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an IAM policy in AWS?
Open an interactive chat with Bash
What is AWS Glue and what does an execution role do?
Open an interactive chat with Bash
Why is least-privilege access important in AWS security?
Open an interactive chat with Bash
Why is a customer managed IAM policy better for least-privilege S3 access control in this scenario?
Open an interactive chat with Bash
What does the `s3:ListBucket` permission provide in this context?
Open an interactive chat with Bash
Why is using the `s3:GetObject` permission specific to the projectA prefix important?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Security and Governance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .