A company uses an AI assistant application to summarize the company’s website content
and provide information to customers. The company plans to use Amazon Bedrock to give
the application access to a foundation model (FM).
The company needs to deploy the AI assistant application to a development environment
and a production environment. The solution must integrate the environments with the FM.
The company wants to test the effectiveness of various FMs in each environment. The
solution must provide product owners with the ability to easily switch between FMs for
testing purposes in each environment.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: CCreate one AWS CDK application. Configure the application to invoke the Amazon
Bedrock FMs by using the aws_bedrock.FoundationModel.fromFoundationModelId()
method. Create a pipeline in AWS CodePipeline that has a deployment stage for each
environment that uses AWS CodeBuild deploy actions.
Explanation
Explanation:
This question tests the ability to design a flexible, maintainable CI/CD deployment architecture for a multi-environment Amazon Bedrock application. The solution must allow product owners to easily switch between foundation models in both development and production environments without incurring fixed costs or duplicating infrastructure management efforts.
✅ Correct Option — C:
A single AWS CDK application with environment-specific deployment stages in one CodePipeline provides a unified, maintainable codebase. Using fromFoundationModelId() allows dynamic FM selection by simply updating the model ID parameter per environment, making FM switching straightforward for product owners without infrastructure changes. CodeBuild deploy actions handle environment-specific deployments cleanly, satisfying both flexibility and operational simplicity requirements across dev and production.
❌ Incorrect Options:
A. Multiple CodePipeline pipelines with per-pipeline FM settings using ProvisionedModel ARN:
Using fromProvisionedModelArn() ties each deployment to a specific provisioned model, which carries a fixed hourly cost and reduces flexibility for testing multiple FMs. Managing separate pipelines per FM configuration also increases operational overhead and complicates the switching process for product owners significantly.
B. Separate CDK applications per environment with FoundationModel method:
While fromFoundationModelId() is the correct invocation method, creating entirely separate CDK applications per environment duplicates infrastructure code and increases maintenance burden. Any FM configuration change must be replicated manually across applications, reducing agility and introducing risk of environment drift over time.
D. Production-only CDK application with manual dev environment recreation:
Manually recreating development environment resources from production code eliminates infrastructure consistency and introduces significant operational risk. Using fromProvisionedModelArn() also locks the solution into provisioned throughput pricing, conflicting with the need for flexible, low-overhead FM switching during testing phases.
🔧 Reference:
⇒ AWS CDK Amazon Bedrock Module — FoundationModel → Confirms fromFoundationModelId() as the correct method for dynamically referencing foundation models by ID without provisioned throughput commitment.
⇒ AWS CodePipeline Multi-Environment Deployments → Confirms the pattern of using a single pipeline with multiple deployment stages to manage dev and production environments from one unified pipeline.
Question 12Choose 1
A GenAI developer is building a Retrieval Augmented Generation (RAG)-based customer
support application that uses Amazon Bedrock foundation models (FMs). The application
needs to process 50 GB of historical customer conversations that are stored in an Amazon
S3 bucket as JSON files. The application must use the processed data as its retrieval
corpus. The application’s data processing workflow must extract relevant data from
customer support documents, remove customer personally identifiable information (PII),
and generate embeddings for vector storage. The processing workflow must be costeffective
and must finish within 4 hours.
Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: DImplement a data processing pipeline that uses AWS Step Functions to orchestrate a
workload that uses Amazon Comprehend to detect PII and Amazon Bedrock to generate
embeddings. Directly integrate the workflow with Amazon OpenSearch Serverless to store
vectors and provide similarity search capabilities.
Explanation
Explanation:
This question tests your ability to design a cost-effective, time-bound data processing pipeline for a RAG application. The key requirements are processing 50GB of JSON data, removing PII, generating embeddings, and completing within 4 hours with minimal operational overhead. The optimal solution leverages serverless, managed AWS services that scale automatically and require minimal custom code.
✔️ Option D (Correct Option):
This is the most efficient solution because it uses AWS Step Functions with its Distributed Map state, which can automatically scan millions of S3 objects and run up to 10,000 parallel workflows . This makes processing 50GB of data within a 4-hour window straightforward. Amazon Comprehend provides managed PII detection with 2–3x higher accuracy than regex patterns . Amazon Bedrock offers cost-effective embeddings through services like Amazon Titan Text Embeddings . Direct integration with Amazon OpenSearch Serverless eliminates the need for custom vector storage code , significantly reducing operational overhead.
❌ Option A (Incorrect Option):
AWS Lambda has a 15-minute execution timeout limit, making it unsuitable for processing large volumes of data without complex orchestration. Additionally, Lambda's concurrency limits and API rate limiting would require custom handling, increasing operational overhead significantly . Managing 50GB of data with Lambda alone would require extensive code for timeout handling and error recovery.
❌ Option B (Incorrect Option):
While AWS Glue ETL jobs can detect PII, using SageMaker Processing with HuggingFaceProcessor for embeddings requires managing custom infrastructure and pre-trained models. This approach involves more operational overhead than using Bedrock's managed embedding APIs. The solution also lacks the orchestration capabilities needed to efficiently process 50GB of data within the time constraint.
❌ Option C (Incorrect Option):
Deploying an Amazon EMR cluster introduces significant operational overhead for cluster management, scaling, and maintenance. Using Aurora PostgreSQL with pgvector requires managing database infrastructure and provides less optimized vector search compared to OpenSearch Serverless. This solution requires the most manual effort and infrastructure management.
🔧 Reference:
→ AWS Prescriptive Guidance: Agentic AI Workflows on Serverless. Confirms Step Functions' Distributed Map state can run up to 10,000 parallel workflows and automatically scale with data volume.
→ AWS Glue Documentation: AWS Glue Studio PII Detection. Confirms Glue's built-in Detect PII transform can identify and redact sensitive fields.
Question 13Choose 1
A company needs a system to automatically generate study materials from multiple content
sources. The content sources include document files (PDF files, PowerPoint presentations,
and Word documents) and multimedia files (recorded videos). The system must process
more than 10,000 content sources daily with peak loads of 500 concurrent uploads. The
system must also extract key concepts from document files and multimedia files and create
contextually accurate summaries. The generated study materials must support real-time
collaboration with version control.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: BUse Amazon Bedrock Data Automation (BDA) with foundation models (FMs) to process
document files. Integrate BDA with Amazon Textract for PDF extraction and with Amazon
Transcribe for multimedia files. Store the processed content in Amazon S3 with versioning
enabled. Store the metadata in Amazon DynamoDB. Collaborate in real time by using AWS
AppSync GraphQL subscriptions and DynamoDB.
Explanation
Explanation:
The system must handle large-scale ingestion (10,000+ sources/day, 500 concurrent uploads), extract structured insights from both documents and multimedia, and support real-time collaboration with version control. This requires a scalable ingestion pipeline, specialized AWS services for different content types, and a real-time collaboration layer with proper storage separation.
🟢 Correct Option:
B. Use Amazon Bedrock Data Automation (BDA) with foundation models (FMs) to process document files. Integrate BDA with Amazon Textract for PDF extraction and with Amazon Transcribe for multimedia files. Store the processed content in Amazon S3 with versioning enabled. Store the metadata in Amazon DynamoDB. Collaborate in real time by using AWS AppSync GraphQL subscriptions and DynamoDB.
This option is correct because it uses the right AWS services for each workload: Textract for document extraction, Transcribe for video/audio processing, and BDA for orchestration and summarization. S3 versioning ensures content history and traceability. DynamoDB handles metadata at scale. AWS AppSync provides real-time collaboration through GraphQL subscriptions, making it suitable for concurrent updates and version-controlled study material generation.
🔴 Incorrect options:
A. Use Amazon Bedrock Data Automation (BDA) with AWS Lambda functions to orchestrate document file processing. Use Amazon Bedrock Knowledge Bases to process all multimedia. Store the content in Amazon DocumentDB with replication. Collaborate by using Amazon SNS topic subscriptions. Track changes by using Amazon Bedrock Agents.
This is misaligned because Knowledge Bases are not designed for multimedia processing pipelines. SNS is not suitable for real-time collaboration. DocumentDB adds unnecessary complexity, and Bedrock Agents are not designed for version tracking or content collaboration workflows.
C. Use Amazon Bedrock Data Automation (BDA) with Amazon SageMaker AI endpoints to host content extraction and summarization models. Use Amazon Bedrock Guardrails to extract content from all file types. Store document files in Amazon Neptune for time series analysis. Collaborate by using Amazon Bedrock Chat for real-time messaging.
Guardrails do not extract or process files; they only enforce safety constraints. Neptune is a graph database and not suited for storing large-scale document or media content. Bedrock Chat is not a collaboration or version control system.
D. Use Amazon Bedrock Data Automation (BDA) with AWS Lambda functions to process batches of content files. Fine-tune foundation models (FMs) in Amazon Bedrock to classify documents across all content types. Store the processed data in Amazon ElastiCache (Redis OSS) by using Cluster Mode with sharding. Use Prompt management in Amazon Bedrock for version control.
ElastiCache is not suitable for persistent storage or collaboration workflows. Prompt management is only for managing prompts, not version control of generated study materials. Fine-tuning all content types for classification is inefficient and unnecessary for ingestion pipelines at this scale.
🔧 Reference:
⇒ Amazon Textract Documentation
Explains how Amazon Textract extracts structured data from documents such as PDFs and forms.
Question 14Choose 1
A company is designing an API for a generative AI (GenAI) application that uses a
foundation model (FM) that is hosted on a managed model service. The API must stream
responses to reduce latency, enforce token limits to manage compute resource usage, and
implement retry logic to handle model timeouts and partial responses.
Which solution will meet these requirements with the LEAST operational overhead?
Show answerHide answer
Correct answer: AIntegrate an Amazon API Gateway HTTP API with an AWS Lambda function to invoke
Amazon Bedrock. Use Lambda response streaming to stream responses. Enforce token
limits within the Lambda function. Implement retry logic for model timeouts by using
Lambda and API Gateway timeout configurations.
Explanation
Explanation:
This question tests the ability to design a serverless API architecture that supports response streaming, token limit enforcement, and retry logic for a Bedrock-hosted FM — all with the least operational overhead. The key differentiators are the API Gateway type selected, streaming support, and infrastructure management requirements.
✅ Correct Option — A:
API Gateway HTTP APIs are lighter, faster, and lower cost than REST APIs, making them the optimal choice for streaming-focused GenAI workloads. Lambda response streaming delivers tokens progressively to reduce perceived latency. Token limits are enforced directly in Lambda code without additional services. Native Lambda and API Gateway timeout configurations handle retries for model timeouts and partial responses — all within a fully serverless, minimally managed architecture.
❌ Incorrect Options:
B. API Gateway HTTP API with client-side polling and frontend token enforcement:
Simulating streaming via client-side polling introduces unnecessary latency and complexity, defeating the core streaming requirement. Enforcing token limits on the frontend is unreliable and insecure, as it bypasses server-side control. This approach does not genuinely satisfy streaming or robust retry logic requirements at the API layer.
C. API Gateway WebSocket API with ECS containerized inference server:
Running a containerized inference server on Amazon ECS introduces significant operational overhead including cluster management, task scaling, lifecycle hooks, and container maintenance. WebSocket connections add connection state complexity. This architecture far exceeds the operational simplicity required, especially when serverless alternatives natively satisfy all stated requirements.
D. API Gateway REST API with Lambda streaming and retry logic:
REST APIs in API Gateway carry higher latency, greater configuration complexity, and higher cost compared to HTTP APIs for streaming use cases. Lambda response streaming is not natively supported through API Gateway REST API integrations in the same optimized manner as HTTP APIs, making this a functionally inferior and costlier choice than Option A.
🔧 Reference:
⇒ AWS Lambda Response Streaming → Confirms Lambda's native support for response streaming, enabling progressive token delivery to reduce latency in GenAI applications.
⇒ Amazon API Gateway HTTP APIs → Confirms HTTP APIs as the lower-latency, lower-cost alternative to REST APIs, optimized for proxy integrations including Lambda streaming responses.
Question 15Choose 1
A healthcare company is developing a document management system that stores medical
research papers in an Amazon S3 bucket. The company needs a comprehensive metadata
framework to improve search precision for a GenAI application. The metadata must include
document timestamps, author information, and research domain classifications.
The solution must maintain a consistent metadata structure across all uploaded documents
and allow foundation models (FMs) to understand document context without accessing full
content.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: AStore document timestamps in Amazon S3 system metadata. Use S3 object tags for
domain classification. Implement custom user-defined metadata to store author
information.
Explanation
Explanation:
This question tests your knowledge of implementing a metadata framework on Amazon S3 that provides comprehensive context to foundation models. The solution must leverage the native S3 metadata capabilities effectively—system metadata for timestamps, user-defined metadata for custom attributes like author information, and object tags for categorization and searchable key-value pairs.
✔️ Option A (Correct Option):
This solution correctly utilizes S3's native metadata capabilities. S3 system metadata automatically captures timestamps such as last-modified and creation-date without manual effort . S3 object tags (key-value pairs) provide a flexible way to categorize documents with domain classifications and are searchable via S3 Select or Athena. Custom user-defined metadata allows storing author information by setting x-amz-meta-author headers, which maintains a consistent metadata structure. This approach ensures FMs can understand document context through descriptive metadata without accessing the full content .
❌ Option B (Incorrect Option):
This solution misuses S3 features. S3 Object Lock with legal holds is designed for compliance and preventing object deletion, not for tracking document timestamps. S3 access points simplify data access management but are not intended for domain classification—they control network permissions, not metadata attributes. Author information stored in tags would be inefficient as tags are better suited for searchable classification.
❌ Option C (Incorrect Option):
This approach uses entirely inappropriate services. S3 Inventory reports provide daily or weekly lists of objects and their metadata but are not a storage location for timestamps. S3 Storage Lens is an organizational-level dashboard for storage usage and activity metrics, not for storing per-object metadata like author information. Access points do not serve as a classification mechanism.
❌ Option D (Incorrect Option):
S3 Object Lock retention periods define how long objects are protected from deletion—they are not a mechanism for storing timestamps. S3 Event Notifications trigger actions based on events like object creation but do not store or manage classification metadata. This solution fails to provide a consistent, queryable metadata framework necessary for both human and FM-driven search.
🔧 Reference:
→ AWS S3 Documentation: Tagging your objects. Confirms that S3 object tags are key-value pairs for categorizing storage and support search capabilities.
→ AWS S3 Documentation: Working with object metadata. Confirms custom metadata can be stored using x-amz-meta- prefixes to create a consistent structure.
Question 16Choose 1
A company has deployed an AI assistant as a React application that uses AWS Amplify, an
AWS AppSync GraphQL API, and Amazon Bedrock Knowledge Bases. The application
uses the GraphQL API to call the Amazon Bedrock RetrieveAndGenerate API for
knowledge base interactions. The company configures an AWS Lambda resolver to use
the RequestResponse invocation type.
Application users report frequent timeouts and slow response times. Users report these
problems more frequently for complex questions that require longer processing.
The company needs a solution to fix these performance issues and enhance the user
experience.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: AUse AWS Amplify AI Kit to implement streaming responses from the GraphQL API and
to optimize client-side rendering.
Explanation
Explanation:
This question addresses real-time response latency bottlenecks when handling complex generative AI queries. RequestResponse-based AWS Lambda resolvers block the connection until the entire response is assembled, causing severe client-side timeouts. Introducing a streaming mechanism resolves the perceived latency issues by feeding partial data back to the user instantly.
✅ Correct Option:
Option A
The AWS Amplify AI Kit provides native capabilities designed specifically for full-stack generative AI applications. By switching to Amplify AI Kit conversation routes, the backend automatically sets up streaming orchestration over AWS AppSync WebSockets. This allows the backend Lambda to stream incoming chunks from the foundation model directly to the client, providing a fast, continuous user experience that completely eliminates the RequestResponse timeout barrier.
❌ Incorrect options:
Option B
Increasing the timeout value of the Lambda resolver and implementing exponential backoff retries merely treats the symptom without fixing the underlying architectural bottleneck. Because the frontend still has to wait synchronously for the entire multi-paragraph response to complete, the client-side experience remains slow and prone to browser-level connection failures.
Option C
Routing requests through an Amazon SQS queue and having an AppSync resolver poll it converts a synchronous operation into an overly complex asynchronous batch pipeline. This approach is completely unsuited for an interactive AI assistant because it introduces massive polling delays and fails to offer the immediate token-by-token streaming required by end users.
Option D
While changing to the InvokeModelWithResponseStream API and implementing an Amazon API Gateway WebSocket endpoint provides a valid technical streaming path, it fails the requirement to minimize implementation overhead. This method forces the development team to manually manage raw WebSocket connection states, custom routes, and complex client state-tracking logic, discarding the company's existing AWS Amplify and AppSync frameworks.
🔧 Reference:
→ AWS Documentation: Build fullstack AI apps with AWS Amplify AI Kit confirms that the Amplify AI kit bypasses traditional HTTP blocking by natively streaming real-time token chunks directly to the browser via managed chat routes.
→ AWS Amazon Blog: Build AI apps in minutes with the AWS Amplify AI Kit details how full-stack conversation routes handle managed backend integrations with Bedrock to deliver low-latency streaming interfaces.
Question 17Choose 2
A publishing company is developing a chat assistant that uses a containerized large
language model (LLM) that runs on Amazon SageMaker AI. The architecture consists of an
Amazon API Gateway REST API that routes user requests to an AWS Lambda function.
The Lambda function invokes a SageMaker AI real-time endpoint that hosts the LLM.
Users report uneven response times. Analytics show that a high number of chats are
abandoned after 2 seconds of waiting for the first token. The company wants a solution to
ensure that p95 latency is under 800 ms for interactive requests to the chat assistant.
Which combination of solutions will meet this requirement? (Select TWO.)
Show answerHide answer
Correct answer: A, DEnable model preload upon container startup. Implement dynamic batching to process
multiple user requests together in a single inference pass.Set the minimum number of instances to greater than 0. Enable response streaming.
Explanation
Explanation:
This question focuses on reducing p95 latency and Time to First Token (TTFT) for an interactive LLM chat assistant on SageMaker real-time endpoints. High abandonment after 2 seconds highlights cold starts and slow token delivery as key problems. The target is sub-800 ms p95 latency for responsive user experience.
✅ Correct Option A:
Enabling model preload upon container startup avoids loading delays on initial requests. Dynamic batching processes multiple concurrent user requests in one inference pass, improving throughput and efficiency for variable chat traffic while maintaining low latency. This combination directly addresses inconsistent response times in real-time LLM serving.
✅ Correct Option D:
Setting minimum instances greater than 0 keeps endpoints warm and eliminates cold starts during scaling. Response streaming delivers tokens as they are generated, significantly improving perceived latency and user engagement for chat applications, even when full responses take longer. This meets interactive p95 latency requirements effectively.
❌ Incorrect Option B:
Larger GPU instances increase compute power but setting minimum instances to 0 allows cold starts. Lazy loading on first request further delays TTFT, harming p95 latency for interactive chats.
❌ Incorrect Option C:
Multi-model endpoints rely on lazy loading, causing unpredictable load times and potential unloading of models. Without batching, concurrency and throughput remain unoptimized for stable low-latency performance.
❌ Incorrect Option E:
Asynchronous Inference suits batch or long-running non-interactive jobs with S3 queuing. It introduces delays unsuitable for real-time chat needing p95 latency under 800 ms.
🔧 Reference:
→ Amazon SageMaker Documentation - Real-time Inference
Confirms real-time endpoints for low-latency interactive workloads and support for response streaming.
A company is using Amazon Bedrock to design an application to help researchers apply for
grants. The application is based on an Amazon Nova Pro foundation model (FM). The
application contains four required inputs and must provide responses in a consistent text
format. The company wants to receive a notification in Amazon Bedrock if a response
contains bullying language. However, the company does not want to block all flagged
responses.
The company creates an Amazon Bedrock flow that takes an input prompt and sends it to
the Amazon Nova Pro FM. The Amazon Nova Pro FM provides a response.
Which additional steps must the company take to meet these requirements? (Select TWO.)
Show answerHide answer
Correct answer: A, DUse Amazon Bedrock Prompt Management to specify the required inputs as variables.
Select an Amazon Nova Pro FM. Specify the output format for the response. Add the
prompt to the prompts node of the flow.Create an Amazon Bedrock guardrail that applies the insults content filter. Set the filter
response to detect. Add the guardrail to the prompts node of the flow.
Explanation
Explanation:
This question assesses your knowledge of Amazon Bedrock Flows, Prompt Management, and Guardrails. The application needs structured inputs with consistent output formatting and monitoring for bullying language without blocking responses. The correct solutions combine Prompt Management for input/output control and Guardrails with detection mode for non-blocking monitoring of harmful content.
✔️ Option A Use Amazon Bedrock Prompt Management to specify the required inputs as variables. Select an Amazon Nova Pro FM. Specify the output format for the response. Add the prompt to the prompts node of the flow.
Prompt Management allows you to define variables for the four required inputs and specify the exact output format, ensuring consistent responses from the Nova Pro FM. You can add the configured prompt to the prompts node of the flow, where variables are filled from input nodes .
✔️ Option D Create an Amazon Bedrock guardrail that applies the insults content filter. Set the filter response to detect. Add the guardrail to the prompts node of the flow.
The insults content filter detects harmful content categories including bullying language . Setting the filter action to "detect" (also known as NONE mode) monitors and logs flagged content without blocking it, satisfying the requirement to receive notifications without blocking all responses . Guardrails can be added to the prompts node configuration .
❌ Option B Create an Amazon Bedrock guardrail that applies the hate content filter. Set the filter response to block. Add the guardrail to the prompts node of the flow.
While the hate filter can detect harmful content, "block" is the incorrect action. The company explicitly does not want to block flagged responses; they only want to receive notifications. The hate category is also less appropriate than the insults category for detecting bullying language.
❌ Option C Create an Amazon Bedrock prompt router. Specify an Amazon Nova Pro FM. Add the required inputs as variables to the input node of the flow. Add the prompt router to the prompts node. Add the output format to the output node.
Prompt routers are not a feature of Amazon Bedrock Flows. The correct approach uses Prompt Management for defining the prompt with variables and output format, not a router. This option describes an invalid architecture component for the given scenario.
❌ Option E Create an Amazon Bedrock application inference profile that specifies an Amazon Nova Pro FM. Specify the output format for the response in the description. Include a tag for each of the input variables. Add the profile to the prompts node of the flow.
Inference profiles are used for model routing across different regions or for model distillation, not for managing prompts with variables and output formats. This approach does not align with how Prompt Management and Flows handle structured inputs and outputs.
🔧 Reference:
→ Amazon Bedrock Guardrails - Detect and filter harmful content - Confirms that content filters including the Insults category can be configured to detect harmful text in model responses.
→ Amazon Bedrock Flows - PromptFlowNodeConfiguration - Confirms that guardrails can be applied to prompt nodes and that prompts from Prompt Management with variables can be used in flows.
Question 19Choose 1
A medical company is creating a generative AI (GenAI) system by using Amazon Bedrock.
The system processes data from various sources and must maintain end-to-end data
lineage. The system must also use real-time personally identifiable information (PII) filtering
and audit trails to automatically report compliance.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: AUse AWS Glue Data Catalog to register all data sources and track lineage. Use Amazon
Bedrock Guardrails PII filters. Enable AWS CloudTrail logging for all Amazon Bedrock API
calls with Amazon S3 integration. Use Amazon Macie to scan stored data for sensitive
information and publish findings to Amazon CloudWatch Logs. Create CloudWatch
dashboards to visualize the findings and generate automated compliance reports.
Explanation
Explanation:
This question tests end-to-end governance for GenAI workloads on AWS, specifically:
data lineage tracking across multiple sources
real-time PII detection during model interaction
audit logging for compliance reporting
continuous sensitive data discovery in storage
The solution must combine data cataloging, runtime guardrails, audit logging, and data scanning tools.
🟢 Correct Option:
A. Integrated AWS governance + Bedrock security stack
AWS Glue Data Catalog provides centralized metadata management and supports tracking data lineage across multiple sources. Bedrock Guardrails enables real-time PII filtering during inference, ensuring sensitive data is detected as it is processed. CloudTrail logs all Bedrock API activity for auditability, while S3 stores logs for long-term compliance. Macie scans stored datasets for sensitive data and CloudWatch visualizes and automates compliance reporting.
🔴 Incorrect Options:
B. AWS Config + WAF + EventBridge + Comprehend Medical
This option is incorrect because AWS Config tracks configuration changes, not full data lineage. WAF operates at HTTP request filtering and is not designed for PII detection inside GenAI prompts. Comprehend Medical is domain-specific (clinical text) and not suitable for general compliance pipelines. Overall, it lacks unified lineage and proper Bedrock-native guardrails.
C. DataSync + Macie + Session Manager + Textract
This approach misuses services. DataSync replicates data but does not track lineage. Macie is applied incorrectly to Bedrock outputs rather than storage layers. Session Manager logs sessions but not structured AI inference audit trails. Textract and Step Functions are unrelated to real-time PII filtering in generative AI workflows.
D. Athena + CloudWatch metrics + X-Ray + Rekognition
Athena is a query engine, not a lineage tracking system. CloudWatch custom metrics cannot reliably detect PII in model outputs. X-Ray traces service calls but does not provide compliance-grade audit trails for data governance. Rekognition Custom Labels is designed for image classification, not text-based PII detection in GenAI systems.
🔧 Reference:
→ Amazon Bedrock Guardrails
Explains how Guardrails can enforce real-time PII detection and content filtering during inference.
→ What is AWS Glue?
Describes how AWS Glue Data Catalog centralizes metadata and supports data lineage tracking across sources.
Question 20Choose 1
A company is building a generative AI (GenAI) application that produces content based on
a variety of internal and external data sources. The company wants to ensure that the
generated output is fully traceable. The application must support data source registration
and enable metadata tagging to attribute content to its original source. The application
must also maintain audit logs of data access and usage throughout the pipeline.
Which solution will meet these requirements?
Show answerHide answer
Correct answer: DUse AWS Glue Data Catalog to register all data sources. Apply metadata tags to
attribute data sources. Use AWS CloudTrail to log access and activity across services.
Explanation
Explanation:
This question evaluates the architecture required to achieve full traceability and data lineage in a generative AI pipeline. The key requirements are centralized data source registration, descriptive metadata tagging for content attribution, and comprehensive audit logging across the entire pipeline.
✅ Correct Option:
Option D
This choice fulfills all compliance and traceability requirements. AWS Glue Data Catalog serves as the centralized repository to register disparate internal and external data sources. It natively supports metadata tagging for precise source attribution, while AWS CloudTrail provides the mandatory pipeline-wide audit logs by capturing API activity across all participating AWS services.
❌ Incorrect options:
Option A
While AWS Lake Formation provides robust data governance and access control, it relies on the AWS Glue Data Catalog for underlying metadata storage. Applying metadata tags directly to Amazon S3 objects becomes decentralized and unmanageable across diverse external data sources, failing the requirement for unified source registration.
Option B
AWS Glue Data Catalog is appropriate for registration and tagging, but Amazon CloudWatch Logs is insufficient on its own for compliance auditing. CloudWatch Logs captures application-level behavior and stdout/stderr streams, whereas AWS CloudTrail is specifically required to track granular API access and service-to-service usage across the entire pipeline.
Option C
Using Amazon S3 object tagging is effective only for data residing inside S3, failing to seamlessly handle and attribute external data sources mentioned in the scenario. Additionally, AWS Glue is restricted here to schema management rather than acting as the central registration and metadata tracking hub required for end-to-end lineage.
🔧 Reference:
→ Learn how Populating the AWS Glue Data Catalog enables centralized data source registration and metadata management.
→ Read about tracking data access history and compliance across services using Logging AWS Glue API calls with AWS CloudTrail.
Full mock exam
Sit the AIP-C01 exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real AIP-C01 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.