Let’s Get Certified
Module 14 / 21 · AI safety, security and governance

Follow a private record through the AI system

Protect model traffic and verify removal of sensitive records from derived data stores.

Follow a private record through the AI system

Work through the decision

A customer asks for deletion. The primary record disappears, yet a support assistant still retrieves a paragraph and its trace stores the full request. What should the owner inventory?

Check your reasoning

Follow the identifier through chunks, vectors, caches, session history, traces and backups under the retention policy. Restrict access during processing and verify removal from the serving path. Redact unnecessary fields before they can enter prompts or logs.

Watch the source lesson at 4:22:40

Compare the choices

Use private network access and narrow roles
Use supported VPC endpoints and scoped permissions for the runtime, data stores and encryption keys. Evaluate network and identity controls separately.
Redact before inference and logging
Identify and mask unnecessary sensitive fields before sending content to the model or recording diagnostics.
Propagate erasure to derived stores
Track where records were copied or embedded; remove or invalidate derivatives and test that retrieval no longer serves them.
Use scoped pseudonyms
Replace identifiers with tokens where linkage is needed. Protect the mapping separately, restrict reidentification and set a retention limit.

Verify a deletion

If record X exists in the source, two indexed chunks and a session cache, deleting only the source leaves three live derivatives to inspect. Use a scoped query and cache test after invalidation. Treat backup expiry and restoration procedures explicitly in the owner's record.

Apply it on AWS

An interface VPC endpoint for the Bedrock runtime provides a private path. Check its endpoint policy alongside IAM permissions. Scope KMS key use for encrypted sources and configure log destinations and retention independently. Private networking alone leaves access and content minimization decisions open.

Practice the guide skills

  1. Map private endpoints, role scopes, encryption keys and log access for each service. Test access from an unrelated principal. Watch 4:22:40
  2. Mask unneeded personal fields before model invocation and telemetry. Inspect a sample trace to confirm masking happens early enough. Watch 4:29:20
  3. Trace an erasure request through documents, chunks, indexes, caches and sessions. Record verification and the applicable backup retention treatment. Watch 4:33:20

Official objectives for this lesson

Related lesson · Protect the data path and validate model outputs

Knowledge check

Follow a private record through the AI system quiz

Answer 3 questions. Check each answer for an explanation.