Courseiva

CCNA Foundation Model Integration Data And Compliance Questions

65 questions · Foundation Model Integration Data And Compliance · All types, answers revealed

1
MCQmedium

Which component in Amazon Bedrock is used to define the structure of the retrieved documents before they are fed into the model?

A.Prompt Template.
B.Vector Database index settings.
C.Chunking Strategy.
D.IAM Policy.
AnswerC

Chunking defines the size and structure of the input segments.

Why this answer

The 'Chunking Strategy' determines how documents are broken down and structured before being embedded and indexed.

2
MCQmedium

A financial firm needs to use a third-party foundation model on Amazon Bedrock but must ensure that the model provider does not use their prompts or output to train their base models. Which feature provides this guarantee?

A.AWS PrivateLink
B.AWS KMS Customer Managed Keys
C.Amazon Bedrock Data Privacy Guarantees
D.Amazon Bedrock Provisioned Throughput
AnswerC

AWS explicitly states that inputs and outputs are not used for model training.

Why this answer

AWS Bedrock provides a 'Zero Data Retention' policy by default, ensuring data is not used for model training.

3
Multi-Selectmedium

Which TWO factors are critical when choosing a model for a RAG architecture that requires high grounding accuracy?

Select 2 answers
A.The model's training date.
B.The model's ability to generate images.
C.The model's support for citation and source attribution.
D.The number of parameters in the model.
E.The context window size of the foundation model.
AnswersC, E

Citation capability is crucial for verifying the grounding of the model response.

Why this answer

Accuracy in RAG relies on model reasoning capability and the quality of the retrieved chunks.

4
MCQeasy

A team is evaluating different models on Amazon Bedrock. They want to compare the performance of Claude 3 Sonnet versus Llama 3 on a specific prompt set without writing custom scripts. Which tool should they use?

A.Amazon SageMaker Model Monitor
B.Amazon QuickSight
C.Amazon Bedrock Prompt Management and Playgrounds
D.AWS Lambda functions
AnswerC

Playgrounds allow for side-by-side comparison of different models and configurations.

Why this answer

Bedrock Prompt Management and Playgrounds provide a GUI to test and compare models directly.

5
Multi-Selectmedium

A company is setting up a secure RAG pipeline. Which THREE of the following are necessary to ensure data security?

Select 3 answers
A.Implement IAM policies with the principle of least privilege.
B.Use VPC endpoints for Amazon Bedrock and OpenSearch Serverless.
C.Enable KMS encryption for the vector database and S3 buckets.
D.Use public S3 endpoints with read-only access.
E.Use default AWS managed public keys.
AnswersA, B, C

Essential for security.

Why this answer

VPC endpoints, IAM policies, and KMS encryption are fundamental components for securing data pipelines in AWS.

6
MCQeasy

Which AWS storage service is the primary source for synchronizing documents in an Amazon Bedrock Knowledge Base?

A.Amazon EFS
B.AWS Backup
C.Amazon DynamoDB
D.Amazon S3
AnswerD

S3 is the natively supported source for Knowledge Base synchronization.

Why this answer

Amazon S3 is the standard storage location for documents that are indexed by Bedrock Knowledge Bases.

7
MCQhard

A developer is building a RAG system and wants to include document metadata in the search retrieval. How is this done?

A.By prepending the metadata to the prompt.
B.By adding metadata files alongside the documents in S3 and using custom ingestion logic.
C.It is done automatically by the model.
D.It is not possible to use metadata in Bedrock RAG.
AnswerB

This is the standard way to map metadata to chunks.

Why this answer

Metadata is attached to the chunks in the vector index. During query, the system can use the `filter` parameter to limit results.

8
MCQmedium

A company is building a RAG application using Amazon Bedrock and needs to ensure that the data ingested into the knowledge base is filtered based on user identity. Which approach should the developer use?

A.Use Amazon Bedrock Knowledge Base metadata filtering during the retrieval phase to apply access controls.
B.Use Lambda authorizers to filter the retrieved results after they are returned by the model.
C.Create separate vector indexes for every user role within the Knowledge Base configuration.
D.Implement fine-grained access control using IAM policies on the S3 bucket containing the source data.
AnswerA

Metadata filtering allows precise control over which documents are retrieved during query time based on user-specific attributes.

Why this answer

Knowledge Base filters allow you to restrict retrieval results based on metadata attributes associated with the document chunks.

9
MCQeasy

Which of the following is NOT a benefit of using Amazon Bedrock?

A.Serverless architecture.
B.Access to multiple FM providers via a single API.
C.Data privacy and security controls.
D.Full control over the model's source code.
AnswerD

Bedrock is a managed service; users do not have access to the model source code.

Why this answer

Bedrock is a managed service, so it does not require managing the infrastructure of the underlying foundation models.

10
MCQeasy

What is the purpose of 'Foundation Models' (FMs) in the context of Amazon Bedrock?

A.To perform generative tasks like text completion or analysis.
B.To provide a graphical user interface.
C.To manage VPC networking.
D.To store document metadata.
AnswerA

FMs are the generative engines in the Bedrock ecosystem.

Why this answer

FMs are the core LLMs (like Titan or Claude) that perform the text generation, summarization, or embedding tasks.

11
MCQmedium

When should a developer choose to fine-tune a model versus using RAG?

A.When you have very little data.
B.When you need to ensure the model does not hallucinate.
C.When the data changes daily.
D.When you need the model to learn a specific, consistent corporate tone.
AnswerD

Fine-tuning is the correct approach for style/behavior changes.

Why this answer

RAG is best for grounding in changing data, while fine-tuning is better for changing the model's style, tone, or highly specialized domain language.

12
MCQmedium

A developer needs to handle documents that are too large to fit in a single prompt. What is the most recommended approach?

A.Compress the text using a ZIP algorithm before sending.
B.Concatenate all text and send it in one prompt.
C.Ask the user to split the document.
D.Use a Knowledge Base to perform retrieval and generation.
AnswerD

This automatically manages chunking and context window limits.

Why this answer

Using a Knowledge Base with a retriever-generator pattern ensures that only relevant chunks are sent to the LLM, effectively managing context windows.

13
MCQhard

A developer needs to integrate a foundation model that requires custom fine-tuning for a specific domain language. Which service provides the environment for this task?

A.Amazon Bedrock Custom Models
B.AWS Glue DataBrew
C.Amazon SageMaker JumpStart
D.Amazon Kendra
AnswerA

Custom Models in Bedrock support fine-tuning of supported base models.

Why this answer

Amazon Bedrock Custom Models allow for fine-tuning base models on private datasets to improve performance on specific tasks or domains.

14
MCQmedium

A company requires their AI to be available even if a regional outage occurs. How do they handle Bedrock model availability?

A.Implement application-level logic to switch regions for inference.
B.Use an S3 bucket in every region.
C.Request a cross-region Bedrock endpoint from AWS Support.
D.Enable global AWS region auto-scaling.
AnswerA

Applications must handle regional failover for service availability.

Why this answer

Cross-region inference is not supported by all models, so the application logic must handle failover between regions where the model is available.

15
MCQmedium

Which metric should a developer monitor to ensure the RAG system remains performant as usage increases?

A.Vector Database Storage Capacity.
B.IAM User Count.
C.Inference Latency.
D.Model Training Loss.
AnswerC

Latency is critical for user experience in RAG applications.

Why this answer

Latency and Token Consumption (or request count) are key indicators of RAG performance and cost efficiency.

16
MCQmedium

An organization wants to use a model that supports both text and image input. Which family of foundation models should they select in Amazon Bedrock?

A.Amazon Titan Text Express
B.Claude 3 Sonnet
C.Jurassic-2 Mid
D.Cohere Command R
AnswerB

Claude 3 models are multi-modal and accept image inputs.

Why this answer

Amazon Bedrock supports multi-modal models like Claude 3 Sonnet and Claude 3 Opus which handle both text and images.

17
MCQeasy

What is the primary role of an Embedding Model in a RAG pipeline?

A.To convert text into numerical vectors for semantic similarity search.
B.To act as a firewall for the RAG system.
C.To compress large files for storage.
D.To generate human-readable summaries.
AnswerA

This is the core function of an embedding model.

Why this answer

Embedding models convert text into numerical vectors that represent the semantic meaning of the content for vector search.

18
Multi-Selectmedium

Which TWO types of models are generally available in Amazon Bedrock?

Select 2 answers
A.Embedding models.
B.Network load balancer configurations.
C.Hardware drivers.
D.OS kernel images.
E.Text generation models.
AnswersA, E

Core functionality.

Why this answer

Text generation models and embedding models are the two most common types available in Bedrock.

19
MCQmedium

When designing a RAG system, why would a developer choose Amazon Titan Text Embeddings over a third-party embedding model?

A.It is optimized for Amazon Bedrock Knowledge Bases, ensuring seamless integration and scalability.
B.It supports multi-modal input processing natively.
C.It is the only model that supports English.
D.It prevents the model from hallucinating.
AnswerA

Natively integrated models reduce architectural overhead and latency.

Why this answer

Amazon Titan Embeddings are optimized to work natively with Amazon Bedrock Knowledge Bases and provide high performance and integration benefits.

20
MCQmedium

A company is integrating Amazon Bedrock with a private knowledge base. They need to ensure that PII is masked before the retrieved documents are passed to the Foundation Model. Which approach is most effective?

A.Configure the Bedrock Knowledge Base to use a custom encryption key for PII filtering.
B.Enable Amazon Macie on the S3 bucket and configure Bedrock to ignore flagged objects.
C.Implement an AWS Lambda function with Amazon Comprehend to redact PII during the ingestion process into the Knowledge Base.
D.Use Amazon Bedrock Guardrails to mask PII during the inference request.
AnswerC

Pre-processing data using AWS Lambda and Amazon Comprehend before ingestion ensures sensitive data never reaches the vector index.

Why this answer

Amazon Comprehend can be integrated into the data ingestion pipeline to detect and redact PII before documents are indexed into the Amazon OpenSearch Serverless vector store.

21
MCQeasy

A company is building a RAG application on Amazon Bedrock. They need to store embeddings for a large-scale knowledge base with low-latency similarity search and full integration with LangChain. Which vector database should the developer recommend?

A.Amazon DynamoDB with global secondary indexes
B.Amazon Aurora PostgreSQL without pgvector
C.Amazon S3 with Athena query engine
D.Amazon OpenSearch Serverless vector engine
AnswerD

OpenSearch Serverless vector engine is purpose-built for high-performance vector search in GenAI applications.

Why this answer

Amazon OpenSearch Serverless with the vector engine is the native choice for Bedrock RAG workflows, offering seamless integration and scalability.

22
MCQeasy

Which data format is best suited for ingestion into an Amazon Bedrock Knowledge Base?

A.Raw binary executable files.
B.PDF, Markdown, or HTML files stored in Amazon S3.
C.Encrypted raw stream data.
D.Proprietary database dump files.
AnswerB

These are the supported text-rich formats for ingestion.

Why this answer

Bedrock Knowledge Bases support various formats, but PDF, HTML, and Markdown are standard and natively handled.

23
MCQmedium

A developer wants to ensure that a generative AI application does not provide medical advice. How should they configure this?

A.Disable the model's knowledge of medical terms.
B.Instruct the model via the system prompt only.
C.Create a Guardrail with a 'Denied Topics' policy for medical advice.
D.Use a prompt chain to filter out medical terms.
AnswerC

Guardrails provide an enforceable boundary for specific forbidden topics.

Why this answer

Bedrock Guardrails can be used to set a 'Denied Topics' policy, specifically blocking content related to medical advice.

