AI Intermediate · 22% practice allocation

AI Intermediate: AWS Bedrock & AI Services Practice Questions

5 free sample questions from the AWS Bedrock & AI Services domain, with answers and explanations. The full AI Intermediate bank has 963 questions across 5 domains. Questions follow the AI Intermediate course content.

1.

A SaaS company is building a content generation platform on Amazon Bedrock. Their compliance team mandates that any AI-generated content must not include specific competitor brand names, must not produce sexually explicit material, and must redact any user-supplied personally identifiable information (PII) such as email addresses before the prompt reaches the model. Which Amazon Bedrock feature should the solutions architect configure to satisfy ALL three of these requirements?

  • A. Amazon Bedrock Guardrails with denied topics, content filters, and PII redaction configured✓ Correct
  • B. Amazon Bedrock Model Evaluation with a custom rubric scoring brand mentions, explicit content, and PII for each response
  • C. A pre-processing Lambda function in an Agents for Bedrock action group that strips brand names and PII before model invocation
  • D. Amazon Macie to scan prompts for PII, combined with Amazon Comprehend custom entity recognition to detect competitor names
Explanation

Amazon Bedrock Guardrails is the purpose-built feature that covers all three requirements in a single, integrated configuration. Denied topics can be configured to block references to specific competitor brand names. Content filters with configurable thresholds can block sexually explicit material. PII redaction can be enabled to automatically detect and redact entities such as email addresses from prompts before they reach the model. Model Evaluation with a custom rubric is incorrect because Model Evaluation assesses model output quality; it does not enforce runtime content policies or redaction. A pre-processing Lambda in an action group is incorrect because, although it could handle preprocessing, it is not the recommended native Bedrock approach and would need custom code to replicate what Guardrails provides natively; it also does not filter content on the model output side. Macie combined with Comprehend is incorrect because, while these are valid AWS services, combining them externally adds unnecessary complexity and latency, and this approach still does not apply guardrails to the model's outputs. Bedrock Guardrails handles both input and output.

2.

A developer is invoking an Anthropic Claude 3 Sonnet model on Amazon Bedrock using the InvokeModel API. The application sends a request and the API returns an HTTP 429 error. What is the MOST likely cause, and what is the recommended immediate mitigation?

  • A. The request has exceeded the service's throttling limit; implement exponential backoff with jitter and retry.✓ Correct
  • B. The model is not enabled in the selected AWS Region; request model access or switch to a cross-region inference profile.
  • C. The request payload exceeds the model's maximum token context window; truncate or summarize the prompt before resending.
  • D. The IAM role lacks the bedrock:InvokeModel permission for this model ARN; attach an IAM policy granting that action.
Explanation

HTTP 429 means 'Too Many Requests' (throttling). Amazon Bedrock returns it when a caller exceeds the requests-per-minute or tokens-per-minute quota for a model. The recommended fix is to wait using exponential backoff with jitter, then retry. The missing IAM permission option is wrong because a permission error returns HTTP 403 (AccessDeniedException). The Region availability option is wrong because that problem returns a 4xx validation error or ResourceNotFoundException, not 429. The context window option is wrong because an oversized prompt produces a ValidationException (400), not 429.

3.

A developer configures an Amazon Bedrock Agent with an action group. The action group's Lambda function occasionally returns an empty response body when the downstream API call fails. After deploying, users report that the agent silently returns incorrect answers in these failure scenarios instead of surfacing an error. What is the MOST likely root cause?

  • A. The OpenAPI schema for the action group does not define a 4xx error response schema, so the agent has no contract for recognizing failed API calls and treats them as valid.
  • B. The Lambda function is not returning the required response format, so the agent interprets the empty body as a successful empty result and continues reasoning.✓ Correct
  • C. The agent's instruction prompt lacks explicit guidance on handling Lambda errors, so the foundation model hallucinates answers whenever an action group call fails.
  • D. The Lambda function's resource-based policy does not grant the Bedrock Agent lambda:InvokeFunction permission, so failed invocations are silently dropped by the agent.
Explanation

Bedrock Agents require action group Lambda functions to return a specific response structure. If the Lambda returns an empty or malformed body, the agent may treat it as a successful operation with no data and keep reasoning, which leads to fabricated answers. The missing lambda:InvokeFunction permission option is wrong because a permission problem causes an explicit authorization error that the agent would surface, not a silent drop. The missing 4xx error schema option is wrong because OpenAPI error definitions help the agent understand API contracts, but the root issue is the Lambda response format. The missing instruction guidance option is wrong because instructions can shape error handling, but the underlying problem is that the Lambda never returns a proper response that signals failure.

4.

An enterprise AI team is deploying a high-throughput Amazon Bedrock application that will consistently send 10 million tokens per day to Claude 3 Haiku. The team is evaluating on-demand pricing versus provisioned throughput. Which TWO statements are accurate when comparing these pricing models? (Select TWO)

  • A. On-demand pricing is always less expensive than provisioned throughput for any workload, regardless of token volume.
  • B. On-demand inference automatically scales to handle traffic spikes without pre-commitment.
  • C. Provisioned throughput enables fine-tuned custom model deployment, while on-demand does not support custom models.
  • D. Provisioned throughput is cost-effective only when actual utilization is consistently high relative to the committed capacity.✓ Correct
  • E. On-demand pricing supports all models available on Bedrock, while provisioned throughput is limited to Amazon Titan models only.
  • F. Provisioned throughput guarantees a reserved model unit capacity and is billed hourly regardless of actual usage.✓ Correct
Explanation

Provisioned throughput reserves model units (MUs) for exclusive use by the customer and is billed on an hourly basis for the committed term, regardless of whether tokens are actually consumed — making the reserved-capacity, hourly-billing statement correct. Provisioned throughput is economically beneficial only when utilization is consistently high enough to justify the committed cost; at low or variable utilization, on-demand is cheaper — making the high-utilization statement correct. On-demand is NOT always cheaper; at sustained high throughput, provisioned throughput can be significantly more cost-effective. Provisioned throughput is not limited to Titan models; it supports many Bedrock models including Claude. While provisioned throughput is required to host fine-tuned custom models, this is an additional feature distinction, not the primary pricing comparison point — and the custom-model statement as written is not accurate as a blanket rule. On-demand does scale automatically, which is true but was not among the correct answer choices selected.

5.

A fintech company is using Amazon Bedrock with the Anthropic Claude model for internal financial analysis. A compliance officer raises a concern that the application might inadvertently expose customer Social Security Numbers (SSNs) and credit card numbers in model responses. Which Bedrock Guardrails capability should be enabled to address this concern?

  • A. Enable sensitive information filters (PII redaction) and select SSN and credit card number as entity types to detect and mask in model outputs✓ Correct
  • B. Set the content filters for 'sexual content' and 'violence' to HIGH, since these filter tiers also block PII such as SSNs and card numbers
  • C. Enable contextual grounding checks with a high threshold so the model only responds from retrieved documents, which prevents it from generating SSNs or card numbers
  • D. Configure a denied topic for 'financial personal data' with sample phrases so the guardrail blocks any response mentioning SSNs or card numbers
Explanation

Bedrock Guardrails includes a sensitive information filter that can detect and then redact or block specific PII entity types, including Social Security Numbers and credit card numbers, in both input prompts and model responses. Enabling this filter with the relevant entity types directly addresses the compliance concern. A denied topic for 'financial personal data' blocks responses on a defined subject area, but topic-level blocking is too coarse to reliably prevent PII. It would not reliably catch SSNs embedded in otherwise compliant responses. Content filters for sexual content and violence have nothing to do with PII. Those categories cover harmful content types, not personal data exposure. Contextual grounding checks keep responses anchored to source documents. They do not detect or redact PII data types, and they would not stop the model from surfacing PII that appears in retrieved content.

Test yourself across every AI Intermediate domain

The free AI Intermediate practice test mixes about 20 questions weighted like the exam. The full 963-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

AWS Bedrock & AI Services study guide (AI Intermediate) →

Other AI Intermediate domains

← All AI Intermediate study resources