Sample questions with answers and explanations
Question 1
A company wants GuardDuty to detect threats such as malware and suspicious processes inside running EC2 instances and EKS containers by analyzing operating system-level events. Which GuardDuty feature should be enabled?
- GuardDuty RDS Protection
- GuardDuty Lambda Protection
- GuardDuty Runtime Monitoring — Correct
- GuardDuty S3 Protection
Correct answer
GuardDuty Runtime Monitoring
Explanation
Runtime Monitoring analyzes OS-level events in EC2, EKS, and ECS workloads with a security agent. S3, RDS, and Lambda Protection analyze other data sources.
Question 2
A security team needs to quickly see all API actions taken by a specific access key ID over the past 30 days across all accounts in the organization. CloudTrail Lake is enabled with an organization event data store. What should the engineer do?
- Download the trail's S3 objects for each account and search them manually.
- Open CloudTrail Event history in each account and filter by user name for 30 days.
- Enable CloudTrail Insights and wait for it to report the key's activity.
- Run a SQL query in CloudTrail Lake that filters on the access key ID and event time. — Correct
Correct answer
Run a SQL query in CloudTrail Lake that filters on the access key ID and event time.
Explanation
CloudTrail Lake supports SQL queries across the organization's events. Per-account Event history is slow. Manual searches are slow. Insights reports unusual activity rates, not full histories.
Question 3
A company has multiple security findings from different tools for the same EC2 instance. The team wants findings normalized into a common format so that they can be correlated. Which format does AWS Security Hub use?
- AWS Security Finding Format (ASFF), and OCSF — Correct
- Proprietary binary records stored in DynamoDB
- Plain text email messages sent to an SNS topic
- Comma-separated values with one finding per file per day
Correct answer
AWS Security Finding Format (ASFF), and OCSF
Explanation
Security Hub normalizes findings into ASFF, and newer capabilities use OCSF. The other formats are not used for findings.
Question 4
A company wants to detect suspicious behavior in its EKS clusters, such as anonymous API access or privilege escalation through Kubernetes RBAC. Which feature should be enabled?
- Amazon Inspector ECR scanning
- AWS WAF on the EKS API server
- S3 Object Lock for container logs
- GuardDuty EKS audit log monitoring — Correct
Correct answer
GuardDuty EKS audit log monitoring
Explanation
GuardDuty EKS audit log monitoring detects suspicious Kubernetes API activity. Inspector scans images. WAF does not protect the EKS API server. Object Lock protects log integrity only.
Question 5
A company wants a security alert whenever a new IAM user is created in any account. Which solution fits BEST?
- A Macie job that scans IAM users for sensitive data once a month
- A CloudWatch alarm on the EC2 CPUUtilization metric of the account's instances
- A weekly IAM credential report review in each account by the security team
- An EventBridge rule on the CreateUser event that targets SNS — Correct
Correct answer
An EventBridge rule on the CreateUser event that targets SNS
Explanation
EventBridge can match CreateUser events and alert immediately. Weekly reviews are slow. CPU metrics and Macie are unrelated.