Classifying Data and Applying Protection Controls
This lesson explains how data classification drives encryption, access control and audit logging, and how tags let those controls apply automatically.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how a classification scheme maps data to required controls.
- Identify the encryption, access and logging controls for sensitive data.
- Explain how tags, ABAC and SCPs apply controls by classification.
Classifying data
A classification scheme defines levels, for example public, internal, confidential and restricted, and the controls each level requires. Each data store is assigned a level, recorded as a tag such as DataClassification, so that policies can act on it: SCP conditions require encryption with customer managed keys for restricted data, ABAC grants access only to principals cleared for that level, and AWS Config rules check that each level's controls are in place. Classification is reviewed when data sets or uses change.
The protection controls
Encryption
KMS customer managed keys with key policies that separate key administrators from key users; separate keys per data set or classification to limit the impact of a compromised key; TLS in transit; and client-side or field-level encryption for the most sensitive fields.
Access control
Least-privilege IAM and ABAC on classification tags, S3 Block Public Access enforced organisation-wide, data perimeter policies, Lake Formation column and row permissions for analytics, and private network paths through VPC endpoints.
Audit logging
CloudTrail management and data events (for example S3 object reads and KMS Decrypt calls), database audit logs and application logs, delivered to a separate log archive account with Object Lock.
Controls by classification
Data lifecycle
Protection includes keeping data only as long as needed. Retention rules and lifecycle policies delete or archive data when its purpose ends, backups follow the same classification and encryption, and test environments use masked or synthetic data instead of production copies.
| Classification | Example controls |
|---|---|
| Public | Integrity controls; no confidentiality requirement |
| Internal | Encryption at rest, access limited to the organisation |
| Confidential | Customer managed keys, least-privilege roles, access logging |
| Restricted | Dedicated keys, ABAC by clearance, data events, retention limits, private network access only |
A payroll data platform
A payroll provider stores salary data, bank details and anonymised statistics across many buckets and databases, and must show auditors that the strictest controls apply to bank details.
The team classifies bank details as restricted and statistics as internal, tagging each store. An SCP denies writes to restricted buckets that do not use the restricted data KMS key, and ABAC allows only payroll operators with the matching clearance tag to read them.
CloudTrail data events record every read of restricted objects into the log archive, and a Config rule reports any restricted store without the required key or tag, giving auditors continuous evidence.
How can a new restricted data set receive the right controls without anyone editing policies?
Show answer
By tagging it with its classification: ABAC policies, SCP conditions and Config rules that refer to the classification tag apply to it automatically.
Exam Tips
Remember for the exam
- Apply controls by sensitivity at scale: classification tags with ABAC and SCP conditions.
- Record every read of sensitive S3 objects: CloudTrail data events.
- Separate those who manage keys from those who use them: separate key policy statements.
- Delete data when its purpose ends: retention rules and lifecycle policies.