AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineer is developing a Python AWS Lambda function that runs inside a VPC and writes transformed CSV files to an Amazon S3 bucket in the same AWS account. The company prohibits hard-coding or storing long-lived access keys. According to AWS best practices for authentication, which approach will allow the function to authenticate to S3 while complying with the policy?
Use an S3 Access Point, and reference its ARN when creating the Lambda function; no IAM configuration is required.
Add a bucket ACL granting write permission to the Lambda service's public IP addresses.
Store an IAM user's access key and secret key in AWS Secrets Manager and read them at runtime.
Configure an IAM role with S3 write permissions and assign it as the Lambda execution role.
The recommended way for a Lambda function to call AWS services is to assume an IAM role that the platform automatically provides to the function when it runs. The role can include an inline or managed policy that grants the needed s3:PutObject permission on the target bucket. Lambda exchanges the role for temporary credentials behind the scenes, so no long-lived keys are stored or retrieved. Storing user credentials in Secrets Manager still relies on long-lived keys, and ACLs or Access Points do not by themselves give the function credentials to sign the API calls, so those options fail to meet the stated security requirement.
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 Role in AWS?
Open an interactive chat with Bash
How does a Lambda Execution Role work?
Open an interactive chat with Bash
Why are long-lived access keys discouraged in AWS?
Open an interactive chat with Bash
What is an IAM role and how does it work with AWS Lambda?
Open an interactive chat with Bash
Why is storing long-lived access keys discouraged in AWS?
Open an interactive chat with Bash
What does `s3:PutObject` permission allow in an IAM policy?
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 .