[DEVELOPER] CloudTrail Flashcards

(11 cards)

1
Q

What is AWS CloudTrail?

A

A service that provides a history of AWS API calls for your account.

enables governance, compliance, operational auditing, and risk auditing of your AWS environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three categories of events recorded by CloudTrail?

A
  1. Management Events (Control Plane)
  2. Data Events (Data Plane)
  3. Insight Events (Automated analysis of other events)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In CloudTrail,

What are Management Events?

A

API calls related to resource management

Think control plane

Enabled by default.

e.g., RunInstance for EC2, CreateBucket for S3, AttachRolePolicy for IAM).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In CloudTrail

What are Data Events?

A

Events related to data access/usage on a resource

Think data plane

Disabled by default (must be explicitly enabled).

(e.g., S3 object-level APIs like GetObject, Lambda function execution).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the default retention period for CloudTrail event history in the console?

A

90 days (Management Events only).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where must you store CloudTrail logs for long-term retention and analysis beyond the default retention period?

A

An S3 bucket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you ensure the integrity and non-repudiation of CloudTrail logs in S3?

A

Enable file integrity validation on the trail.

using hashing and digital signatures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you get a single, consolidated view of all API activity across all AWS Regions and all accounts in an AWS Organization?

A

Configure a multi-region trail and enable it for the entire AWS Organization (using Organizations).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which AWS service is best used to query and analyze CloudTrail logs stored in the S3 bucket?

A

Amazon Athena (or Amazon QuickSight for visualization).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

If you disable CloudTrail, will existing S3 CloudTrail logs be deleted?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A developer needs to track the history of configuration changes (e.g., security group modifications) for an EC2 instance for auditing and compliance. Which AWS service should be used?

A

AWS Config

CloudTrail records API calls (who did what, when) but doesn’t track configuration changes over time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly