A security team suspects a compromised IAM user and needs to limit further damage immediately while preserving evidence. What is the best immediate action?
Answer
Detach all policies from the IAM user and disable the user, while retaining CloudTrail logs
Explanation
Disabling the user and removing permissions reduces ongoing access quickly, and CloudTrail retention helps preserve forensic evidence. Other options do not directly stop IAM access or may destroy auditability.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which security control most directly helps prevent unauthorized access to AWS resources at the API level for AWS accounts and services?
View question →
A company uses VPC Flow Logs for traffic monitoring but wants to reduce sensitive data exposure in logs while still keeping enough signals for detection. Which change most directly reduces sensitive information in VPC Flow Logs?
View question →
Which statement best describes the difference between an IAM policy and a resource policy (such as an S3 bucket policy)?
View question →
A company wants to enforce that all S3 objects are encrypted with AWS-managed keys and blocks any attempt to use customer-provided keys. Which approach best accomplishes this requirement?
View question →
You need to design a solution where a service in a VPC must call an external endpoint securely, without exposing the service to the internet. Which option best addresses this using AWS security services?
View question →
In AWS, what is the primary purpose of using AWS Config with an appropriate recorder and delivery channel?
View question →