DVA-C03

Introduction to AWS CloudTrail

A record of API activity in your AWS account, for auditing and troubleshooting.

  • 1 lesson
  • Module quiz

Almost every action in AWS is an API call, whether it is made in the console, by the CLI, by an SDK or by another AWS service. When a resource changes unexpectedly or a request is denied, the developer needs to know which call was made, by whom, from where and with what result.

AWS CloudTrail records these API calls as events. The event history shows the last 90 days of management events, the calls that create, change or delete resources, for free and with no set-up. To keep events longer, record data events such as reads and writes of S3 objects, or cover several Regions or an entire organisation, a trail delivers events to an Amazon S3 bucket. One copy of management events per trail is free, and data events are charged.

Where CloudTrail fits

Three monitoring services are often confused on the exam. CloudTrail records who did what, namely API activity; Amazon CloudWatch shows how an application is performing, through metrics, logs and alarms; and AWS X-Ray traces individual requests across services. For developers, CloudTrail is particularly useful for finding denied calls and identifying which identity made an unexpected change.

How this module is organised

The module has a single lesson, Auditing and Debugging API Calls with AWS CloudTrail, which explains the types of event, trails, and how to use CloudTrail to investigate changes and permission errors.

  1. Auditing and Debugging API Calls with AWS CloudTrail Lesson 1
  2. Practise and review
  3. Test your knowledge 4 questions