Question 330
An application uses an IAM user secret baked into ECS image. Which security or privacy control closes the described gap?
Explanation
Correct Answer
Use an ECS task role or equivalent workload identity with scoped permissions; revoke the exposed static IAM user secret embedded in the image.
Incorrect Answers
An exposed long-lived key remains a compromise risk.
Obfuscation cannot secure credentials in deployed artifacts.
Workload identity is useful only with least-privilege resource permissions.



AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests