Skip to content
AWS Certified Generative AI Developer – Professional (AIP-C01) Exam Prep

Lesson 2 of 8 · 18 min

x
2/8

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

Video lesson: AIP-C01 06/36: 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)

TargetFormat
Bedrock InvokeModelThe model's native JSON request body (differs by provider)
Bedrock Converse / ConverseStreamOne consistent messages format (roles and content blocks) for all supporting models; supports tool use and guardrails (verified)
SageMaker AI endpointThe payload format the serving container expects (structured JSON or CSV)
Dialog appsConversation 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

Video lesson: AIP-C01 07/36: 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)

OptionNotes
Bedrock Knowledge BasesManaged (AWS recommended) or customer-managed with your own vector store; hierarchical chunking for parent/child organisation
Amazon OpenSearch Servicek-NN search by Euclidean distance or cosine similarity; ML connectors (neural search) integrate with Bedrock embedding models; Serverless option
Amazon Aurora / RDS for PostgreSQLpgvector extension; documents kept in Amazon S3
Amazon DynamoDBStore metadata alongside a vector database (guide example)
Also for KBsNeptune 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

Video lesson: AIP-C01 08/36: 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

Video lesson: AIP-C01 09/36: 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

StrategyHowUse when
Default~300 tokens, respects sentence boundariesGood starting point
Fixed-sizeYour max tokens per chunk plus an overlap percentageUniform documents; tune size
HierarchicalParent and child chunks: search on small children, return the broader parentPrecise matching and full context
SemanticSplits by meaning, not just syntaxTopic shifts within long text
No chunkingEach document is one chunkYou pre-split files yourself
Custom (Lambda)A custom transformation Lambda chunks content your waySpecial 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

Video lesson: AIP-C01 10/36: 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 overrideSearchType to 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

  1. AIP-C01 Domain 1 — checked Oct 19, 2026
  2. Converse API — checked Oct 19, 2026
  3. Amazon Comprehend — checked Oct 19, 2026
  4. OpenSearch k-NN — checked Oct 19, 2026
  5. OpenSearch ML connectors — checked Oct 19, 2026
  6. KB vector stores — checked Oct 19, 2026
  7. Knowledge Bases — checked Oct 19, 2026
  8. Sync data with a KB — checked Oct 19, 2026
  9. Direct ingestion — checked Oct 19, 2026
  10. KB chunking — checked Oct 19, 2026
  11. Titan Text Embeddings — checked Oct 19, 2026
  12. KB query configuration — checked Oct 19, 2026
  13. Reranking — checked Oct 19, 2026

Check your understanding

  • One request format across Bedrock models?Show answer

    Answer

    Converse API.
  • Postgres-based vector search on AWS?Show answer

    Answer

    Aurora or RDS for PostgreSQL with pgvector.
  • A policy changed this morning. What updates the KB?Show answer

    Answer

    Sync the data source (incremental) or ingest the change directly.
  • Precise matching but full-paragraph context?Show answer

    Answer

    Hierarchical chunking.
  • Users search exact part numbers and natural questions. Search type?Show answer

    Answer

    Hybrid.
Previous

Progress is saved in this browser.

Next Lesson