MockCertMockCert
Menu

Test yourself in exam conditions

A full AWS Certified Generative AI Developer - Professional mock exam: 75 questions in 180 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Domain 3 · 4 topics · about 27 minTopics in this domainTopics

Domain 3 · Overview

Overview

Up next: Implement input and output safety controls. · 10 steps + check · 6 min

Domain 3 · Topic 1 of 4

Implement input and output safety controls.

Step 1 of 10

Think first How do you stop harmful input from reaching a model, and harmful or malformed output from reaching your users?

Why it matters: Questions describe a safety, format or misuse risk and ask which guardrail action, output control or security setting handles it.

Safety comes in layers placed before, inside and after the model. Guardrails screen prompts and responses, and structured outputs force a predictable shape. Zero operator access and IAM condition keys protect your data and access.

Step 2 of 10

Term Meaning
inputAction and outputAction Guardrail settings for what happens when harmful content shows up in prompts or responses.
Structured outputs A Bedrock capability that makes responses conform to your JSON schemas and tool definitions.
Strict tool use Setting strict: true on a tool so its name and inputs are validated against the schema.
Zero operator access Bedrock's data security model, subject to model-specific abuse and CSAM detection.
Confused deputy A cross-service access risk; condition keys limit which resource or account may be tied to that access.

Step 3 of 10

Defense in depth stacks controls before, inside and after the model. The exam guide pairs Comprehend pre-processing filters and Bedrock guardrails with Lambda post-processing and API Gateway response filtering. It adds jailbreak detection, input sanitization and adversarial testing. Text-to-SQL transformations help keep outputs deterministic.

Step 4 of 10

Set separate runtime actions for prompts and responses. Use inputAction for prompts and outputAction for responses. Available actions include Block and Detect, and Mask works with sensitive information filters only.

Amazon Bedrock guardrail actions compared

Action Effect on content What you see
Block Blocked Blocked messaging in its place
Mask Anonymized; sensitive information filters only Identifier tags such as {NAME} or {EMAIL}
Detect No action taken Detections in the trace response

Exam trap Filter strength is not a confidence threshold you must exceed. At strength HIGH, a guardrail blocks content even when its evaluation returns LOW confidence.

Step 5 of 10

Structured outputs make responses follow your JSON schema. Responses always parse as JSON, fields keep their declared types and required fields never go missing. Claude offers two mechanisms, JSON Schema output format and strict tool use, usable alone or together.

Step 6 of 10

Every schema object must set additionalProperties to false. A schema allows at most 12 optional properties across all nested objects. Compiled grammars stay cached for 24 hours from first access. The Converse API takes the schema in outputConfig.textFormat.

Exam trap With Claude through InvokeModel, output_config.format takes the schema as a JSON object, not a JSON string. Enabling citations alongside structured outputs returns a 400 error.

Step 7 of 10

Add strict: true to validate tool names and inputs. The tool input must then match the schema exactly, and the model cannot add fields outside it. Structured outputs span the Sonnet, Opus, Haiku, Fable and Mythos families, though support varies by model and endpoint.

Step 8 of 10

Bedrock may run automated abuse detection to catch policy violations. If it finds apparent CSAM in image inputs or outputs, it may block the request with a 400 ValidationException. Model providers cannot reach Bedrock's Model Deployment Accounts, so they never see your logs, prompts or completions.

Step 9 of 10

Stop confused deputies with aws:SourceArn and the full resource ARN. Choose aws:SourceArn to allow one resource, or aws:SourceAccount to allow any resource in that account. Bedrock requires TLS 1.2 and recommends TLS 1.3.

Exam trap Keep confidential data out of tags and free-form name fields. That text may end up in billing or diagnostic logs.

Step 10 of 10

Check

Check: Implement input and output safety controls.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Implement data security and privacy controls. · 11 steps + check · 7 min

Domain 3 · Topic 2 of 4

Implement data security and privacy controls.

Step 1 of 11

Think first How do you keep sensitive data out of prompts, responses, logs and storage when you build on Amazon Bedrock?

Why it matters: Questions describe a workload that handles sensitive data and ask which Bedrock control or setting protects it.

Protecting a foundation model workload takes layers: identity and network controls around Bedrock, then filters on the data itself. Guardrails can block or mask PII in text. Masking does not reach every copy of the data, such as invocation logs or tool fields.

Step 2 of 11

Term Meaning
Sensitive information filter A guardrail filter that uses context-aware machine learning to find PII in prompts and responses.
Mask mode The guardrail swaps detected PII for its type, such as {NAME} or {EMAIL}.
Model Deployment Account An AWS account per model provider in each Region, which the provider cannot access.
Data access policy An OpenSearch Serverless policy that limits a collection to the knowledge base service role.

