AWS Certified Security – Specialty — Question 153

A security engineer received an Amazon GuardDuty alert indicating a finding involving the Amazon EC2 instance that hosts the company's primary website. The
GuardDuty finding received read:
UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.
The security engineer confirmed that a malicious actor used API access keys intended for the EC2 instance from a country where the company does not operate.
The security engineer needs to deny access to the malicious actor.
What is the first step the security engineer should take?

Answer options

Correct answer: D

Explanation

The correct answer is D, as revoking all IAM sessions associated with the instance profile immediately cuts off access to the malicious actor. The other options, while potentially useful for security hardening or assessment, do not directly address the immediate threat of unauthorized access to the EC2 instance.