Lesson 13 of 36 · see all lessons
  1. Start here: cloud concepts (domain 1, 24%)

    1. 1. Start here: the exam, the plan and what you already know
    2. 2. What the cloud is: benefits, service models and deployment models
    3. 3. AWS global infrastructure: Regions, Availability Zones and edge locations
    4. 4. Cloud economics: what you pay for on-premises vs in the cloud
    5. 5. The AWS Well-Architected Framework: six pillars
    6. 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
  2. Security and identity (domain 2, 30%)

    1. 7. The shared responsibility model: who secures what
    2. 8. IAM basics: users, groups, roles and policies
    3. 9. Protecting the root user, MFA and credentials
    4. 10. Identity at scale: IAM Identity Center, federation and cross-account access
    5. 11. Encryption and keys: protecting data at rest and in transit
    6. 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
  3. Governance, ways of working and compute (domains 2 and 3)

    1. 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
    2. 14. Governing many accounts: Organizations, Control Tower and Service Catalog
    3. 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
    4. 16. Amazon EC2: virtual servers and instance types
    5. 17. Elasticity: Auto Scaling and Elastic Load Balancing
    6. 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
  4. Storage, databases and networking (domain 3, 34%)

    1. 19. Block and file storage: EBS, instance store, EFS and FSx
    2. 20. Amazon S3: buckets, storage classes and lifecycle policies
    3. 21. Hybrid storage, backup and disaster recovery
    4. 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
    5. 23. Networking: VPCs, subnets, gateways and security layers
    6. 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
  5. Analytics, AI, integration and more (domain 3)

    1. 25. Analytics services: Athena, Glue, Kinesis, Redshift and Quick
    2. 26. AI and machine learning services: SageMaker AI, Lex, Rekognition and Amazon Q
    3. 27. App integration and business apps: SQS, SNS, EventBridge, Connect and SES
    4. 28. Developer tools, end-user computing, Amplify and IoT
  6. Billing, pricing and support, then exam practice (domain 4, 12%)

    1. 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
    2. 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
    3. 31. AWS Support plans, Trusted Advisor and where to get help
    4. 32. Final review and exam day: every decision on one page
    5. 33. Mock exam 1
    6. 34. Mock exam 2 Exam Pack · $12
  7. Extra practice: mock exams 3 and 4

    1. 35. Mock exam 3 Exam Pack · $12
    2. 36. Mock exam 4 Exam Pack · $12
See the leaderboard

18 min

Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact

Know which service monitors, which audits API calls, which tracks configuration and where compliance reports live.

By the end of this lesson you can

  • Choose CloudWatch, CloudTrail, Config or Artifact from a scenario
  • Explain the difference between monitoring and auditing in plain words
  • Find AWS compliance reports and say what they do and don't prove
  • Name where to look for AWS security information

From earlier lessons · 1 of 2

Cedar Lane Books wants a managed service to detect unusual activity, such as API calls from a known bad IP address, across its AWS account. Which service fits?

Pick one answer.

From earlier lessons · 2 of 2

Which service creates and manages the encryption keys that protect Cedar Lane's data at rest?

Pick one answer.

Monday morning at Cedar Lane Books brings four questions. Why was the website slow on Saturday night? Who deleted the test database on Sunday? Are all the storage buckets still encrypted? And the card payment auditor wants proof that AWS itself meets PCI DSS. Four questions, four different AWS services.

[3]

Four services, four questions

Exam depth: know it cold.

These four services sound alike because they all record things. Each answers one question.

  • Amazon CloudWatch: how are my resources and apps performing right now?
  • AWS CloudTrail: who did what in my account, and when?
  • AWS Config: how is each resource set up, how has that changed, and does it follow my rules?
  • AWS Artifact: where are AWS's own compliance reports and agreements?

Learn the question, and the service follows.

[127][128][131][133]