Step 3 of 11

AWS secures the cloud; you secure what you put in it. AWS protects the infrastructure that runs its services. You judge how sensitive your data is and which company rules and laws apply.

Step 4 of 11

Every Bedrock request is signed and sent over TLS. Sign requests with an access key tied to an IAM principal, or with temporary AWS STS credentials. Bedrock requires TLS 1.2 and recommends TLS 1.3. Start custom policies with minimum permissions and add more only as needed. A guardrail uses an AWS managed key by default, or your own customer-managed KMS key.

Step 5 of 11

Model providers cannot see your prompts or completions. Each Region has one Model Deployment Account per model provider. Providers have no access to these accounts. So they cannot read Bedrock logs or customer prompts and completions.

Exam trap Using a third-party model does not hand your prompts to that model's vendor. Providers have no access to the deployment accounts that serve the model.

Step 6 of 11

A private OpenSearch Serverless collection is reached only through PrivateLink. Edit the collection's network access policy so Amazon Bedrock is an allowed service. Choose AWS service private access and enter bedrock.amazonaws.com. A data access policy then limits the collection to the knowledge base service role.

Exam trap A custom service role is not set up for you. Only when Bedrock creates the role can you skip the extra security configuration for the new knowledge base.

Step 7 of 11

A guardrail can block the whole message or mask the PII. The filter is probabilistic and reads context, so it is not an exact pattern match. You can add a custom regex, but it cannot use a lookaround match.

What each sensitive information action does

Feature Block Mask
When PII is found Blocks all the content Replaces the PII with its type
What the user gets A message you configure Text with placeholders such as {EMAIL}

Exam trap Do not expect the filter to inspect tool use. It evaluates text only, so PII in tool arguments, tool results or tool definitions is neither blocked nor masked.

Step 8 of 11

Masking changes the reply, not every copy of the data. With invocation logging on, the input field in CloudWatch Logs keeps the original request. Protect those logs with CloudWatch log data protection. The match field in the guardrail trace also holds the original PII value.

Exam trap Turning on Mask mode does not clean your invocation logs. Their input field always keeps the unmodified request, whatever the guardrail did.

Step 9 of 11

Bedrock Data Automation redacts PII only after you turn it on. PII detection is off by default. Enable it with modality-specific overrides in overrideConfiguration. Redaction changes only the JSON results, never your input assets or blueprints. The ALL entity type covers every supported PII type, and AWS_SECRET_KEY is one of them.

Step 10 of 11

Keep PII out of tags, names and other free-form fields. Text in tags or name fields may end up in billing or diagnostic logs. For agents, avoid PII in fields without customer managed key support, such as action group names. Amazon Comprehend and Amazon Macie detect PII, and S3 Lifecycle rules enforce data retention.

Step 11 of 11

  • Mask mode swaps PII for its type, like {NAME}; Block mode rejects the whole message with your own reply.
  • Guardrail masking never changes invocation logs; protect them with CloudWatch log data protection.
  • The sensitive information filter skips tool arguments, tool results and tool definitions.
  • Data Automation PII redaction is off by default and changes only the JSON results.
  • A private OpenSearch Serverless collection needs a PrivateLink endpoint and a network policy that allows Bedrock.

Sources: Infrastructure security in Amazon Bedrock - Amazon Bedrock (opens in a new tab) · Set up security configurations for your knowledge base - Amazon Bedrock (opens in a new tab) · Remove PII from conversations by using sensitive information filters - Amazon Bedrock (opens in a new tab) · Data protection - Amazon Bedrock (opens in a new tab) · Security, Guardrails, and Observability in Amazon Bedrock - Amazon Bedrock (opens in a new tab) · Preventative security best practice for agents - Amazon Bedrock (opens in a new tab) · Sensitive data detection and redaction in Amazon Bedrock Data Automation - Amazon Bedrock (opens in a new tab) · Types of PII that Amazon Bedrock Data Automation can detect and redact - Amazon Bedrock (opens in a new tab)

Check

Check: Implement data security and privacy controls.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Implement AI governance and compliance mechanisms. · 11 steps + check · 7 min

Domain 3 · Topic 3 of 4

Implement AI governance and compliance mechanisms.

Step 1 of 11

Think first When an auditor asks how a model was built and who oversees it, which records and controls let you answer?

Why it matters: Questions describe an audit, oversight or traceability need and ask which AWS service or setting meets it.

Governance means systematic visibility into how models are built, validated and used. Lineage tracking records each workflow step, model cards record intent and risk, and logs and metrics record what happens at run time.

Step 2 of 11