24
MCQmedium

When using a Knowledge Base, what is the 'Base Prompt' used for?

A.To instruct the model on how to format the answer using retrieved context.
B.To define the database schema.
C.To authenticate the user.
D.To store the conversation history.
AnswerA

This is the instruction set for combining RAG data with the generation task.

Why this answer

The base prompt serves as the template for the LLM to understand how to use retrieved context to answer the user's question.

25
MCQmedium

An organization is concerned about data residency requirements for their AI models. Where should they look to identify which AWS regions support specific models?

A.The IAM console.
B.The AWS CLI.
C.The Amazon S3 bucket settings.
D.The Amazon Bedrock documentation region table.
AnswerD

This document specifies model availability per region.

Why this answer

The AWS Region Table for Amazon Bedrock lists the models available in each region.

26
MCQmedium

A company is building a RAG application using Amazon Bedrock and needs to ensure that sensitive PII is filtered out before it reaches the foundation model. Which feature should be used to achieve this?

A.AWS WAF on the Bedrock API endpoint
B.Amazon Macie on the S3 bucket housing the source data
C.Amazon Bedrock Guardrails
D.AWS Glue DataBrew
AnswerC

Guardrails provides PII redaction and content filtering capabilities.

Why this answer

Amazon Bedrock Guardrails allows users to configure content filters, including PII redaction, to prevent sensitive information from being processed by or returned from foundation models.

27
MCQhard

A business requirement is to ensure that the RAG model output is grounded solely in the provided documents. How can this be enforced?

A.Increase the temperature of the model to 1.0.
B.Use a secondary model to re-check the output.
C.Set the model temperature to a very low value (e.g., 0.0) and use clear system instructions.
D.Disable the model's training data.
AnswerC

Low temperature minimizes randomness and forces the model to stick to the provided context.

Why this answer

By configuring the prompt template with strict instructions and utilizing the 'RetrieveAndGenerate' API with the 'source-only' constraint (where supported), you force grounding.

28
MCQmedium

A developer wants to ensure that the RAG pipeline is resilient to outages. What architectural pattern should be used?

A.Single-node deployment.
B.Hardcoding API endpoints.
C.Using only one S3 bucket.
D.Multi-region deployment with cross-region replication for the vector database.
AnswerD

Cross-region resilience is required for high-availability production workloads.

Why this answer

Deploying the RAG application in multiple availability zones and using regional replication for the vector store is the standard resiliency pattern.

29
MCQmedium

A company is concerned about model provider policy compliance. Where can they find the specific data processing terms for their chosen model?

A.In the Amazon Bedrock console 'Model Evaluation' tab.
B.By asking the model during an inference session.
C.In the Amazon CloudWatch monitoring dashboard.
D.In the AWS Service Terms and individual model provider documentation.
AnswerD

Legal and privacy terms are detailed in the official service agreements.

Why this answer

The AWS Service Terms and the Bedrock documentation page specify the data handling and privacy commitments for each model provider.

30
Multi-Selecthard

A healthcare organization must ensure that PII is removed from documents before they are stored in an Amazon Bedrock Knowledge Base. Which THREE actions should the developer take?

Select 3 answers
A.Manually encrypt all files using AWS KMS before uploading to S3.
B.Configure the Knowledge Base to use a private VPC endpoint to prevent data exfiltration.
C.Enable Amazon Bedrock Data Protection policies to automatically strip PII during vectorization.
D.Use Amazon Comprehend to detect and redact PII in the source documents before ingestion.
E.Implement an AWS Glue ETL job to sanitize data during the ingestion pipeline.
AnswersB, D, E

VPC endpoints ensure data traverses the AWS network, which is a compliance requirement.

Why this answer

Data preparation involves identifying, masking, and auditing data before it reaches the vector store.

31
Multi-Selecthard

A security auditor requests a report on Bedrock usage. Which TWO of the following AWS services can be used to generate this report?

Select 2 answers
A.AWS CodePipeline.
B.AWS AppConfig.
C.Amazon CloudWatch.
D.AWS CloudTrail.
E.AWS Trusted Advisor.
AnswersC, D

Provides logs and metrics for analysis.

Why this answer

CloudTrail and CloudWatch are the primary services for auditing API usage and logging application events.

32
Multi-Selectmedium

Which THREE actions can a developer take to mitigate hallucinations in a RAG application?

Select 3 answers
A.Use a clear system prompt that restricts the model to only use provided information.
B.Use the retrieve-only approach and perform generation with a custom internal engine.
C.Set model temperature to 0.
D.Ensure high-quality source documents are used in the knowledge base.
E.Allow the model to use its internal training data for any gap in knowledge.
AnswersA, C, D

Forces grounding.

Why this answer

Lowering temperature, providing context, and defining strict system prompts all help limit the model's creative deviation.

33
Multi-Selectmedium

Which THREE items must be configured when setting up a new Knowledge Base in Amazon Bedrock?

Select 3 answers
A.Embedding model selection.
B.Model evaluation dataset.
C.Vector database configuration.
D.Data source (e.g., S3).
E.External firewall rules.
AnswersA, C, D

Required for indexing.

Why this answer

Embedding model, data source, and vector database are the three mandatory components for a Knowledge Base.

34
MCQmedium

You are configuring a Knowledge Base for Amazon Bedrock. You need to ingest data from an S3 bucket that contains sensitive financial reports. Which feature allows you to ensure the data is encrypted during the ingestion and retrieval process?

A.AWS Secrets Manager for S3 credentials
B.Amazon Bedrock Model invocation logs
C.AWS KMS with customer-managed keys (CMKs)
D.S3 Bucket policies only
AnswerC

Bedrock supports CMKs to encrypt the vector index and data stored in the knowledge base.

Why this answer

KMS integration is required for the knowledge base index to ensure data at rest is encrypted using customer-managed keys.

35
MCQeasy

What is the primary function of the Bedrock 'Model Invocation Logs'?

A.To throttle incoming requests.
B.To capture and store prompt/response payloads for auditing.
C.To perform real-time model retraining.
D.To reduce inference costs.
AnswerB

This is the exact purpose of invocation logging.

Why this answer

These logs are used for auditing and debugging by capturing the request and response payloads.

36
MCQeasy

A developer wants to choose a foundation model in Amazon Bedrock that offers the best balance of reasoning capability and latency for a customer support chatbot. Which tool should the developer use to evaluate models?

A.Amazon CloudWatch Metrics for Bedrock.
B.AWS Glue DataBrew.
C.Bedrock Model Evaluation jobs.
D.Amazon SageMaker Model Monitor.
AnswerC

This service is specifically designed to evaluate and compare foundation models.

Why this answer

The Bedrock Model Evaluation service allows developers to compare model performance using automated and human-in-the-loop metrics.

37
Multi-Selecthard

When designing for compliance, which THREE actions are part of the 'Shared Responsibility Model' for an AWS customer?

Select 3 answers
A.Maintaining the physical security of the data center.
B.Configuring encryption for the data at rest.
C.Managing access control through IAM policies.
D.Patching the underlying foundation model code.
E.Classifying data to determine if it is sensitive.
AnswersB, C, E

Customer responsibility.

Why this answer

Data classification, encryption configuration, and IAM management are the customer's responsibility.

38
MCQeasy

Which API call in Amazon Bedrock is used to trigger a text generation request without a Knowledge Base?

A.InvokeModel
B.RetrieveAndGenerate
C.GetModelInvocation
D.CreateKnowledgeBase
AnswerA

This is the standard API for direct model inference.

Why this answer

InvokeModel is the primary API for sending a prompt directly to a foundation model.

39
MCQeasy

Which of the following is a recommended practice when working with Bedrock APIs?

A.Use the root user for API calls.
B.Disable logging to save costs.
C.Hardcode IAM keys in the code.
D.Apply the principle of least privilege to IAM policies.
AnswerD

Standard security best practice.

Why this answer

Following the principle of least privilege in IAM is the most recommended security practice.

40
Multi-Selectmedium

A team is preparing data for fine-tuning a custom model on Amazon Bedrock. Which TWO of the following are best practices for high-quality training datasets?

Select 2 answers
A.Include as much raw data as possible, even if noisy
B.Provide data in JSONL format with clear prompt-response pairs
C.Use automated AI tools to generate the training data from scratch
D.Convert all data into a CSV format
E.Ensure the dataset is representative of the production use case
AnswersB, E

Bedrock custom model training expects JSONL format for fine-tuning inputs.

Why this answer

Dataset preparation requires high-quality, relevant data and appropriate formatting (JSONL) for successful fine-tuning.

41
MCQhard

An organization is integrating a custom model via Bedrock Custom Models. They need to ensure that the data used for fine-tuning remains within their VPC. Which configuration meets this requirement?

A.Using AWS Glue for data preparation only
B.Deploying the model in an on-premises data center
C.Configuring an interface VPC endpoint for Amazon Bedrock
D.Encrypting the dataset with AWS CloudHSM
AnswerC

VPC endpoints ensure traffic between the VPC and Bedrock stays within the AWS network.

Why this answer

AWS PrivateLink for Amazon Bedrock allows the traffic to never traverse the public internet, keeping the data flow contained within the VPC context.

42
MCQhard

A healthcare company requires that all generative AI outputs be filtered for PII (Personally Identifiable Information) before being sent to the end user. Which Amazon Bedrock feature effectively manages this compliance requirement?

A.Amazon Bedrock Guardrails
B.AWS CloudTrail logs
C.AWS WAF on the API Gateway
D.IAM Policy evaluation for Bedrock
AnswerA

Guardrails provides content filtering capabilities for both input prompts and model responses.

Why this answer

Guardrails for Amazon Bedrock allows developers to configure PII filtering, profanity filters, and denial topics to ensure compliance.

43
Multi-Selectmedium

Which TWO of the following are valid ways to improve the relevance of retrieved documents in a RAG system?

Select 2 answers
A.Implement metadata filtering to narrow the search space.
B.Apply a custom chunking strategy suited to the document format.
C.Use a larger, more generic embedding model.
D.Increase the number of retrieved chunks to 1000.
E.Delete all indices and recreate them every hour.
AnswersA, B

Filters improve precision.

Why this answer

Metadata filtering and choosing an optimal chunking strategy are key levers to improve retrieval accuracy.

44
Multi-Selecthard

Which THREE factors influence the cost of running an Amazon Bedrock Knowledge Base?

Select 3 answers
A.The amount of data stored in the vector database.
B.The number of tokens generated by the model during the 'RetrieveAndGenerate' process.
C.The number of concurrent IAM users.
D.The number of tokens processed by the embedding model.
E.The frequency of S3 bucket scans.
AnswersA, B, D

Storage volume is billed.

Why this answer

Costs are driven by the embedding model usage, vector storage, and the generation model usage during retrieval.

45
MCQeasy

Which AWS service is used to monitor and log the prompts sent to an Amazon Bedrock model for auditing purposes?

A.AWS Config
B.AWS CloudTrail
C.Amazon Macie
D.Amazon CloudWatch Logs
AnswerB

CloudTrail captures the API request details including the prompt content.

Why this answer

AWS CloudTrail logs all API calls made to Amazon Bedrock, providing the necessary audit trail for prompt usage.

46
MCQhard

A company wants to provide users with citations for the AI-generated answers in their RAG system. How is this achieved in Amazon Bedrock?

A.Manually write code to compare generation results with source documents.
B.Use the RetrieveAndGenerate API which includes source attribution.
C.Configure the Prompt Template to force the model to output document IDs.
D.Enable the 'Citations' feature in the Model Evaluation console.
AnswerB

