AWS SAP-C02 · Question 52 · Domain 1.2: Security Controls
A company is running a containerized application on Amazon EKS. The application needs to access an Amazon S3 bucket to store user uploads. The security team mandates the principle of least privilege: only the specific pods running the upload service should have access to the S3 bucket, and no other pods in the cluster should have access. How should the Architect implement this?
A company is running a containerized application on Amazon EKS. The application needs to access an Amazon S3 bucket to store user uploads. The security team mandates the principle of least privilege: only the specific pods running the upload service should have access to the S3 bucket, and no other pods in the cluster should have access. How should the Architect implement this?
Answer options:
Use IAM Roles for Service Accounts (IRSA). Create an IAM role with S3 access and associate it with the Kubernetes service account used by the upload pods.
Attach an IAM role with S3 access to the Amazon EKS worker node EC2 instances.
Create an IAM user with S3 access. Store the access keys in a Kubernetes Secret and mount it to the upload pods.
Configure an S3 bucket policy to only allow requests originating from the IP addresses of the upload pods.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5
75 questions · hints · full answers · grading
Expert