SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Security and Compliance

Data Protection on AWS: KMS, ACM, Secrets, and Security Services (SOA-C03)

26 min readSOA-C03 · Security and ComplianceUpdated

Data and infrastructure protection is the operational discipline of classifying what you store, encrypting it at rest and in transit, keeping secrets out of code, and remediating the findings your security services raise. Task 4.2 of the SOA-C03 exam tests all of it from the operator's seat: enforcing a tag-based classification scheme, enabling default EBS encryption per Region, working the snapshot-copy-restore sequence for an unencrypted RDS instance, diagnosing KMS access and key-state errors, rotating keys, keeping ACM certificates renewing and monitored, enforcing TLS to S3, load balancers and databases, choosing between Secrets Manager and Parameter Store, and telling GuardDuty, Inspector, Macie, Config, AWS Security Agent and Security Hub CSPM apart. It closes with automated remediation across accounts and containing a compromised instance without losing evidence. This lesson covers skills 4.2.1 through 4.2.5.

What you’ll learn

  • Implement a data classification scheme with tag policies and tag-scoped Config rules, and verify it in S3 with Macie automated discovery and discovery jobs.
  • Configure encryption at rest with KMS — default EBS encryption per Region, key policies, cross-account access, rotation and key states — and troubleshoot KMS errors.
  • Encrypt existing EBS volumes and RDS instances with the snapshot, encrypted-copy, restore sequence, and choose between SSE-S3, aws/s3 and customer managed keys.
  • Keep ACM certificates renewing and monitored, and enforce TLS on S3, Application Load Balancers and RDS.
  • Select Secrets Manager or Parameter Store (and its tier), and share secrets across accounts correctly.
  • Distinguish GuardDuty, Inspector, Macie, Config, AWS Security Agent and Security Hub CSPM, and wire findings into automated remediation and evidence-preserving containment.

The 9 parts · about 18 min of reading

  1. Classify first, then protectStart hereStore classification as tags, standardize them with tag policies, scope Config rules to them, and let Macie verify S3 contents.3 min
  2. Encryption at rest with AWS KMSDefault EBS encryption is per Region; key policies are the primary authority, and rotation and key states follow fixed rules.3 min
  3. Walkthrough: encrypting resources that already existExisting EBS volumes and RDS instances are encrypted by snapshot, encrypted copy and restore; S3 decides which key controls decryption.2 min
  4. Encryption in transit with ACMACM renews DNS-validated certificates but never imported ones; enforce TLS on S3, ALB listeners and RDS parameter groups.2 min
  5. Storing secretsSecrets Manager rotates credentials automatically; a standard-tier SecureString suits static secrets, and cross-account reads need a CMK.2 min
  6. The findings servicesGuardDuty finds active threats, Inspector finds CVEs, Config checks configuration, and Security Hub CSPM aggregates and scores findings.2 min
  7. Choosing the right security serviceMatch the symptom to the specialist detector, and choose Security Hub CSPM only for a consolidated, scored, cross-account view.1 min
  8. From finding to fixFindings flow through EventBridge to SNS and a Lambda or runbook; GuardDuty administrators remediate centrally with cross-account roles.2 min
  9. Containing a compromised instance without destroying evidenceIsolate the running instance with an empty security group, snapshot its volumes, and use NACLs to cut sessions already in progress.1 min

Mind map

