A CloudTrail trail was stopped in one account for six hours. How do you detect this next time in minutes?
BeginnerScenarioCloud IAM and Compliance
Answer
Situation read → Disabling logging is a classic attacker step. It should be both prevented and detected.
What I'd do →
- Prevent with an SCP denying
cloudtrail:StopLogging,DeleteTrail,UpdateTrailfor non-security roles. - Detect with an EventBridge rule on those API calls routing to the on-call channel.
- Use an organization trail, which member accounts cannot modify.
- GuardDuty also raises
Stealth:IAMUser/CloudTrailLoggingDisabled.
Why → Six hours without logs is six hours you cannot investigate.
Interview tip → Pair prevention (SCP) with detection (EventBridge) every time.
More on Cloud IAM and Compliance
You find an IAM policy with `"Action": "*", "Resource": "*"` attached to an application role. How do you right-size it?BeginnerYour company has 40 AWS accounts with no central controls. How do you set up preventive guardrails?IntermediateGuardDuty reports `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS`. What happened and what do you do?AdvancedYour company must pass SOC 2 Type II in six months. What does DevOps own, and how do you automate evidence?IntermediateA partner needs access to one S3 bucket in your account. How do you set up cross-account access safely?IntermediateSomeone logged in with the AWS root user last night. How do you react, and how should you have known?Beginner