← AWS Security Specialty: evidence-based security
07 / 25 · 45 MIN

Keys, masking, and retention

Distinguish cryptographic protection, visibility, and retention.

Concept and mechanism

KMS material rotation retains the logical key and neither re-encrypts data nor replaces previously issued data keys. If a plaintext data key was exposed, response needs to address that material and affected data. Do not declare complete mitigation merely because KMS rotation occurred.

Current documentation supports on-demand rotation of symmetric keys with EXTERNAL material after importing fresh material; automatic rotation has symmetric AWS_KMS scope. BYOK also does not make symmetric KMS ciphertext decryptable outside KMS.

Confirm actual interoperability before using material ownership as proof of an external recovery plan.

Guided application

Across accounts, KMS access needs owner authorization and suitable external IAM permission. Identify the key with an operation-supported ARN; an alias without context can resolve in the wrong account. For sensitive logs, CloudWatch Logs data protection acts at ingestion and does not retroactively mask older events.

The logs:Unmask permission reveals original values and should have controlled scope. For retention, S3 Object Lock protects versions; it does not prevent every new version using the same key. Expired fixed retention does not remove an active legal hold.

Retirement decisions should confirm both mechanisms and owners, including cost and exit conditions. Do not use key or object deletion as an automatic solution to every risk.

Workshop: key readiness and data exposure

A fictional inventory contains primary P and replicas R1 and R2 of a symmetric EXTERNAL KMS key. New material M2 is imported into P and R1; R2 still has only M1. Before reading the answer, identify the missing action and where to initiate rotation.

Answer: import the same M2 into R2 and, once all are ready, initiate on-demand rotation on P. Do not expect identifier synchronization to copy EXTERNAL material. The exercise does not authorize deleting M1: retention and recovery of older data still depend on required material.

In another event, plaintext data key D was exposed and protects copies of archive A. Rotating M1 to M2 does not replace D or re-encrypt A. Identify A as affected, address exposure and plan migration and validation of copies under your control.

Do not promise to recover confidentiality of copies already lost. Produce two separate decisions: rotation readiness and compromise response.

Workshop: visibility and retention matrix

The masking policy took effect at 10:00. E1 was ingested at 09:55; E2 at 10:05, with a confirmed match to the configured identifier. Ana can query but lacks Unmask; Bruno is authorized to access originals.

Predict this policy’s effect: it does not retroactively mask E1; Ana receives E2 masked and Bruno can request E2 unmasked. Record that the original still exists and that this sample does not demonstrate detection of all sensitive data. In the S3 archive, v1 has expired fixed retention and active legal hold.

With other permissions satisfied, permanent DELETE of v1 is denied; PUT with the same key can create v2 and DELETE without a version ID can create a delete marker. Neither of the latter outcomes proves deletion of v1. Complete a table of operation, version, relevant protection and outcome.

The answer uses only supplied data, with no executed CloudWatch, KMS or S3 operations.

IN PRACTICE

FinOps sees an expired deadline, but the version has an active hold. The evidence owner needs to participate in the decision.

Common pitfalls

Rotation as re-encryption; BYOK as open format; masking as deletion; key name as version; deadline as absence of hold.

Related topics: Governance and central controls · Detection and security evidence

Take this idea with you

Relate each control to the data, material, version, and period it actually protects.

Create account

References

AWS is a trademark of Amazon.com, Inc. or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by AWS. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.