AWS Certified Solutions Architect – Associate (SAA-C03) — Question 963

A company has an application that runs on an Amazon Elastic Kubernetes Service (Amazon EKS) cluster on Amazon EC2 instances. The application has a UI that uses Amazon DynamoDB and data services that use Amazon S3 as part of the application deployment.

The company must ensure that the EKS Pods for the UI can access only Amazon DynamoDB and that the EKS Pods for the data services can access only Amazon S3. The company uses AWS Identity and Access Management (IAM).

Which solution meals these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because using IAM Roles for Service Accounts (IRSA) allows you to map specific IAM roles to individual Kubernetes service accounts, ensuring the UI service account only gets DynamoDB access and the data services service account only gets S3 access. Options A and B are incorrect because you cannot associate IAM policies directly to pods, and instance profiles grant permissions to all pods on a node. Option D is incorrect because it reverses the required permissions, granting S3 access to the UI and DynamoDB access to the data services.