Compliance, Governance and Auditing
Overview
Many industries must prove they follow rules such as PCI DSS (payments), HIPAA (health data) or GDPR (privacy). AWS helps by maintaining certifications for its infrastructure and by giving you tools to record, evaluate and report on what happens in your account.
Think of a restaurant. The health inspector wants proof the kitchen is clean (AWS Artifact reports), a CCTV system that records who did what (CloudTrail), a checklist that flags anything out of standard (AWS Config) and a manager who scores improvements (Trusted Advisor).
This lesson ties together the services for compliance reports, activity logging, configuration tracking and advice. They appear frequently as "which service should you use to..." questions.
Key Concepts
- AWS Artifact is the self-service portal for AWS compliance reports (SOC, PCI, ISO) and for accepting agreements such as a BAA.
- AWS CloudTrail records API calls and account activity (who did what, when, from where); it is enabled by default for 90 days of event history.
- AWS Config records resource configurations over time and evaluates them against rules, showing compliance status.
- AWS Audit Manager automates evidence collection to simplify audits against frameworks.
- AWS Trusted Advisor inspects your account and recommends actions across cost optimisation, performance, security, fault tolerance, service limits and operational excellence.
- Amazon CloudWatch monitors metrics, logs and alarms; it is about performance and operations, whereas CloudTrail is about API activity.
- AWS Service Catalog lets organisations offer a catalogue of approved products for self-service deployment.
- AWS compliance programs cover many standards; customers remain responsible for compliant use of their own workloads.
Detailed Notes
Compliance on AWS
AWS undergoes third-party audits for frameworks such as SOC 1/2/3, ISO 27001, PCI DSS, HIPAA eligibility, FedRAMP and GDPR-related commitments. These cover the infrastructure AWS runs. Your workload is not automatically compliant: you must still configure services correctly (shared responsibility).
Which service answers which question?
| Question | Service |
|---|---|
| Where can I download AWS's SOC report? | AWS Artifact |
| Who deleted that S3 bucket and when? | CloudTrail |
| What did this security group look like last month? | AWS Config |
| Are all my EBS volumes encrypted? | AWS Config rules |
| Is CPU high on my instance? | CloudWatch |
| Where can I reduce cost or close security gaps? | Trusted Advisor |
| How do I gather audit evidence automatically? | Audit Manager |
CloudTrail in more detail
CloudTrail logs management events (for example RunInstances, DeleteBucket) and, optionally, data events (S3 object access). For long-term retention and across accounts, create a trail that delivers logs to S3.
aws cloudtrail create-trail --name org-trail --s3-bucket-name my-audit-logs --is-multi-region-trail
aws cloudtrail start-logging --name org-trail
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucket
AWS Config in more detail
Config keeps a timeline of configuration changes and checks them against rules such as "S3 buckets must not be public" or "EBS volumes must be encrypted". It can trigger remediation actions.
Trusted Advisor
| Category | Example check |
|---|---|
| Cost optimisation | Idle or underutilised EC2 instances |
| Performance | High utilisation instances |
| Security | S3 buckets open to the public, MFA on root |
| Fault tolerance | Multi-AZ configuration, backups |
| Service limits | Approaching quotas |
| Operational excellence | Recommended operational checks |
Business, Enterprise On-Ramp and Enterprise support plans unlock the full set of Trusted Advisor checks; Basic and Developer include only the core security and service-limit checks.
CloudTrail versus Config versus CloudWatch
| Service | Records | Think |
|---|---|---|
| CloudTrail | API calls | Who did what |
| Config | Resource state over time | What does it look like, is it compliant |
| CloudWatch | Metrics and logs | How is it performing |
Compliance resources at a glance
| Need | Where to look |
|---|---|
| AWS audit reports (SOC, PCI, ISO) | AWS Artifact Reports |
| Sign a business associate (HIPAA BAA) agreement | AWS Artifact Agreements |
| Which compliance programs a service supports | AWS Compliance Programs / Services in Scope pages |
| Customer-side compliance monitoring | AWS Config conformance packs, Security Hub, Audit Manager |
AWS Audit Manager continuously collects evidence to help prepare for audits, and Security Hub aggregates findings from GuardDuty, Inspector and Macie into one dashboard.
Customer responsibilities
Use Artifact reports as evidence of AWS's controls, then combine with Config, CloudTrail and Security Hub to demonstrate that your own configuration meets the standard.
Real World Example
A payments company needs to satisfy PCI DSS auditors. It downloads AWS's PCI attestation from AWS Artifact to cover the physical and infrastructure controls it inherits.
For its own controls it enables an organisation-wide CloudTrail trail, runs Config rules that flag unencrypted volumes and public buckets, and uses Audit Manager to collect evidence automatically. When an engineer asks "who changed that security group?", the answer is found in CloudTrail in seconds.
Architecture Diagram
- 1Every API call in the account is recorded by CloudTrail.
- 2Logs are stored durably in S3 for long-term retention.
- 3Config tracks resource configuration and evaluates compliance rules.
- 4Artifact and Audit Manager provide reports and evidence for auditors.
Best Practices
- ✓Create an organisation-wide, multi-Region CloudTrail that writes to a protected S3 bucket.
- ✓Use Config rules with automatic remediation for common violations.
- ✓Download and review Artifact reports before audits and keep them with your evidence.
- ✓Review Trusted Advisor checks regularly and act on high-risk items first.
- ✓Remember compliance is shared: document which controls you own.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Compliance reports / agreements" = AWS Artifact.
- "Who made this API call?" = CloudTrail.
- "Track configuration changes / compliance rules" = AWS Config.
- "Best-practice recommendations" = Trusted Advisor; full checks need Business support or higher.
Finished this lesson?
0 of 43 lessons done · 0% of the course

