Practice free →
HomeAWS Developer Associatecloudcomputingawsdevelopment › Which AWS feature lets developers attach short-l…

Which AWS feature lets developers attach short-lived AWS credentials to a Lambda function (or any compute resource) so it can call other AWS APIs without storing static keys?

AAn IAM execution role attached to the function, which AWS swaps in via STS
BA public S3 bucket containing the credentials in plain text
CA hard-coded access key embedded in the deployment package
DAn access key emailed to every developer for shared use
Answer & Solution
Correct answer: A. An IAM execution role attached to the function, which AWS swaps in via STS
Execution roles deliver STS-issued short-lived credentials at runtime via Lambda's runtime; no static keys to leak. The other options leak credentials and violate least-privilege.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions