Data Security and Governance
A Lambda function needs to read objects from one S3 bucket without storing access keys. Which configuration should a data engineer use?
Show the answer
Correct answerC. An execution role that trusts Lambda and permits reads from the bucket
AWhy not this: Trusting Amazon S3 does not let Lambda assume the role to make outbound S3 API calls.
BWhy not this: IAM groups contain IAM users, not Lambda functions, and cannot provide workload credentials.
CWhy this is right: Lambda assumes the execution role and uses temporary credentials to read the permitted objects.
DWhy not this: Storing an IAM user's access keys still uses long-term credentials rather than a Lambda execution role.
Lambda assumes its execution role to obtain temporary credentials for permitted AWS API calls. IAM groups cannot contain Lambda functions and do not provide credentials to workloads.