The managed service automatically tracks source documents and returns citation references.

Why this answer

When using Knowledge Bases for Amazon Bedrock, the response includes source attribution and citations by default when the 'RetrieveAndGenerate' API is used.

47
MCQeasy

Which service should be used to manage user access to Amazon Bedrock models?

A.Amazon Route 53.
B.Amazon SageMaker.
C.AWS Glue.
D.AWS IAM.
AnswerD

IAM provides the granular control needed for Bedrock model access.

Why this answer

AWS IAM (Identity and Access Management) is the service used to control access to AWS resources, including Bedrock APIs.

48
MCQhard

Which configuration in an Amazon Bedrock Knowledge Base is essential for updating the vector index whenever the source files in S3 change?

A.Configure Data Source Syncing.
B.Use AWS Config to monitor bucket changes.
C.Set the knowledge base to 'Auto-Refresh' mode.
D.Enable S3 Versioning.
AnswerA

The 'Sync' job updates the vector index to reflect changes in the source bucket.

Why this answer

Syncing is triggered via the 'Sync' operation, but for automation, S3 Event Notifications coupled with a Lambda function or the Bedrock Sync API is required.

49
MCQmedium

A developer is troubleshooting a slow retrieval process in a RAG system. What is the most likely cause related to the vector store?

A.The vector index is missing an appropriate HNSW index or is not properly partitioned.
B.The embedding model is too small.
C.The source documents are too short.
D.The Bedrock service is overloaded.
AnswerA

Lack of proper indexing mechanisms causes linear search times in high-volume vector stores.

Why this answer

If the vector store lacks an index or the index is not partitioned correctly, search latency increases significantly.

50
MCQhard

How can a developer ensure that the retrieval step in a RAG application focuses only on the most relevant documents when the knowledge base contains millions of files?

A.Implement metadata filtering in the query.
B.Increase the vector dimension size.
C.Use a larger model for embedding.
D.Reduce the chunk size.
AnswerA

Filtering by metadata (e.g., date, category) significantly improves relevance by excluding irrelevant partitions.

Why this answer

Using metadata filtering allows the system to narrow down the search space before performing vector similarity searches, increasing accuracy.

51
MCQhard

A developer is optimizing a RAG solution for a legal firm. The documents are highly dense and technical. Which chunking strategy in Amazon Bedrock Knowledge Bases provides the best balance of retrieval accuracy?

A.Hierarchical chunking.
B.Semantic chunking based on paragraph breaks.
C.Fixed-size chunking with 100 token overlap.
D.Default chunking strategy.
AnswerA

This approach preserves relationships between document segments, which is critical for technical and legal density.

Why this answer

Hierarchical chunking is designed for complex documents by creating parent and child chunks, which helps maintain context during retrieval.

52
Multi-Selectmedium

Which TWO of the following are supported as source data for Amazon Bedrock Knowledge Bases?

Select 2 answers
A.Atlassian Confluence.
B.Email server logs.
C.Social media live streams.
D.Local hard drive files.
E.Amazon S3.
AnswersA, E

Supported natively.

Why this answer

S3 is the primary supported source, and Confluence is also natively supported as a data source.

53
Multi-Selecthard

An enterprise is planning to implement generative AI with strict compliance requirements. Which THREE practices should the developer include to ensure data privacy and regulatory compliance?

Select 3 answers
A.Enable Amazon Bedrock Guardrails to filter PII
B.Use AWS KMS for encrypting the knowledge base index
C.Use IAM roles to enforce the principle of least privilege
D.Disable all CloudWatch logging to prevent data leakage
E.Store all prompts in plain text in S3 for auditing
AnswersA, B, C

Guardrails are specifically designed to meet compliance standards regarding input/output content.

Why this answer

Proper compliance involves encryption, access control (IAM), and the use of Guardrails for content moderation.

54
MCQmedium