Term Meaning
Model governance A framework for systematic visibility into ML model development, validation and usage.
Model card An immutable record of a model's intended uses, risk ratings, training details and evaluation results.
Lineage graph A map of an ML workflow that SageMaker AI builds automatically, from training to deployment.
Trial component The lineage entity that tracks a training job and holds all of its parameters.
Unified telemetry An AgentCore mode that keeps an agent's spans and logs together in one log group.

Step 3 of 11

Lineage Tracking records each workflow step from data to deployment. It stores training jobs, datasets, pipelines, endpoints and the models themselves. A trial component holds every parameter of a training job. Query the lineage at any time to find the exact artifacts that trained a model. These records support auditing and compliance checks.

Exam trap You do not draw the lineage by hand. SageMaker AI creates the lineage graph automatically for an end-to-end training and deployment workflow.

Step 4 of 11

Model Cards keep one immutable record of a model's purpose and risk. Risk managers, data scientists and ML engineers record intended uses, risk ratings, training details and evaluation results. The record covers the model from conception to deployment. Programmatic model cards are a building block of compliance frameworks for FM deployments.

Step 5 of 11

Model Dashboard brings model information into one unified view. It pulls in Model Monitor, Transform Jobs, Endpoints, ML Lineage Tracking and CloudWatch data. Use it to see high-level model information and track performance.

Three SageMaker governance features compared

Feature Model Cards Lineage Tracking Model Dashboard
Main job Document and share essential model information Record the steps of an ML workflow Track model performance in one view
What it holds Intended uses, risk ratings, training details, evaluation results Training jobs, datasets, pipelines, endpoints, models Data from Model Monitor, Endpoints, CloudWatch and more

Step 6 of 11

Role Manager builds persona-based IAM roles with least privilege. Administrators define least-privilege permissions for common machine learning activities. Each role matches a persona's business needs. To share assets in SageMaker Studio, administrators set up databases and ML infrastructure with Amazon DataZone.

Step 7 of 11

Catalog where data comes from and tag what the model writes. Register each dataset's origin in the AWS Glue Data Catalog. Metadata tagging attributes FM-generated content to that origin. CloudTrail adds audit logging, AWS Glue can track data lineage automatically, and CloudWatch Logs collects decision logs.

Exam trap CloudTrail is the audit log, not the data registry. Registering where data comes from is the job of the AWS Glue Data Catalog.

Step 8 of 11

CloudWatch metrics, CloudTrail and invocation logging observe Bedrock traffic. These options cover traffic to the bedrock-runtime endpoint. To hear about state changes, configure an SNS topic, subscribe to it and create an EventBridge rule.

Exam trap An SNS topic alone sends nothing on a state change. You also need a subscription and an EventBridge rule.

Step 9 of 11

Unified telemetry keeps an agent's spans and logs in one log group. One log group lets you write IAM policies and customer managed key encryption for a single agent. Switch modes with UNIFIED_TRACES_DESTINATION_ENABLED. ADOT, the AWS OpenTelemetry distro, exports the agent's spans. Unified mode needs ADOT 0.18.0 or later, and evaluations need Transaction Search in both modes.

Unified and split telemetry for AgentCore agents

Feature Unified Split
Variable value true false
Where spans go One log group with the agent's logs The shared aws/spans log group
Default for Agents created on or after July 20, 2026 Agents created before that date

Exam trap Switching modes does not move old telemetry. Spans already delivered remain in their original log group.

Step 10 of 11

HyperPod task governance shares cluster compute through Kueue. Quota management, priority scheduling and resource sharing policies keep allocation fair across teams. A Compute allocation needs Kubernetes RBAC in a namespace named hyperpod-ns-team-name. Interactive Spaces are the development workloads that share the cluster. A high-weight priority class, such as 100, lets them preempt lower-priority jobs.

Exam trap Flexible Resource Sharing still lends idle quota; it only disables borrowing. Strict Resource Control is the strategy that disables both lending and borrowing.

Step 11 of 11

  • Lineage Tracking finds the exact artifacts that trained a model, for audits and compliance.
  • Model Cards are an immutable record of intended uses, risk ratings and evaluation results.
  • The Glue Data Catalog registers where data comes from; CloudTrail provides audit logging.
  • AgentCore agents created on or after July 20, 2026 use unified telemetry by default.
  • Changing the telemetry mode never moves spans that were already delivered.

Sources: Model governance to manage permissions and track model performance - Amazon SageMaker AI (opens in a new tab) · Amazon SageMaker ML Lineage Tracking - Amazon SageMaker AI (opens in a new tab) · Monitor the bedrock-runtime endpoint - Amazon Bedrock (opens in a new tab) · Telemetry setup and delivery - Amazon Bedrock AgentCore (opens in a new tab) · Exam Guide (AIP-C01) AWS Certified Generative AI Developer - Professional (opens in a new tab) · Example Create a rule to handle Amazon Bedrock state change events - Amazon Bedrock (opens in a new tab) · Task governance for Interactive Spaces on HyperPod - Amazon SageMaker AI (opens in a new tab) · Create policies - Amazon SageMaker AI (opens in a new tab)