One question per serviceYour AWS accountCloudWatch: is it healthy?CloudTrail: who did what?Config: how is it set up?Artifact: AWS's audit reportsMetrics, alarms, logs,dashboards.API calls recorded as events.Configuration history andrules.About AWS itself, not yourresources.

[127][128][131][133]

Amazon CloudWatch: is everything healthy?

Exam depth: know it cold.

Amazon CloudWatch is AWS's monitoring service. It watches your resources and apps in real time.

  • Metrics are numbers tracked over time, such as a server's CPU use. Many AWS services send basic metrics to CloudWatch for free.
  • Alarms watch a metric against a threshold you set. When it's crossed, an alarm alerts you or triggers an automatic action.
  • CloudWatch Logs collects and stores log files from AWS services and your own apps.
  • Dashboards show metrics and logs together on one screen.

The deciding words: performance, utilization, threshold, alarm, operational health.

[127]

Watch it happen · 10 s

A CloudWatch alarm on Saturday night

The web server sends its CPU metric to CloudWatch every minute.

Scene 1 of 3

[127]

Cedar Lane Books wants to be notified when the CPU use of its web servers stays above 80% for five minutes. Which AWS service meets this requirement?

Pick one answer.

AWS CloudTrail: who did what, and when?

Exam depth: know it cold.

AWS CloudTrail records actions in your account as events. An action can come from a user, a role or an AWS service. It's recorded whether it came through the console, the CLI, an SDK or the API.

Each event shows who acted, what they did, which resource it touched, when, and from where.

  • Event history is on by default. It keeps the past 90 days of management events in each Region, free to view.
  • For a longer record, create a trail. A trail delivers events as log files to an Amazon S3 bucket, and optionally to CloudWatch Logs.

The deciding words: who, API call, audit, account activity.

[128][129][130]

[127][128]

On Monday, Cedar Lane Books finds that a test database was deleted over the weekend. The team needs to know which user deleted it and when. Which AWS service should they check?

Pick one answer.

[129]

AWS Config: how is it set up, and is that allowed?

Exam depth: know it cold.

AWS Config keeps a detailed view of how your resources are configured. It also records how each configuration has changed over time, and how resources relate to one another.

A Config rule describes the setting you want, such as "every S3 bucket is encrypted". AWS Config checks resources against the rule as they are created or changed. A resource that breaks the rule is flagged as noncompliant, and you get a notification. Managed rules are ready-made rules you can switch on.

The deciding words: configuration history, compliant, drift from a rule, what did this look like last week.

[131][132]

Cedar Lane Books must show auditors that every storage bucket stays encrypted, and be alerted when one isn't. Which AWS service meets this requirement?

Pick one answer.

[132]

CloudWatch saw the spike. CloudTrail saw who did it. Config saw what changed. Artifact brought the paperwork. Picture: Movie-poster parody in a bold heist-film style.

AWS Artifact and compliance programs

Exam depth: know it cold.

AWS Artifact gives you on-demand downloads of AWS security and compliance documents. Examples are SOC reports (System and Organization Controls), ISO certifications and PCI (Payment Card Industry) reports. You can hand these to your auditors as evidence. Artifact is free.

Artifact also handles agreements with AWS. For example, a company subject to HIPAA, the US health privacy law, usually needs a Business Associate Addendum (BAA). You review and accept it in Artifact.

The deciding words: download, compliance report, SOC, ISO, PCI, agreement.

[133][134]

Exam depth: recognize it.

Compliance needs change with where you operate and what industry you're in. A shop selling in Europe deals with GDPR, the EU privacy law. A shop taking cards deals with PCI DSS. A clinic in the US deals with HIPAA.

AWS lists its compliance programs by type and by geography. Not every AWS service is covered by every program. The AWS Services in Scope by Compliance Program page shows which services each program covers. Check it before you put regulated data into a service.

[135][136]

[133][135]

