Skip to content
Draft: this topic has not been reviewed yet. Check facts against the linked AWS documentation before relying on them.

Compliance, encryption and audit logs on AWS

Difficulty
Confidence

Three words come up together in this part of the exam:

  • Security: protecting data and systems.
  • Governance: knowing what you have, setting rules for it, and seeing who changed what.
  • Compliance: proving to auditors, customers and regulators that you follow the required standards.

AWS helps with all three: it publishes evidence for its part of the shared responsibility model, provides encryption, and records activity so you can prove what happened.

Finding AWS compliance information

Many industries have standards, such as PCI DSS for card payments, HIPAA for US health data, ISO 27001 for information security, and GDPR for personal data in the EU. AWS supports these in three ways:

  • AWS Artifact: a free, self-service portal in the console where you download AWS’s own audit reports, such as SOC reports, ISO certificates and PCI DSS attestations. You can also review and accept agreements there, such as a Business Associate Addendum (BAA) for HIPAA.
  • AWS Compliance Programs pages list which standards and laws AWS supports, by country and by industry.
  • Services in Scope by Compliance Program shows which AWS services are covered by each program.

Compliance needs differ. A bank in Europe and a hospital in the US have different rules, and not every AWS service is covered by every program. Check both the Region and the service before you build a regulated workload.

Remember the shared model: AWS’s certifications cover its infrastructure. Your application still has to meet the standard for your part.

Encryption: protecting data

Kind Protects data How on AWS
In transit While it travels over a network TLS (HTTPS) connections. AWS Certificate Manager (ACM) issues and renews TLS certificates for your websites
At rest While it is stored on disk Service-side encryption with keys from AWS Key Management Service (AWS KMS), or AWS CloudHSM for dedicated hardware key storage you control

Encryption is built into most AWS services rather than being a separate project. For example, Amazon S3 encrypts every new object automatically, and you can turn on encryption for EBS volumes and RDS databases with a setting.

  • AWS KMS creates and manages encryption keys, controls who can use them, and logs every use.
  • AWS CloudHSM gives you your own hardware security module when rules require keys in dedicated hardware.

Logs and records: who did what, and when

Service Records Answers questions like
AWS CloudTrail Every API call and console action in your account: who, what, when, from where “Who deleted this bucket yesterday?”
AWS Config The configuration of your resources over time, checked against rules you set “What did this security group look like last week? Are all our volumes encrypted?”
Amazon CloudWatch Metrics, logs and alarms from resources and applications “Is CPU high? Alert the on-call engineer.”
IAM access reports Credential reports and last-accessed information “Which users have not signed in for 90 days? Which permissions are never used?”

Together they support the three classic governance jobs:

  • Monitoring with CloudWatch.
  • Auditing with CloudTrail and AWS Config.
  • Reporting with IAM access reports and AWS Artifact.

Putting it together: an online payment company

A company that processes card payments must follow PCI DSS.

  1. It downloads AWS’s PCI DSS attestation from AWS Artifact to show its auditor that the AWS infrastructure is compliant.
  2. It checks Services in Scope to make sure every service it uses is covered.
  3. It encrypts card data at rest with KMS keys and in transit with TLS certificates from ACM.
  4. CloudTrail records every action, and AWS Config rules flag any unencrypted storage.
  5. CloudWatch alarms alert the team to unusual activity.

Common mix-ups

  • CloudTrail vs CloudWatch. CloudTrail logs who did what (API activity). CloudWatch watches how things are performing (metrics, logs, alarms).
  • CloudTrail vs Config. CloudTrail records the action (“Ana changed the security group”); Config records the resulting configuration and whether it follows your rules.
  • Artifact vs compliance programs. Artifact is where you download reports and agreements; the compliance program pages explain which standards AWS supports.

Check yourself

An auditor asks for AWS’s SOC 2 report. Where do you get it?

From AWS Artifact in the console.

Someone deleted an EC2 instance last night. Which service shows who did it?

AWS CloudTrail, which records API calls and console actions.

Your company must prove that all EBS volumes stay encrypted. Which service can continuously check this?

AWS Config, with a rule that checks for encrypted volumes.

What is the difference between encryption in transit and at rest?

In transit protects data moving over a network (for example with TLS); at rest protects data stored on disk (for example with KMS keys).

Key takeaways

  • AWS Artifact provides AWS’s compliance reports and agreements; compliance needs vary by Region, industry and service.
  • Encrypt in transit (TLS, ACM) and at rest (KMS, CloudHSM).
  • CloudTrail audits actions, AWS Config tracks configurations, CloudWatch monitors, IAM reports show access.

Cloud Study Lab is an independent study site. It is not affiliated with or endorsed by Amazon Web Services. AWS and the names of AWS certifications are trademarks of Amazon.com, Inc. or its affiliates.