Classification lives in a resource tagTag policies standardize key andvaluesConfig rules can be scoped to a tagvalueMacie finds PII in S3 objectsDiscovery job at 100% checks everyobject1✓Classification and MacieDefault EBS encryption is per RegionKey policy is the primary authorityAuto Scaling SLR needs kms:CreateGrantAWS managed keys never workcross-accountCancelKeyDeletion leaves key Disabled2✓Encryption at rest withKMSSnapshot, encrypted copy, restore, cutoverNo encrypted replica of unencryptedRDSEBS: CopySnapshot with Encrypted andkeyS3 encrypts new objects with SSE-S3Bucket Keys change cost, not authority3✓Encrypting existingresourcesDNS validation renews while CNAMEremainsImported certs never renewApproaching Expiration covers importedcertsS3: deny when aws:SecureTransport isfalseRDS: TLS via custom parameter group4✓Encryption in transitwith ACMSecrets Manager: automatic rotationRDS can manage the master passwordStandard SecureString: free, staticsecretsParameter policies expire or notifyonlyCross-account secret needs a CMK5✓Secrets Manager vsParameter StoreGuardDuty: active threats, neverblocksInspector: CVEs in EC2, ECR and LambdaSecurity Hub CSPM: standards and scoreHome Region aggregates linked RegionsAutomation rules can suppress findings6✓Findings servicesSpecific symptom: pick the specialistOnly Inspector reports CVEsMacie only examines data in S3Consolidated view or score: SecurityHub CSPM7✓Choosing the serviceEventBridge rule: match, notify,remediateGuardDuty admin gets member findingsOne rule per Region, cross-accountroleConfig remediation needs a Config rule8✓Finding to fixSwap in a no-rule isolation securitygroupSnapshot volumes; keep instancerunningSecurity group change keeps livesessionsNACL deny cuts an in-progress session9✓Containing a compromisedinstanceData protection andsecurity services
Mind map

Data Protection on AWS: KMS, ACM, Secrets, and Security Services (SOA-C03)

Classification lives in a resource tagTag policies standardize key andvaluesConfig rules can be scoped to a tagvalueMacie finds PII in S3 objectsDiscovery job at 100% checks everyobject1✓Classification and MacieDefault EBS encryption is per RegionKey policy is the primary authorityAuto Scaling SLR needs kms:CreateGrantAWS managed keys never workcross-accountCancelKeyDeletion leaves key Disabled2✓Encryption at rest withKMSSnapshot, encrypted copy, restore, cutoverNo encrypted replica of unencryptedRDSEBS: CopySnapshot with Encrypted andkeyS3 encrypts new objects with SSE-S3Bucket Keys change cost, not authority3✓Encrypting existingresourcesDNS validation renews while CNAMEremainsImported certs never renewApproaching Expiration covers importedcertsS3: deny when aws:SecureTransport isfalseRDS: TLS via custom parameter group4✓Encryption in transitwith ACMSecrets Manager: automatic rotationRDS can manage the master passwordStandard SecureString: free, staticsecretsParameter policies expire or notifyonlyCross-account secret needs a CMK5✓Secrets Manager vsParameter StoreGuardDuty: active threats, neverblocksInspector: CVEs in EC2, ECR and LambdaSecurity Hub CSPM: standards and scoreHome Region aggregates linked RegionsAutomation rules can suppress findings6✓Findings servicesSpecific symptom: pick the specialistOnly Inspector reports CVEsMacie only examines data in S3Consolidated view or score: SecurityHub CSPM7✓Choosing the serviceEventBridge rule: match, notify,remediateGuardDuty admin gets member findingsOne rule per Region, cross-accountroleConfig remediation needs a Config rule8✓Finding to fixSwap in a no-rule isolation securitygroupSnapshot volumes; keep instancerunningSecurity group change keeps livesessionsNACL deny cuts an in-progress session9✓Containing a compromisedinstanceData protection andsecurity services

How the exam tests this

