CertBrain
CoursesBlog
Sign in
← Back to decks
Sign in to save your progress, vote, and build your own decks.Sign in

Data Governance Strategies

Data governance is the set of decisions about how data moves through an AI system and how long it stays: where it's stored and processed, what gets logged, who watches it, and when it's deleted. For a generative AI application, that data includes training sets, documents used for retrieval, and…

10 cards
Study this deck

Data Governance Strategies

Data governance is the set of decisions about how data moves through an AI system and how long it stays: where it's stored and processed, what gets logged, who watches it, and when it's deleted. For a generative AI application, that data includes training sets, documents used for retrieval, and every prompt and response. The exam expects you to know the main strategies (lifecycle, logging, residency, monitoring and retention) and which AWS features put them into practice.

Data Lifecycle

Every piece of data has a life: it's collected, stored, used, archived and eventually deleted. A governance plan decides each step in advance instead of letting data pile up. For AI, that means knowing where training data came from, how long prompts and responses are kept, and when old copies are removed. Keeping data longer than needed adds cost and risk, because anything you store can leak or be misused.

Logging AI Interactions

To show what an AI system actually did, you need a record of its inputs and outputs. Amazon Bedrock model invocation logging captures the full request, the response and metadata for model calls in an account and Region. It's turned off by default, so a team has to enable it, and it can deliver logs to Amazon S3, Amazon CloudWatch Logs or both. The destination must be in the same account and Region.

This is different from AWS CloudTrail, which records that an API call happened and who made it, but isn't where you look for the full text of every prompt and answer.

Data Residency

Residency rules say where data may be stored or processed, often within one country or region. On AWS you control this mainly by choosing the AWS Region. Cross-Region inference in Amazon Bedrock adds a choice: a geographic inference profile keeps processing inside a geography such as the US or EU, while a global profile can route requests to any supported commercial Region. Organizations with residency requirements should use geographic profiles. CloudTrail logs cross-Region requests in the source Region and records which Region processed each one.

Monitoring and Observation

Governance doesn't end at launch. Teams watch usage and behavior over time: Amazon Bedrock publishes metrics such as invocation counts, latency and input and output token counts to Amazon CloudWatch, where alarms can flag unusual spikes. Reviewing invocation logs and evaluation results over time shows whether the system still behaves as approved.

Retention

Retention sets how long each kind of data is kept, usually based on regulation or policy.

  • CloudWatch Logs keeps log data indefinitely by default. You set a retention period on each log group, and older data is deleted.
  • Amazon S3 Lifecycle rules move objects to cheaper storage classes after a set time and expire (delete) them when the retention period ends.
  • Bedrock invocation logs stay until you delete them or the destination's own retention rules remove them, so retention has to be set at the destination.

On the Exam

If a scenario needs a full record of prompts and responses, the answer is model invocation logging, not CloudTrail alone. If it needs data processed only within a geography, look for a geographic cross-Region inference profile or a single Region. If it needs data kept for a set time and then removed, look for CloudWatch Logs retention settings or S3 Lifecycle rules rather than manual cleanup.

Quiz me on this
A financial services company is launching an assistant built on Amazon Bedrock. Its compliance team needs a stored record of the full text of every prompt and every model response for later review. What should the company do?
  1. Rely on the AWS CloudTrail event history recorded for Amazon Bedrock
  2. Configure an Amazon Bedrock guardrail with a content filter
  3. ✓ Enable Amazon Bedrock model invocation logging to Amazon S3
  4. Run an Amazon Bedrock model evaluation job each month
A team sends its Amazon Bedrock invocation logs to a CloudWatch Logs log group. Company policy says these logs must be deleted after one year, but nobody has changed any settings. What should the team do?
  1. ✓ Set the log group's retention period to one year
  2. Do nothing, because CloudWatch Logs deletes log data after 90 days
  3. Copy the logs into AWS Artifact, which expires them automatically
  4. Create an AWS Config rule that deletes old log events
A company stores its AI prompt logs in Amazon S3. Regulations require keeping them for seven years. After 90 days the logs are almost never read, and after seven years they must be removed. Which approach meets these requirements with the LEAST ongoing effort?
  1. Have an engineer review the bucket and delete old log files every quarter
  2. Keep all logs in S3 Standard and decide about deletion later
  3. Move the logs into CloudWatch Logs and keep its default log settings
  4. ✓ Use an S3 Lifecycle rule to archive at 90 days, expire at 7 years
An application calls a model through an Amazon Bedrock geographic cross-Region inference profile. An auditor asks for proof of which AWS Region actually processed each request. Where can the team find this?
  1. In AWS Artifact, which lists the Regions used by each account
  2. ✓ In CloudTrail events in the source Region, which name the processing Region
  3. In AWS Trusted Advisor's fault tolerance checks
  4. In invocation logs sent to a separate bucket in each Region that processed requests
A governance team wants to be alerted quickly if an internal Amazon Bedrock application suddenly starts consuming far more input tokens than usual, which could signal misuse. Which approach meets this need?
  1. Review the AWS Artifact compliance reports for the account each quarter
  2. Run an Amazon Inspector scan on the application's code
  3. ✓ Create a CloudWatch alarm on Bedrock's input token count metric
  4. Turn on an Amazon Bedrock guardrail word filter
Amazon Bedrock model invocation logging
Captures full requests, responses and metadata for model calls, delivered to S3 and/or CloudWatch Logs. Off by default.
Geographic vs global cross-Region inference
Geographic keeps processing inside a geography (such as US or EU) for residency needs. Global routes to any supported Region.
CloudWatch Logs default retention
Log data is kept indefinitely unless you set a retention period on the log group.
S3 Lifecycle rules
Automatically move objects to cheaper storage classes after a set time and expire (delete) them at the end of a retention period.
Data lifecycle (governance)
Classifying data, setting handling rules for each class, and automating when it moves to cheaper storage, is archived or is deleted.