Question 50
AWS workloads need temporary identities instead of embedded credentials. The team confirms that a pod has received a valid role but the target resource still denies requests. Which AWS architecture decision should be prioritized?
Explanation
Correct Answer
The scenario identifies this requirement: A pod has received a valid role but the target resource still denies requests. Select Check resource policy and any KMS key policy as well as pod role permissions as the specified technical mechanism. Resource and KMS policies may independently restrict otherwise valid role credentials. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Use supported EKS Pod Identity or scoped IRSA roles for service accounts addresses a separate condition: an EKS workload must call AWS APIs without sharing a node role. Pod-level IAM identities avoid broad worker-node credential sharing. The actual requirement is a pod has received a valid role but the target resource still denies requests. Recommended corrective action: Check resource policy and any KMS key policy as well as pod role permissions. Resource and KMS policies may independently restrict otherwise valid role credentials.
For the alternative failure an ECS task uses the task execution role for its own application AWS API calls, the control Assign an ECS task role for application calls separate from execution-role duties is relevant: task and execution roles have different responsibilities. Here the evidence instead is a pod has received a valid role but the target resource still denies requests. The selected technical mechanism is Check resource policy and any KMS key policy as well as pod role permissions: resource and KMS policies may independently restrict otherwise valid role credentials.
Attach an EC2 instance profile role and remove embedded IAM keys solves a different operational problem where an EC2 service stores a permanent IAM user access key in local configuration. Instance profiles vend temporary role credentials to EC2. It does not directly address a pod has received a valid role but the target resource still denies requests. The case calls for Check resource policy and any KMS key policy as well as pod role permissions, since resource and KMS policies may independently restrict otherwise valid role credentials.