Cedar Lane's payment auditor asks for AWS's latest PCI DSS attestation and SOC 2 report. Where can the finance team download them?

Pick one answer.

[133]

Access reports and where to find security information

Exam depth: recognize it.

In the IAM lessons you met two access reports. The exam guide lists them as governance tools.

  • The IAM credential report lists every user in the account and the state of their passwords, access keys and MFA devices. Auditors use it to spot old keys or users without MFA.
  • Last accessed information shows which services an identity actually used, and when. Remove what's never used, and you move closer to least privilege.

The deciding words: list all users and their credentials, unused permissions.

[137][138]

The guide also asks where AWS publishes security information.

SourceWhat you find there
AWS Security Center (aws.amazon.com/security).AWS's main security page, linking to security services, learning and how to report a vulnerability.
AWS Security Blog.Articles from AWS on security news, features and how-tos.
AWS Knowledge Center.Official AWS articles and videos that answer the most common customer questions.
AWS re:Post.AWS's question-and-answer site, with expert-reviewed answers.

The Knowledge Center now lives on re:Post, so you may see both names together.

[139][140][141][142]

The decision table

The question asks aboutPick
Performance, CPU, thresholds, alarms, dashboards.Amazon CloudWatch
Who made an API call, account activity, audit trail.AWS CloudTrail
Resource settings, configuration history, compliance with rules.AWS Config
Downloading AWS's SOC, ISO or PCI reports, or a BAA.AWS Artifact
Every user's passwords, keys and MFA status.IAM credential report

Decision rule: CloudWatch watches performance, CloudTrail watches people, Config watches settings, and Artifact hands over paperwork.

[127][128][131][133][137]

Rendering diagram…
Reports first, then people, then settings. Performance and health go to CloudWatch.

[127][128][131][133]

Exam-style practice

A company's security group was changed last week, and an app stopped working. The team wants to see what the security group's settings looked like before the change. Which AWS service meets this requirement?

Pick one answer.

[131]

A company's auditors require a record of all API activity in its AWS account for the past three years. What should the company do?

Pick one answer.

[129][130]

Cedar Lane Books plans to store card payment data in a new AWS service. Where should it check whether that service is covered by PCI DSS?

Pick one answer.

[136]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 17

[127][129][132][133][136][137]

Worth keeping

  1. CloudWatch monitors performance with metrics, alarms, logs and dashboards.
  2. CloudTrail records who did what. Event history keeps 90 days; a trail to S3 keeps more.
  3. AWS Config records resource settings over time and checks them against rules.
  4. AWS Artifact hands you AWS's compliance reports and agreements, free. Your own compliance is still yours.
  5. Compliance needs vary by country and industry, and not every service is in scope for every program.

Cedar Lane now has one AWS account doing everything: test, production and the finance team's experiments. One wrong click could hit all three. Next lesson: AWS Organizations and Control Tower, and why big companies run dozens of accounts.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (17)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [3]AWS: CLF-C02 Content Domain 2: Security and Compliance
  2. [127]AWS: What is Amazon CloudWatch?
  3. [128]AWS: What Is AWS CloudTrail?
  4. [129]AWS: Working with CloudTrail event history
  5. [130]AWS: Creating a trail for your AWS account
  6. [131]AWS: What Is AWS Config?
  7. [132]AWS: Evaluating Resources with AWS Config Rules
  8. [133]AWS: What is AWS Artifact?
  9. [134]AWS: Managing agreements in AWS Artifact
  10. [135]AWS: AWS Compliance Programs
  11. [136]AWS: AWS Services in Scope by Compliance Program
  12. [137]AWS: Generate credential reports for your AWS account
  13. [138]AWS: Refine permissions in AWS using last accessed information
  14. [139]AWS: Cloud Security - Amazon Web Services (AWS)
  15. [140]AWS: AWS Security Blog
  16. [141]AWS: AWS Official Knowledge Center Articles
  17. [142]AWS: AWS re:Post