An event-stream processing application runs in an Amazon EKS cluster and writes results to Amazon DynamoDB. The containers must access DynamoDB securely without embedding AWS credentials. Which solution satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Attach an IAM role to the EKS worker nodes, grant that role permissions to access DynamoDB, and use the role to configure IAM Roles for Service Accounts (IRSA)..
Why this is the answer
Attaching an IAM role to EKS worker nodes and configuring IAM Roles for Service Accounts (IRSA) is the most secure and recommended solution. IRSA allows you to associate an IAM role directly with a Kubernetes service account, which is then assigned to specific pods. This grants fine-grained permissions to individual pods, ensuring that only the necessary applications can access DynamoDB, without embedding credentials. Storing credentials in S3 or using environment variables/Kubernetes Secrets with IAM user access keys are less secure as they involve managing static credentials, increasing the risk of exposure.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed