Courseiva

AWS Certified Generative AI Developer - Professional (AIP-C01) (AIP-C01) (AIP-C01) — Questions 151–169

169 questions total · 3 pages · All types, answers revealed

Page 2

Page 3 of 3

151
MCQmedium

When using Bedrock Converse API, how do you handle streaming responses?

A.InvokeModelStream
B.Poll the API until finished
C.Request a callback URL
D.ConverseStream
AnswerD

ConverseStream is the Bedrock Converse API operation that returns incremental response chunks over an event stream. Selecting it satisfies the stem's streaming requirement, whereas the non-streaming Converse call returns the complete response only after generation finishes.

Why this answer

The Bedrock Converse API provides a dedicated streaming operation called ConverseStream, which returns a stream of events (e.g., messageStart, contentBlockDelta, messageStop) as the model generates tokens. This is the correct way to handle streaming with the Converse API because it is purpose-built for the unified conversational interface, supporting multi-turn chat and tool use. Unlike InvokeModelWithResponseStream (used with the InvokeModel API), ConverseStream maintains the Converse API's message format and event structure.

Exam trap

AIP-C01 often tests the distinction between the InvokeModel API and the Converse API, tricking candidates into selecting InvokeModelWithResponseStream (or a misspelled variant like InvokeModelStream) when the question specifically asks about the Converse API's streaming operation.

How to eliminate wrong answers

Option A is wrong because InvokeModelStream is not a real Bedrock API operation; the actual streaming operation for the InvokeModel API is InvokeModelWithResponseStream, and it does not use the Converse API's message format. Option B is wrong because polling the API until finished is a non-streaming, synchronous pattern that defeats the purpose of streaming and is not how Bedrock supports real-time token delivery. Option C is wrong because Bedrock does not support callback URLs for streaming responses; streaming is handled via direct HTTP/2 or event stream connections, not webhooks.

152
MCQeasy

A company is using Amazon Bedrock to build a customer support chatbot and needs to ensure that PII is masked before the request reaches the foundation model. Which feature should the developer implement?

A.AWS KMS with envelope encryption
B.Amazon Macie
C.AWS WAF with custom regex rules
D.Amazon Bedrock Guardrails
AnswerD

Amazon Bedrock Guardrails apply sensitive-information filters that detect and mask PII in prompts before inference, satisfying the requirement that data be redacted prior to reaching the foundation model. Configured via `sensitiveInformationPolicyConfig`, they intercept the request at the service boundary, so the model never receives raw personal data.

Why this answer

Amazon Bedrock Guardrails is the native feature designed to apply safeguards — including PII detection and masking — to prompts and responses before they reach or return from the foundation model. It lets you define sensitive information filters that identify PII (names, emails, SSNs, credit cards) and either block or mask it, satisfying the requirement that PII never reaches the model.

Exam trap

AIP-C01 often tests whether candidates confuse data-at-rest protection (KMS, Macie) with inline prompt-level PII masking — the trap is selecting a storage or network security service when the requirement is to sanitize content before model inference.

How to eliminate wrong answers

Option A is wrong because AWS KMS with envelope encryption protects data at rest and in transit cryptographically, but it does not detect or mask PII within prompt content — the model would still receive the raw PII. Option B is wrong because Amazon Macie is a data discovery and classification service for S3 buckets; it identifies sensitive data in storage, not inline in Bedrock inference requests. Option C is wrong because AWS WAF with regex rules operates at the HTTP layer to block malicious traffic patterns, not to detect and mask semantic PII in natural-language prompts.

153
MCQeasy

Which Amazon Bedrock feature allows developers to restrict user queries based on specific topics or harmful content categories?

A.Knowledge Base Vector Index policies
B.Cross-region inference
C.Model Invocation Logs
D.Amazon Bedrock Guardrails
AnswerD

Amazon Bedrock Guardrails applies configurable policies that evaluate prompts and responses against denied topics and harmful content categories, blocking or filtering them. This directly satisfies the requirement to restrict user queries by topic or content category, which base model invocation alone cannot enforce.

Why this answer

Amazon Bedrock Guardrails provide a structured way to define policies that filter input and output based on topics, PII, and harmful content.

154
MCQeasy

What is the primary benefit of using a 'System Prompt' in Bedrock?

A.To bypass authentication.
B.To provide instructions that guide the model's behavior.
C.To increase the model's speed.
D.To compress the input tokens.
AnswerB

A system prompt supplies persistent instructions that shape a model's tone, role, and boundaries across every turn, unlike per-request user messages. This directly satisfies the stem's constraint of guiding behaviour, establishing consistent operating rules before conversation begins. It does not configure infrastructure, guardrails, or knowledge retrieval.

Why this answer

The system prompt sets the behavior and constraints for the model, ensuring consistent and safe interactions.

155
MCQmedium

An organization is deploying a RAG architecture using Amazon Bedrock and Amazon OpenSearch Serverless. The security team requires that all data remain within the VPC. How should the developer configure the integration?

A.Configure the Knowledge Base to use an S3 Gateway Endpoint only.
B.Deploy the Bedrock Knowledge Base using a PrivateLink interface endpoint for Bedrock and a VPC endpoint for OpenSearch Serverless.
C.Use a NAT Gateway to route all traffic to the Bedrock service.
D.Use an API Gateway with a WAF to restrict access to the vector store.
AnswerB

PrivateLink interface endpoints for Bedrock and a VPC endpoint for OpenSearch Serverless keep traffic on the AWS private network, so requests never traverse the public internet. This satisfies the constraint that all data remains within the VPC.

Why this answer

To keep all data within the VPC, you must use AWS PrivateLink interface endpoints for Bedrock and a VPC endpoint for OpenSearch Serverless. This ensures that traffic between the Knowledge Base, Bedrock, and the vector store never traverses the public internet. The S3 Gateway Endpoint alone is insufficient because Bedrock and OpenSearch Serverless require interface endpoints.

Exam trap

AIP-C01 often tests the assumption that an S3 Gateway Endpoint alone secures a RAG pipeline; the trap is forgetting that Bedrock and OpenSearch Serverless require their own PrivateLink interface endpoints to keep traffic private.

How to eliminate wrong answers

Option A is wrong because an S3 Gateway Endpoint only covers S3 traffic; it does not provide private connectivity to Bedrock or OpenSearch Serverless. Option C is wrong because a NAT Gateway routes traffic through the public internet, violating the requirement that data remain within the VPC. Option D is wrong because API Gateway with WAF controls access but does not keep traffic private within the VPC; it still uses public endpoints.

156
Multi-Selectmedium

Which TWO metrics are natively available in Amazon CloudWatch for monitoring Bedrock model invocation performance?

Select 2 answers
A.VectorEmbeddingAccuracy
B.InvocationLatency
C.GPUUtilization
D.InvocationClientErrors
E.ModelTrainingLoss
AnswersB, D

InvocationLatency is emitted natively by Amazon Bedrock to CloudWatch, measuring end-to-end time from request receipt to full response completion. It directly satisfies the stem's requirement for invocation performance monitoring without custom instrumentation, unlike token-level or throttling metrics that address different concerns.

Why this answer

Option B (InvocationLatency) is correct because Amazon Bedrock natively publishes the InvocationLatency metric to CloudWatch, which measures the time taken for a model invocation request to complete, directly reflecting model invocation performance. Option D (InvocationClientErrors) is correct because Bedrock also natively emits the InvocationClientErrors metric to CloudWatch, capturing the count of client-side errors (such as throttling or validation failures) during model invocations, which is essential for monitoring invocation health. Option A (VectorEmbeddingAccuracy) is not a CloudWatch metric provided by Bedrock; accuracy evaluation is handled through Bedrock model evaluation jobs, not runtime CloudWatch metrics.

Option C (GPUUtilization) is not natively exposed by Bedrock in CloudWatch, since Bedrock is a fully managed service and does not surface underlying GPU infrastructure metrics to customers. Option E (ModelTrainingLoss) is not applicable because Bedrock does not expose training loss metrics in CloudWatch; Bedrock focuses on inference of foundation models rather than customer-visible training telemetry.

157
MCQmedium

A compliance team requires that all prompts containing sensitive data be encrypted. How does Amazon Bedrock handle this during the request?

A.Bedrock only supports encrypted prompts if a VPC endpoint is used.
B.Amazon Bedrock uses TLS 1.2+ for encryption in transit.
C.The prompt must be base64 encoded.
D.The developer must manually encrypt the prompt string before calling the API.
AnswerB

Amazon Bedrock encrypts all data in transit between the client and the service using TLS 1.2 or higher, protecting prompts containing sensitive data during transmission. This satisfies the compliance requirement for encryption of prompts while in flight.

Why this answer

Amazon Bedrock encrypts all data in transit using TLS 1.2 or higher, including prompts sent to the API. This is automatic and does not require manual encryption or special encoding by the developer. Therefore, prompts containing sensitive data are encrypted in transit by default.

Exam trap

AIP-C01 often tests whether candidates know that encryption in transit is automatic with TLS 1.2+, and may incorrectly assume manual encryption or VPC endpoints are required for sensitive prompts.

How to eliminate wrong answers

Option A is wrong because TLS encryption is used regardless of whether a VPC endpoint is configured; a VPC endpoint provides private connectivity but is not a prerequisite for encryption. Option C is wrong because base64 encoding is not encryption and is not required by Bedrock. Option D is wrong because manual encryption of the prompt string is unnecessary; Bedrock handles transport encryption.

158
MCQhard

A generative AI application uses Amazon Bedrock to generate product descriptions. The application invokes the model for each product individually, resulting in many small requests that are throttled by the model's per-account quota. You need to increase throughput and reduce the number of API calls while keeping the same model and output quality. Which approach is MOST operationally efficient?

A.Implement request batching by grouping multiple product descriptions into a single Amazon Bedrock invocation using a structured prompt.
B.Use Amazon Bedrock provisioned throughput to reserve dedicated capacity for the model.
C.Increase the temperature setting to generate multiple variations in a single call.
D.Switch to a smaller, faster model to handle the requests more quickly.
AnswerA

Batching multiple products into one invocation reduces the number of API calls and makes better use of the model's token capacity per request. This directly lowers the chance of hitting per-account request quotas and improves throughput. The model and output quality remain unchanged because the same model processes a larger prompt. This is the most operationally efficient approach for the described scenario.

Why this answer

Batching multiple product descriptions into a single Amazon Bedrock invocation reduces the number of API calls, which directly mitigates quota throttling and improves throughput. It preserves the same model and output quality because the model is unchanged; only the prompt structure changes. This is the most operationally efficient way to handle many small generation tasks under per-account quotas.

Exam trap

The trap here is thinking that increasing temperature or switching models will solve throughput issues, when the real fix is reducing the number of API calls through batching.

159
MCQmedium

A retail company wants to fine-tune an Amazon Bedrock foundation model on historical customer support transcripts stored in Amazon S3. Legal requires that the training data remain within a specific AWS Region, that only authorized data scientists can start fine-tuning jobs, and that the resulting custom model be usable only by the production application account. Which set of controls best satisfies these requirements?

A.Keep the transcripts in a Region-specific S3 bucket, restrict the CreateModelCustomizationJob action to the data scientist role, and use a Bedrock custom model resource policy or cross-account IAM role to allow only the production account to invoke the model.
B.Encrypt the transcripts with an AWS KMS key, require multi-factor authentication for all Bedrock API calls, and enable model invocation logging to track production usage.
C.Store the transcripts in an S3 bucket in the required Region, grant fine-tuning permissions only to the data scientist role, and share the custom model with the production account using AWS Resource Access Manager.
D.Replicate the transcripts to multiple Regions for durability, allow any IAM principal with BedrockFullAccess to run fine-tuning, and rely on the model's default access settings for production use.
AnswerA

Keeping data in a Region-bound bucket satisfies residency, scoping the customization action to the data scientist role enforces authorization, and a cross-account IAM role or resource policy limits model invocation to the production account. This combination meets all three legal requirements.

Why this answer

Data residency is met by keeping transcripts in an S3 bucket in the required Region, authorization is met by scoping the model customization action to the data scientist role, and model usage is confined to the production account through a cross-account IAM role or Bedrock resource policy. Together these controls align with the legal constraints.

Exam trap

The trap here is assuming that AWS Resource Access Manager can share any AWS resource, when Bedrock custom models are shared through IAM and Bedrock access mechanisms rather than RAM.

160
MCQmedium

Your organization wants to evaluate the quality and safety of model outputs using a formal testing framework. Which service is designed for this?

A.AWS CloudWatch Synthetics
B.Amazon SageMaker Pipelines
C.AWS CodePipeline
D.Amazon Bedrock Model Evaluation
AnswerD

Amazon Bedrock Model Evaluation provides managed jobs that score foundation model outputs against built-in or custom metrics for quality, safety and robustness. It directly satisfies the requirement for a formal testing framework, unlike ad-hoc prompt testing or general monitoring tools.

Why this answer

Amazon Bedrock Model Evaluation is purpose-built to assess foundation model outputs for quality, accuracy, robustness, and safety (including toxicity and bias) using either automatic metrics or human/LLM-as-judge workflows. It is the only service in the list designed specifically for evaluating generative AI model outputs.

Exam trap

AIP-C01 often tests the confusion between MLOps pipeline services (SageMaker Pipelines, CodePipeline) and purpose-built generative AI evaluation, tempting candidates to pick a familiar CI/CD or ML orchestration tool.

How to eliminate wrong answers

Option A is wrong because CloudWatch Synthetics runs canary scripts to test endpoint availability and UI flows, not to evaluate model output quality or safety. Option B is wrong because SageMaker Pipelines is an MLOps orchestration tool for building, training, and deploying ML workflows — it does not provide built-in model output quality/safety scoring. Option C is wrong because AWS CodePipeline is a CI/CD service for application deployment, unrelated to model evaluation.

161
MCQhard

When migrating an on-premises RAG system to Amazon Bedrock, how should the team handle existing vector embeddings?

A.Map the old embeddings to new dimensions using a linear function.
B.Re-embed the documents using a model supported by Amazon Bedrock.
C.Use the Bedrock Import Vector API.
D.Import existing vectors directly into the OpenSearch index.
AnswerB

Amazon Bedrock's knowledge bases require embeddings produced by a supported embedding model, and vector spaces are model-specific. Embeddings from the on-premises model are therefore incompatible and cannot be reused. Re-embedding the source documents with a Bedrock-supported model ensures retrieval works correctly.

Why this answer

When migrating a RAG system to Amazon Bedrock, existing vector embeddings from an on-premises system cannot be directly used because they were generated by a different embedding model. Embeddings are model-specific; dimensions and semantic spaces differ. Therefore, the documents must be re-embedded using an embedding model supported by Amazon Bedrock (e.g., Amazon Titan Embeddings or Cohere Embed).

This ensures compatibility with Bedrock's vector store and retrieval.

Exam trap

AIP-C01 often tests the misconception that vector embeddings are interchangeable across models, but the exam expects candidates to recognize that embeddings are model-specific and must be regenerated when changing models.

How to eliminate wrong answers

Option A is wrong because mapping embeddings to new dimensions via a linear function is not feasible; embeddings from different models are not linearly related, and such transformation would destroy semantic meaning. Option C is wrong because there is no 'Bedrock Import Vector API'; Bedrock does not provide a direct API to import pre-existing vectors. Option D is wrong because importing existing vectors directly into OpenSearch is possible only if the vectors are compatible with the embedding model used for queries; since the old embeddings are from a different model, they would not match the query embeddings generated by Bedrock's model, leading to poor retrieval.

162
MCQmedium

A developer is configuring a RAG system and wants to ensure the model has access to the most recent data. How should they handle updates?

A.Wait for the Bedrock service to automatically detect changes.
B.Perform a 'Sync' operation on the Knowledge Base.
C.Use a cron job to restart the inference engine.
D.Delete and recreate the knowledge base daily.
AnswerB

A Sync operation on the Knowledge Base re-ingests and re-indexes the underlying data sources, so newly added or changed documents become retrievable. This satisfies the freshness constraint: without syncing, the RAG system keeps serving stale embeddings from the previous ingestion.

Why this answer

The 'Sync' operation in Knowledge Bases should be triggered whenever the source data changes in S3 to update the index.

163
MCQeasy

A developer wants to prevent the Generative AI application from producing content related to hate speech or violence. What is the most efficient configuration in Amazon Bedrock?

A.Create a custom fine-tuned model
B.Implement Amazon Bedrock Guardrails with content filters
C.Use AWS Config rules to monitor the model
D.Add a system prompt to the application code
AnswerB

Bedrock Guardrails content filters evaluate prompts and responses against configurable hate, violence, sexual and insult categories, blocking matching content. This satisfies the requirement centrally at the model invocation layer, without custom prompt engineering or separate moderation infrastructure per application.

Why this answer

Amazon Bedrock Guardrails provides configurable content filters that can block hate speech, violence, sexual content, insults, and misconduct, with adjustable strength levels per category. It is the most efficient configuration because it is a managed, no-code policy layer applied at inference time without retraining or modifying the model. Guardrails also supports denied topics, word filters, and PII redaction.

Exam trap

AIP-C01 often tests whether candidates reach for model-level solutions (fine-tuning, system prompts) when the correct answer is a managed policy layer like Guardrails that enforces safety without retraining.

How to eliminate wrong answers

Option A is wrong because fine-tuning a custom model is expensive, time-consuming, and does not reliably prevent harmful outputs — it changes model behavior but does not enforce a policy boundary. Option C is wrong because AWS Config rules monitor resource configuration compliance, not model output content; they cannot inspect or block generated text. Option D is wrong because a system prompt is a soft, easily bypassed instruction — it is not a reliable or auditable content safety control and can be overridden by prompt injection.

164
MCQmedium

When preparing data for a Knowledge Base, why is it recommended to remove PII?

A.To improve model inference speed.
B.Because the models cannot process numbers.
C.To comply with data privacy policies and reduce risk.
D.To reduce the file size.
AnswerC

Removing personally identifiable information satisfies data privacy obligations and limits exposure if the knowledge base is breached or over-shared. Retrieval-augmented generation can surface indexed content to any permitted user, so minimising stored PII directly reduces regulatory and reputational risk under frameworks such as UK GDPR.

Why this answer

Removing PII ensures that the vector index does not store sensitive information, minimizing the risk of data leakage.

165
Multi-Selecthard

When designing an agentic solution, which THREE aspects of security must be considered?

Select 3 answers
A.Making all API endpoints public
B.IAM least privilege
C.Sharing API keys in the prompt
D.Applying Guardrails for input/output
E.Encryption of data at rest and in transit
AnswersB, D, E

IAM least privilege restricts each agent's permissions to only the actions its task requires, limiting blast radius if the agent is compromised or misbehaves. This satisfies the security requirement by constraining agentic autonomy through tightly scoped, auditable role assignments.

Why this answer

Option B (IAM least privilege) is correct because an agentic solution typically assumes roles or service accounts to call tools, models, and data sources, so granting only the minimal permissions needed limits blast radius if the agent is manipulated or compromised. Option D (Applying Guardrails for input/output) is correct because guardrails filter and validate prompts, tool invocations, and model responses, mitigating prompt injection, data leakage, and unsafe or off-policy actions. Option E (Encryption of data at rest and in transit) is correct because agent workflows move sensitive context, credentials, and results across networks and stores, so TLS for transit and KMS-backed encryption for storage protect confidentiality and integrity.

Option A (Making all API endpoints public) is not appropriate because exposing every endpoint without authentication or authorization dramatically expands the attack surface. Option C (Sharing API keys in the prompt) is not appropriate because embedding secrets in prompts risks leakage through logs, model context, or outputs and violates credential-handling best practice.

Exam trap

AIP-C01 often tests the misconception that security in agentic solutions is only about encryption, ignoring identity and access management and runtime guardrails.

166
MCQeasy

Which AWS service is best used to store and version control your prompt templates for Bedrock?

A.Amazon Bedrock Prompt Management
B.AWS Systems Manager Parameter Store
C.AWS CodeCommit
D.Amazon S3
AnswerA

Amazon Bedrock Prompt Management stores prompt templates as versioned artefacts, letting you create, compare and roll back variants natively. It satisfies the version-control requirement without building custom tooling, unlike generic stores such as S3 or Parameter Store.

Why this answer

Amazon Bedrock Prompt Management is the correct answer because it is a purpose-built feature that lets you create, store, version, and reuse prompt templates natively within Bedrock. It provides versioning, aliases, and variables so you can iterate on prompts and roll back to previous versions without external tooling. This integrates directly with Bedrock's InvokeModel and agent APIs, making it the most operationally efficient choice for prompt lifecycle management.

Exam trap

AIP-C01 often tests the confusion between generic storage/versioning services (S3, CodeCommit, Parameter Store) and the purpose-built Bedrock Prompt Management feature, which is the only option with native prompt versioning and alias support.

How to eliminate wrong answers

Option B is wrong because Systems Manager Parameter Store is designed for configuration data and secrets, not for versioning prompt templates with semantic versioning, aliases, or variable substitution — it lacks prompt-specific features like variant comparison. Option C is wrong because CodeCommit is a Git repository for source code; while you could store prompts as files, it does not integrate with Bedrock's runtime APIs and requires custom CI/CD to deploy prompt changes. Option D is wrong because Amazon S3 is object storage with versioning, but it provides no prompt-specific management, no aliases, no variable rendering, and no direct Bedrock integration — you would have to build all of that yourself.

167
MCQeasy

When configuring an Amazon Bedrock Knowledge Base, which setting helps optimize the retrieval process for RAG applications?

A.Increasing the number of input tokens
B.Adjusting the chunk size and overlap
C.Deleting the data source
D.Disabling encryption
AnswerB

Proper chunking directly impacts the relevance and efficiency of retrieval.

Why this answer

Selecting the appropriate embedding model and defining chunks size are key to optimizing retrieval quality and performance.

168
MCQmedium

When using the Bedrock Converse API, how do you provide multiple documents to the model for consideration?

A.Upload them to S3 and include the URL in the system message
B.Include them in the 'document' field within the messages array
C.They must be indexed in a Knowledge Base first
D.Attach them as multi-part form data in the HTTP request
AnswerB

The Converse API accepts documents as content blocks inside the messages array, letting each document be attached to a user turn for the model to consider. Placing them in the top-level request body or system prompt does not satisfy the stem's requirement for document content blocks.

Why this answer

The Bedrock Converse API allows you to include documents directly in the messages array using the 'document' field. This enables the model to consider multiple documents in a single request without needing a Knowledge Base or S3 URLs.

Exam trap

AIP-C01 often tests the difference between passing documents inline via Converse API versus using a Knowledge Base for RAG — candidates may incorrectly assume a Knowledge Base is always required.

How to eliminate wrong answers

Option A is wrong because while you can reference S3 objects in some Bedrock APIs, the Converse API expects documents inline in the messages array, not as S3 URLs in the system message. Option C is wrong because indexing in a Knowledge Base is for RAG retrieval, not for direct document passing in a Converse API call. Option D is wrong because the Converse API uses a JSON-structured request, not multi-part form data; multi-part is used for other AWS services like S3 uploads.

169
MCQmedium

You are using Amazon Bedrock and need to ensure your application respects regional service quotas. Which service allows you to request a quota increase?

A.AWS Service Quotas
B.AWS IAM
C.Amazon CloudWatch
D.AWS Support Center
AnswerA

AWS Service Quotas provides a central console and API for viewing and requesting increases to Bedrock quotas, including per-region token and request limits. It satisfies the stem's regional constraint because quota values are scoped per AWS Region, letting you raise limits in the specific region your application calls.

Why this answer

AWS Service Quotas is the centralized service for managing and requesting increases for AWS service limits.

Page 2

Page 3 of 3

All pages