0
0
AWScloud~20 mins

CloudTrail for API auditing in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CloudTrail Master Auditor
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding CloudTrail Event Delivery

When AWS CloudTrail records API activity, how soon after an API call is the event typically delivered to the S3 bucket configured as the trail's destination?

AWithin a few minutes, usually less than 15 minutes
BImmediately, in real-time as the API call happens
COnly when manually triggered by the user
DAfter 24 hours, as a daily batch process
Attempts:
2 left
💡 Hint

Think about how logs are usually processed and delivered in cloud services.

security
intermediate
2:00remaining
CloudTrail Log File Integrity Validation

What is the purpose of enabling log file integrity validation in AWS CloudTrail?

ATo encrypt log files before storing them in S3
BTo verify that log files have not been altered or deleted after delivery
CTo compress log files to save storage space
DTo automatically delete old log files after 90 days
Attempts:
2 left
💡 Hint

Think about how to ensure logs remain trustworthy after they are saved.

Architecture
advanced
2:30remaining
Designing Multi-Region CloudTrail for Compliance

You need to audit API activity across multiple AWS regions for compliance. Which CloudTrail setup ensures all regions are covered and logs are consolidated in one S3 bucket?

ACreate separate trails in each region, each delivering logs to different S3 buckets
BUse CloudWatch Logs instead of CloudTrail for multi-region auditing
CCreate a single multi-region trail that applies to all regions and delivers logs to one S3 bucket
DEnable CloudTrail only in the primary region and assume it covers others automatically
Attempts:
2 left
💡 Hint

Consider how CloudTrail can be configured to cover all regions with minimal setup.

Best Practice
advanced
2:30remaining
Securing CloudTrail Logs with Encryption and Access Control

Which combination of settings best protects CloudTrail logs stored in S3 from unauthorized access?

AStore logs in an unencrypted S3 bucket with no access restrictions
BDisable encryption but enable versioning on the S3 bucket
CUse public read access on the S3 bucket for easy log sharing
DEnable S3 bucket encryption with AWS KMS and apply a bucket policy restricting access to CloudTrail service and authorized users
Attempts:
2 left
💡 Hint

Think about how to keep logs confidential and prevent unauthorized viewing or tampering.

🧠 Conceptual
expert
3:00remaining
CloudTrail Event Selectors and Data Events

Which statement correctly describes the difference between management events and data events in AWS CloudTrail?

AManagement events record operations on AWS resources like creating or deleting, while data events record resource-level operations like reading or writing objects in S3 or Lambda function invocations
BData events record only failed API calls, management events record successful calls
CManagement events are stored only in CloudWatch Logs, data events only in S3
DData events are free, management events incur additional charges
Attempts:
2 left
💡 Hint

Think about what kinds of actions happen at the resource level versus the management level.