Check

Check: Implement AI governance and compliance mechanisms.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Implement responsible AI principles. · 10 steps + check · 6 min

Domain 3 · Topic 4 of 4

Implement responsible AI principles.

Step 1 of 10

Think first How can you show that model answers follow your rules, judge them for fairness, and enforce policy when agents act?

Why it matters: Questions describe a transparency, fairness or policy need and ask which Bedrock or AgentCore feature meets it.

Responsible AI here rests on three habits: explain outputs, measure fairness and enforce policy. Automated Reasoning checks test answers against formal rules, evaluations score outputs with people or an LLM judge, and Policy in AgentCore decides every tool call.

Step 2 of 10

Term Meaning
Automated Reasoning finding A result holding the translated premises and claims, a confidence score, the variable values and the rules behind it.
TRANSLATION_AMBIGUOUS The finding when the translating LLMs disagree on meaning; it lists the alternative interpretations.
Work team Workers you choose for human evaluation, such as employees or industry subject-matter experts.
LLM-as-a-Judge Scoring outputs with a model; AgentCore Evaluations uses it for built-in and custom evaluators.
Forbid-wins Policy engine rule where a matching forbid beats any permit, on top of default-deny.

Step 3 of 10

Show users the reasoning and evidence behind an answer. Bedrock agent tracing provides reasoning traces. CloudWatch can collect confidence metrics that quantify uncertainty. Model cards document a foundation model's limitations, and Lambda functions can run automated compliance checks.

Step 4 of 10

Each finding holds the translated claims, a confidence score and rules. Findings below the confidence threshold become TRANSLATION_AMBIGUOUS. When you combine findings, that is the worst result, ahead of IMPOSSIBLE, INVALID, SATISFIABLE and VALID.

Three Automated Reasoning findings compared

Feature VALID INVALID TRANSLATION_AMBIGUOUS
Meaning Claims proven correct under the rules Claims contradict the rules Translating LLMs disagreed
Extra detail supportingRules and claimsTrueScenario contradictingRules The alternative interpretations

Exam trap TRANSLATION_AMBIGUOUS is not a rule violation. Vague or incomplete variable descriptions are its number one cause, so improve those first.

Step 5 of 10

Test rules with scenarios first, then add QnA tests. Scenarios check rule correctness; QnA tests check translation accuracy. Through the API, start a GENERATE_POLICY_SCENARIOS build workflow. Then call GetAutomatedReasoningPolicyNextScenario once per scenario. Split a genuinely complex domain into several focused policies.

Exam trap A rule without an if-then structure is not a harmless note. It becomes an axiom, a statement that is always true.

Step 6 of 10

A Bedrock work team holds at most 50 workers. Workers can be your own employees or subject-matter experts from your industry. Workers hear about an assigned job only at the moment you first add them to a work team.

Exam trap A new evaluation job does not notify workers already on the team. The notice goes out only when a worker is first added.

Step 7 of 10

Compare prompts with A/B tests and score outputs with an LLM judge. Prompt Management and Prompt Flows support systematic A/B testing for fairness. Online evaluation can sample a share of sessions, such as 10%, or use filters. Batch jobs accept ground truth such as expected tool trajectories.

On-demand and batch agent evaluation compared

Feature On-demand Batch
What you supply The span or trace IDs to score A CloudWatch Logs location and the evaluators
Who collects spans You, then you call Evaluate per session The service, in one asynchronous job

Step 8 of 10

Policy in AgentCore checks each tool call at the AgentCore Gateway. The engine evaluates every applicable policy for each request. It enforces default-deny and forbid-wins automatically. Each decision is logged in CloudWatch metrics and logs, so compliance teams can audit it.

Exam trap A permit does not override a matching forbid. The engine applies forbid-wins semantics on every tool invocation.

Step 9 of 10

Automated reasoning flags policies that always allow or always deny. Cedar is a policy language, and Dogwood is a superset of it: every valid Cedar policy is also valid Dogwood. Cedar analysis spots permits with no limiting conditions and forbids with no exceptions. Natural language authoring validates candidate policies against the tool schema. A guardrail's confidence score can permit, forbid or suppress a response.

Step 10 of 10

Check

Check: Implement responsible AI principles.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 3 · after the last topic

Domain 3 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 3 quiz

15 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.

Flashcards

Domain 3 flashcards

8 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full AWS Certified Generative AI Developer - Professional mock exam: 75 questions in 180 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Next domain · 12% of the examOperational Efficiency and Optimization for GenAI Applications3 topics

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.