Domain 1: Foundation Model Integration, Data Management, and Compliance (Part 2 of 3)
This lesson covers 5 exam topics: Formatting and Enhancing Input Data, Vector Store Architectures and Metadata, Integrating Sources and Keeping Vector Stores Current, Chunking and Embedding Choices, Vector Search, Hybrid Search and Reranking. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Formatting and Enhancing Input Data
Central question: Does the request match what the model expects, and is the input as clear as it can be?
Formatting for inference (skill 1.3.3)
| Target | Format |
|---|---|
| Bedrock InvokeModel | The model's native JSON request body (differs by provider) |
| Bedrock Converse / ConverseStream | One consistent messages format (roles and content blocks) for all supporting models; supports tool use and guardrails (verified) |
| SageMaker AI endpoint | The payload format the serving container expects (structured JSON or CSV) |
| Dialog apps | Conversation formatting: alternating user / assistant turns, plus a system prompt |
Converse needs bedrock:InvokeModel permission; ConverseStream needs bedrock:InvokeModelWithResponseStream (verified).
Enhancing input quality (skill 1.3.4)
- Bedrock to reformat or clean messy text before the main call.
- Amazon Comprehend to extract entities (names, dates, products) and detect PII or language.
- Lambda to normalise data: units, dates, casing, deduplication, truncation.
Clean, consistent input gives more consistent output (design guidance).
Exam traps
- Provider-specific JSON scattered through the code when Converse would standardise it.
- Sending whole raw records instead of the relevant, normalised fields.
- Missing IAM permission for streaming: ConverseStream needs InvokeModelWithResponseStream.
2. Vector Store Architectures and Metadata
Central question: Where do embeddings live, and how do you make search precise and fast at scale?
Vector store options (verified where linked)
| Option | Notes |
|---|---|
| Bedrock Knowledge Bases | Managed (AWS recommended) or customer-managed with your own vector store; hierarchical chunking for parent/child organisation |
| Amazon OpenSearch Service | k-NN search by Euclidean distance or cosine similarity; ML connectors (neural search) integrate with Bedrock embedding models; Serverless option |
| Amazon Aurora / RDS for PostgreSQL | pgvector extension; documents kept in Amazon S3 |
| Amazon DynamoDB | Store metadata alongside a vector database (guide example) |
| Also for KBs | Neptune Analytics, Amazon S3 Vectors, Pinecone, Redis Enterprise Cloud, MongoDB Atlas |
Metadata frameworks (skill 1.4.2)
Attach metadata to every document: timestamps (S3 object metadata), author, domain tags, access groups. Use metadata filters at query time to narrow search (for example only 2026 policies, only finance) — precision rises and cost falls (design guidance).
Performance at scale (skill 1.4.3; design guidance)
- Sharding in OpenSearch to spread index load.
- Multi-index designs: separate indexes per domain or language.
- Hierarchical indexing: summaries or parent chunks first, details second.
Exam traps
- One giant index with no metadata, so filters are impossible.
- Keyword-only search for semantic questions.
- Ignoring access metadata, so users retrieve documents they shouldn't see.
3. Integrating Sources and Keeping Vector Stores Current
Central question: How do documents get in, and how do they stay current?
Connecting sources (skill 1.4.4)
- Managed Knowledge Bases connectors: Amazon S3, SharePoint, Confluence, Google Drive, OneDrive, web crawler, with document-level permission filtering (verified).
- Customer-managed: S3, custom data sources, and your own pipelines (Lambda, Glue, AppFlow, Transfer Family) for wikis and document systems.
Keeping it current (skill 1.4.5; verified)
- After adding, changing or removing files you sync the data source. Syncing is incremental: Bedrock processes only documents added, modified or deleted since the last sync.
- Direct ingestion: for S3 and custom data sources, modify the data source and sync the changes in one step.
- Patterns from the guide: incremental updates, real-time change detection (for example S3 event notifications to EventBridge to a Lambda that ingests), automated synchronisation workflows, scheduled refresh pipelines (EventBridge Scheduler) (design guidance).
Exam traps
- Full re-index on every change when sync is incremental.
- No change detection, so answers cite deleted policies.
- Forgetting deletions: removed documents must be synced too.
4. Chunking and Embedding Choices
Central question: How big should each piece be, and which embedding model turns it into a vector?
Chunking strategies in Bedrock Knowledge Bases
| Strategy | How | Use when |
|---|---|---|
| Default | ~300 tokens, respects sentence boundaries | Good starting point |
| Fixed-size | Your max tokens per chunk plus an overlap percentage | Uniform documents; tune size |
| Hierarchical | Parent and child chunks: search on small children, return the broader parent | Precise matching and full context |
| Semantic | Splits by meaning, not just syntax | Topic shifts within long text |
| No chunking | Each document is one chunk | You pre-split files yourself |
| Custom (Lambda) | A custom transformation Lambda chunks content your way | Special structures, table rows |
Text chunking applies to text; for audio, video and images, chunking happens at the embedding model level (verified).
Embedding models
- Amazon Titan Text Embeddings V2: up to 8,192 tokens or 50,000 characters in, 1,024-dimension vector out; optimised for retrieval; latency-optimised calls for queries, batch jobs for indexing.
- Embedding models on Bedrock are throttled by requests per minute, not tokens per minute.
- Choose by dimensionality (storage and speed vs precision), domain fit and languages; evaluate on your queries (guide).
- Use the same embedding model for documents and queries (general background).
Exam traps
- Chunks too large (diluted matches) or too small (no context): hierarchical solves both.
- Mixing embedding models between indexing and querying.
- Planning embedding capacity in tokens per minute. It's requests per minute.
5. Vector Search, Hybrid Search and Reranking
Central question: How do you get the most relevant chunks to the top?
Vector search options (skill 1.5.3)
OpenSearch Service vector search (k-NN), Aurora with pgvector, or Bedrock Knowledge Bases with a managed vector store (guide examples; verified in 07).
Hybrid search
- Semantic search compares embeddings; hybrid search combines vector search with searching the raw text (keywords).
- In Knowledge Bases, set
overrideSearchTypeto HYBRID or SEMANTIC. Hybrid is supported for Amazon RDS, OpenSearch Serverless and MongoDB vector stores with a filterable text field; otherwise the query uses semantic search. - Hybrid helps with exact terms: product codes, names, error numbers (design guidance).
Reranking
- A reranker model scores how relevant each retrieved chunk is to the query and reorders the results.
- Needs the query, a reranker model, and the list of documents to reorder. Text only.
- Typical flow: retrieve more candidates (say 50), rerank, pass the top few to the FM (design guidance).
Exam traps
- Pure semantic search for SKU or error-code lookups. Use hybrid.
- Expecting hybrid on any vector store. Check support.
- Passing all 50 retrieved chunks to the model instead of reranking and trimming.
References
- AIP-C01 Domain 1 — checked Oct 19, 2026
- Converse API — checked Oct 19, 2026
- Amazon Comprehend — checked Oct 19, 2026
- OpenSearch k-NN — checked Oct 19, 2026
- OpenSearch ML connectors — checked Oct 19, 2026
- KB vector stores — checked Oct 19, 2026
- Knowledge Bases — checked Oct 19, 2026
- Sync data with a KB — checked Oct 19, 2026
- Direct ingestion — checked Oct 19, 2026
- KB chunking — checked Oct 19, 2026
- Titan Text Embeddings — checked Oct 19, 2026
- KB query configuration — checked Oct 19, 2026
- Reranking — checked Oct 19, 2026
Check your understanding
One request format across Bedrock models?Show answerHide answer
Answer
Converse API.Postgres-based vector search on AWS?Show answerHide answer
Answer
Aurora or RDS for PostgreSQL with pgvector.A policy changed this morning. What updates the KB?Show answerHide answer
Answer
Sync the data source (incremental) or ingest the change directly.Precise matching but full-paragraph context?Show answerHide answer
Answer
Hierarchical chunking.Users search exact part numbers and natural questions. Search type?Show answerHide answer
Answer
Hybrid.