AWS Certified Security – Specialty — Question 237

An application is running on an Amazon EC2 instance that has an IAM role attached. The IAM role provides access to an AWS Key Management Service (AWS
KMS) customer managed key and an Amazon S3 bucket.
A security engineer discovers a potential vulnerability on the EC2 instance that could result in the compromise of the sensitive data. Due to other critical operations, the security engineer cannot immediately shut down the EC2 instance for vulnerability patching.
What is the FASTEST way to prevent the sensitive data from being exposed?

Answer options

Correct answer: C

Explanation

The correct answer is C because revoking the IAM role's permissions and updating the S3 bucket policy immediately restricts access to the sensitive data, thus preventing any potential exposure. Options A and D involve complicated processes that take more time and still do not address the immediate risk on the existing EC2 instance. Option B only partially mitigates the risk by blocking external access but does not stop potential internal access to sensitive data.