AWS Certified Security – Specialty — Question 90

A company uses user data scripts that contain sensitive information to bootstrap Amazon EC2 instances. A Security Engineer discovers that this sensitive information is viewable by people who should not have access to it.
What is the MOST secure way to protect the sensitive information used to bootstrap the instances?

Answer options

Correct answer: B

Explanation

The correct answer is B because using AWS Systems Manager Parameter Store to store sensitive data as an encrypted string ensures that only authorized EC2 instance roles can access it, maintaining security. Option A is less secure since storing scripts in the AMI exposes them to anyone with access to the AMI. Option C involves moving scripts to S3, which can still be accessed by unauthorized users if not correctly configured. Option D does not address the root issue of sensitive data exposure and focuses on metadata access instead.