A developer is preprocessing a large corpus of PDF documents for RAG. To ensure the highest accuracy for multi-modal retrieval tasks, which data strategy is most effective?

A.Converting all text to images before embedding
B.Applying semantic chunking and adding metadata tags for filtering
C.Using a fixed-size character count of 500 without overlap
D.Concatenating all chunks into one large vector
AnswerB

Semantic chunking maintains logical document units, and metadata allows for surgical retrieval.

Why this answer

Chunking and metadata enrichment allow the retriever to locate specific sections rather than retrieving entire documents, improving precision.

55
Multi-Selectmedium

A company is designing a RAG architecture. Which TWO of the following steps are required to successfully link an Amazon S3 source to an Amazon Bedrock Knowledge Base?

Select 2 answers
A.Configure an IAM role with S3 read access for Bedrock
B.Choose an embedding model available in Bedrock
C.Create a Glue Data Catalog for the S3 bucket
D.Enable AWS WAF on the S3 bucket
E.Create a Lambda function to split PDFs manually
AnswersA, B

Bedrock requires permissions to read the source documents from S3.

Why this answer

The process requires selecting the data source (S3) and specifying the embedding model to convert text to vectors.

56
MCQmedium

A developer needs to measure the quality of a RAG application's responses. Which tool within Amazon Bedrock facilitates this?

A.Amazon CloudWatch Metrics.
B.Amazon Bedrock Model Evaluation.
C.AWS Glue Quality Rules.
D.Amazon SageMaker Model Monitor.
AnswerB

This service specifically supports evaluating model outputs for accuracy and relevance.

Why this answer

Amazon Bedrock Model Evaluation allows users to evaluate their models or RAG pipelines against custom or built-in datasets.

57
Multi-Selecthard

A developer is designing a RAG system and wants to ensure high-quality retrieval. Which THREE techniques should be implemented to improve semantic search relevance?

Select 3 answers
A.Using a reranking model to score retrieved documents
B.Applying semantic chunking based on document structure
C.Increasing the vector dimension size to maximum
D.Implementing hybrid search combining keyword and vector search
E.Using only fixed-size overlap chunking
AnswersA, B, D

Reranking improves the relevance of the retrieved document set before generation.

Why this answer

Hybrid search, reranking, and semantic chunking are standard best practices for enhancing RAG retrieval accuracy.

58
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

Guardrails are specifically designed to filter sensitive topics and content.

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.

59
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

This is the core purpose of system prompts.

Why this answer

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

60
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 ensures the traffic never traverses the public internet, satisfying security requirements for sensitive data.

Why this answer

To keep traffic within the VPC, developers must configure VPC Endpoints (PrivateLink) for both Amazon Bedrock and Amazon OpenSearch Serverless.

61
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

All communications with Bedrock are protected by industry-standard TLS encryption.

Why this answer

Amazon Bedrock encrypts data in transit using TLS 1.2 and supports encryption at rest with KMS keys for logs and custom models.

62
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

Consistency in embedding models is required for accurate similarity search.

Why this answer

Existing embeddings may not be compatible with Bedrock's supported models; they must be re-embedded using a supported model like Titan Embeddings to maintain consistent vector space.

63
Multi-Selecthard

A developer is evaluating model performance for a specific task. Which THREE metrics are commonly used in the Bedrock Model Evaluation console?

Select 3 answers
A.Inference latency (time to first token).
B.S3 bucket storage size.
C.Accuracy of answers against a ground truth dataset.
D.Toxicity/Harmful content detection.
E.Number of active IAM roles.
AnswersA, C, D

Critical for performance evaluation.

Why this answer

Accuracy, latency, and toxicity are standard metrics provided in model evaluation frameworks.

64
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

Sync is the native way to update the index with changes.

Why this answer

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

65
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

Risk reduction is the primary driver for PII redaction.

Why this answer

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

Ready to test yourself?

Try a timed practice session using only Foundation Model Integration Data And Compliance questions.