Question 250
Which service-to-requirement explanation best fits this situation: A Lambda function must access DynamoDB using role-based temporary credentials?
Explanation
Correct Answer
IAM roles provide assumed temporary credentials to workloads rather than distributing embedded long-lived secrets. This fits the situation: A Lambda function must access DynamoDB using role-based temporary credentials.
Incorrect Answers
Hard-coded access keys: Embed long-lived credentials in code, increasing exposure and rotation difficulty. This does not address the need for A Lambda function must access DynamoDB using role-based temporary credentials. The appropriate IAM role applies because IAM roles provide assumed temporary credentials to workloads rather than distributing embedded long-lived secrets.
Shared root credentials: Expose the highest-privilege identity and prevent individual accountability. This does not address the need for A Lambda function must access DynamoDB using role-based temporary credentials. The appropriate IAM role applies because IAM roles provide assumed temporary credentials to workloads rather than distributing embedded long-lived secrets.
IAM user password in code: Exposes credentials in source files instead of using temporary workload credentials. This does not address the need for A Lambda function must access DynamoDB using role-based temporary credentials. The appropriate IAM role applies because IAM roles provide assumed temporary credentials to workloads rather than distributing embedded long-lived secrets.