Task 4.2 scenarios map symptoms to services and sequences. Classification: tag policies standardize the tag, tag-scoped (organization) Config rules enforce and report, Macie automated discovery versus a 100%-depth job for full coverage. Encryption at rest: default EBS encryption per Region and the Auto Scaling service-linked role on a customer managed default key; the snapshot → encrypted copy → restore sequence and what RDS refuses; SSE-KMS with a customer managed key when decryption must be restricted or shared cross-account; KMS AccessDenied (key policy first, key ARN not alias) versus key-state errors (DisabledException for a disabled key; KMSInvalidStateException for pending deletion: cancel, then enable); rotation periods, imported material and AWS managed keys. In transit: DNS validation, imported certificates, DaysToExpiry and ACM EventBridge events, aws:SecureTransport, ALB redirects, RDS TLS parameters with certificate verification. Secrets: Secrets Manager rotation and RDS-managed passwords, Parameter Store tiers, cross-account secrets. Findings: GuardDuty, Inspector, Macie, Config, AWS Security Agent, Security Hub CSPM aggregation and automation rules, EventBridge remediation in the administrator account, Config remediation from rules, and containment with snapshots and NACLs.

Key takeaways

  1. Classification is a tag: tag policies standardize it, tag-scoped (organization) Config rules enforce and report on it, and Macie checks that S3 data matches its label.
  2. Macie automated discovery samples daily for broad coverage; a discovery job with 100% sampling depth inspects every object in the buckets you choose. Customer managed keys must let the Macie role decrypt.
  3. Default EBS encryption is per account and Region; a customer managed default key must allow the Auto Scaling service-linked role, including kms:CreateGrant.
  4. The KMS key policy is the primary authority; cross-account use needs the key policy and the caller's IAM policy on the key ARN, so AWS managed keys never work cross-account.
  5. Automatic rotation runs every 90–2,560 days; imported material rotates on demand after importing new material into the same key; AWS managed keys rotate yearly on AWS's schedule.
  6. You cannot encrypt an existing EBS volume or RDS instance in place, restore an unencrypted RDS snapshot to an encrypted instance, or create an encrypted replica of an unencrypted instance.
  7. ACM renews issued and Private CA certificates under the same ARN; imported and IAM-stored certificates never renew — monitor DaysToExpiry or the Approaching Expiration event.
  8. Enforce TLS with aws:SecureTransport on S3, an HTTP-to-HTTPS redirect on an ALB, and require_secure_transport or rds.force_ssl on RDS.
  9. Secrets Manager for rotation (or RDS-managed master passwords); a standard-tier SecureString for static secrets. Parameter policies notify or expire, they never rotate.
  10. Findings → EventBridge → SNS plus runbook; Config remediation runs only from Config rules. Security groups don't cut tracked connections — use a NACL deny, and never stop the instance before capturing evidence.
0/9
Ready to start

Part 1: Classify first, then protect

Store classification as tags, standardize them with tag policies, scope Config rules to them, and let Macie verify S3 contents.

3 min read · 9 parts, about 18 min in allStart lesson

Frequently asked questions

How do I encrypt an existing unencrypted RDS instance?

You cannot enable encryption on an existing RDS instance, restore an unencrypted snapshot directly to an encrypted instance, or create an encrypted read replica of it. Take a snapshot, copy the snapshot with encryption enabled and your chosen KMS key, restore a new DB instance from the encrypted copy, then cut the application over to the new endpoint during a maintenance window and delete the old instance. Writes made after the snapshot must be re-synced, so plan the cutover carefully.

How does AWS KMS key rotation work?

Rotation changes a key's material but keeps its key ID and ARN, and KMS keeps the old material so existing ciphertext still decrypts. For customer managed keys with KMS-generated material you can turn on automatic rotation with a period of 90 to 2,560 days (365 by default) and also rotate on demand. Keys with imported material do not rotate automatically: you import new material into the same key and rotate on demand. AWS managed keys rotate every year on a schedule you cannot change.

Why can't another account decrypt data encrypted with an AWS managed KMS key?

Cross-account KMS use needs two permissions: the key policy in the owning account must allow the other account or role, and the caller's IAM policy must allow the KMS action on the key's ARN. The key policies of AWS managed keys such as aws/s3, aws/ebs and aws/secretsmanager are controlled by AWS and cannot be edited, so they can never allow another account. Re-encrypt shared data with a customer managed key whose key policy grants the other account access.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?