AIP-C01 · LESSON 1

Foundation Model Integration, Data Management, and Compliance31% · 6 topics

Learn requirements analysis and design, foundation model selection and configuration, data validation and processing, vector stores, retrieval mechanisms, and prompt strategy and governance.

1.1Analyze requirements and design a GenAI solution

1.1 Analyze requirements and design GenAI solutions.

Concept

In design, you choose an architecture (prompt only, RAG, agent, fine-tuning) from the business goals, users, accuracy, latency, cost, data sensitivity and regulatory requirements. The AWS Well-Architected Generative AI Lens gives design guidance for generative AI workloads from the perspective of the six pillars. Confirm feasibility with a proof of concept (PoC) before moving to production.

How it works / steps

  1. Define the use case and success metrics
  2. Identify the knowledge (internal data) and actions (tools) needed
  3. Choose a configuration from prompt, RAG, agent and fine-tuning
  4. Check risks with the Generative AI Lens
  5. Measure quality and cost in a PoC

Workplace example

Design an internal procurement help desk as an agent that uses RAG over policies and calls the ordering system's API as a tool, and measure answer accuracy in a two-week PoC.

Common confusions and exam tips

Mini quiz

Q1. Executives want to decide within 2 weeks whether generative AI can automate inquiry handling. Which approach is most appropriate?

  1. Build full production infrastructure first, and only then check quality and cost
  2. Build a PoC using several Bedrock models on representative inquiry data, and measure quality, latency and cost to decide
  3. Only interview internal staff and judge feasibility on paper without trying any model
  4. Pick the most famous model and connect it to the company-wide desk without a PoC
Show answer and explanation

Answer: B Build a PoC using several Bedrock models on representative inquiry data, and measure quality, latency and cost to decide

Before full-scale building, create a small PoC with representative data to confirm feasibility, performance and business value.

Q2. Multiple teams are each building generative AI apps, and design quality varies. Which is the most appropriate way to align designs?

  1. Review designs with the Well-Architected Generative AI Lens and standardize shared components (prompt templates, guardrails, logging)
  2. Have all teams copy the code of the first app and build the same architecture even when requirements differ
  3. Write no design documents and just have each team explain verbally at a weekly meeting
  4. Let each team design freely and rebuild only the apps that have problems later
Show answer and explanation

Answer: A Review designs with the Well-Architected Generative AI Lens and standardize shared components (prompt templates, guardrails, logging)

Evaluating designs with the Generative AI Lens in the Well-Architected Tool and standardizing shared components aligns quality across teams.

Reference links

1.2Select and configure foundation models

1.2 Select and configure FMs.

Concept

Choose Bedrock models by capability (reasoning, multimodal, code), context length, latency, cost and Regional availability. The Converse API is a unified API that absorbs differences between models and handles tool use and multi-turn conversations. Cross-Region inference (inference profiles) distributes inference across multiple Regions to raise throughput.

How it works / steps

  1. Compare candidate models with evaluation prompts
  2. Implement with the Converse API so models are easy to switch
  3. Set inference parameters (temperature, top-p, max tokens, stop sequences)
  4. Use cross-Region inference if throughput is insufficient
  5. Manage model end of support (lifecycle)

Workplace example

Because throttling occurred at peak times, switch to a cross-Region inference profile and distribute inference across multiple Regions.

Common confusions and exam tips

Mini quiz

Q1. You want an FM to read an entire contract of over 100 pages at once to find contradictory clauses. What should you check first when choosing the FM?

  1. Whether the model provider has an office in Japan
  2. Whether the color and font of the model's output can be changed to match the app's screen design
  3. Whether the document, instructions and output fit within the model's maximum context length
  4. Whether the model's name is easy to remember and explain to internal users
Show answer and explanation

Answer: C Whether the document, instructions and output fit within the model's maximum context length

To handle a long document at once, the total of input and output must fit within the model's context length. If it does not fit, consider splitting or RAG.

Q2. You are building an app where users send a photo of equipment together with a question, and it answers likely causes of failure. Which implementation is most appropriate?

  1. Choose a model without image input and paste the image data as a string into the prompt
  2. Write only the image file name in the text and let the model guess the content from the file name
  3. Print the image, have staff transcribe its content into text, and send only that text to a text-only model
  4. Choose a model that supports image input and send both the image and text in a Converse API message
Show answer and explanation

Answer: D Choose a model that supports image input and send both the image and text in a Converse API message

Multimodal models can handle images and text together inside a Converse API message.

Reference links

1.3Implement data validation and processing pipelines

1.3 Implement data validation and processing pipelines for FM consumption.

Concept

Before data is passed to a model, validate its format, detect and mask personal information (Comprehend, Macie, guardrails), remove duplicates and low-quality documents, and parse documents (Textract, Bedrock Data Automation, knowledge base parsers). Build the processing into pipelines with Lambda, Step Functions and Glue.

How it works / steps

  1. Validate the format and schema of input data
  2. Detect personal information and mask it where needed
  3. Parse PDF and image documents into text that preserves tables and layout
  4. Remove duplicate and outdated documents
  5. Automate processing with Step Functions and retry failures

Workplace example

Parse contract PDFs with Bedrock Data Automation to preserve tables, mask personal names with Comprehend, then ingest them into a knowledge base.

Common confusions and exam tips

Mini quiz

Q1. For financial analysis, you want answers to hard questions that require many steps of calculation and deliberation. Somewhat longer response time is acceptable. What is the most appropriate model choice?

  1. Use a model with reasoning capability and set a limit on how much it thinks
  2. Use the reasoning model for every task, including simple questions
  3. Fine-tune a large model on financial data and use it
  4. Use a fast, cheap model with a chain-of-thought instruction
Show answer and explanation

Answer: A Use a model with reasoning capability and set a limit on how much it thinks

Reasoning models think step by step to improve accuracy on hard problems, but tokens and latency increase. Use them only for hard tasks and set limits. [Other options] Chain-of-thought helps, but reasoning models suit multi-step analysis better. Using them for simple questions adds cost and latency. Fine-tuning adds knowledge, not reasoning ability.

Q2. The model you want is not offered in the Tokyo Region, but it is available through a Japan geography cross-Region inference profile. What should you check before using it?

  1. That using the profile automatically stores all data in the Tokyo Region
  2. The weather in the destination Regions and the size of the data center buildings
  3. Only whether the profile name matches internal naming rules
  4. Whether processing in the Regions requests are routed to is allowed by company data-location rules
Show answer and explanation

Answer: D Whether processing in the Regions requests are routed to is allowed by company data-location rules

With cross-Region inference, requests are processed in the Regions covered by the profile. Confirm this meets data-location requirements.

Reference links

1.4Design and implement vector stores

1.4 Design and implement vector store solutions.

Concept

A vector store saves embedding vectors and performs similarity search. On AWS you can use OpenSearch Serverless and OpenSearch Service (hybrid search, high performance), Aurora PostgreSQL (pgvector), Neptune Analytics (GraphRAG), Amazon S3 Vectors (low-cost storage of large numbers of vectors) and more. Design the embedding model and vector dimensions, metadata filters and the index method (such as HNSW).

How it works / steps

  1. Check requirements for data volume, query frequency, latency and cost
  2. Choose a vector store that fits the requirements
  3. Decide the embedding model and set dimensions and index
  4. Attach metadata (department, date, permissions) so filters can narrow results
  5. Re-index when you change the embedding model

Workplace example

Use S3 Vectors to store billions of vectors that are rarely queried, and keep frequently searched recent documents in OpenSearch Serverless.

Common confusions and exam tips

Mini quiz

Q1. You want to clean up inconsistently written meeting notes before embedding. Which approach is most appropriate?

  1. Ingest the notes as is and use smaller chunks to improve retrieval
  2. Switch to a larger multilingual embedding model to absorb the variations
  3. Enable hybrid search so keyword matches cover the variations
  4. Normalize dates, amounts and product names with Lambda or Bedrock into a fixed format before ingesting
Show answer and explanation

Answer: D Normalize dates, amounts and product names with Lambda or Bedrock into a fixed format before ingesting

Input quality determines response quality. Align data passed to the FM through normalization, reformatting and entity extraction. [Other options] Chunk size, embedding models or hybrid search don't fix inconsistent dates and amounts themselves. Normalizing input improves both retrieval and generation.

Q2. You want to ground answers only in “proposals from the last year for manufacturing customers.” Which design is most appropriate?

  1. Build a separate app per industry and have sales reps choose the right one
  2. Add industry, creation date and author metadata to proposals and use metadata filters in retrieval
  3. Retrieve from all proposals and ask the model to ignore old ones
  4. Write the industry in proposal file names and instruct the model in the prompt to pick correctly by file name
Show answer and explanation

Answer: B Add industry, creation date and author metadata to proposals and use metadata filters in retrieval

Adding metadata (date, author, classification) and using it as retrieval filters improves retrieval accuracy and context.

Reference links

1.5Design retrieval mechanisms for FM augmentation

1.5 Design retrieval mechanisms for FM augmentation.

Concept

RAG retrieval quality is determined by chunking (fixed-size, hierarchical, semantic, none), search method (semantic, hybrid), reranking (reranker models), query decomposition and rewriting, and the number of results. Bedrock Knowledge Bases can configure these and offer the Retrieve (search only) and RetrieveAndGenerate (search and generation) APIs.

How it works / steps

  1. Choose chunking that fits the document structure
  2. Use hybrid search when there are many proper nouns or model numbers
  3. Raise the relevance of top results with a reranker
  4. Split complex questions into multiple searches with query decomposition
  5. Narrow the target with metadata filters

Workplace example

Ingest a long technical manual with hierarchical chunking, search with child chunks and answer with the parent chunk's context, and narrow to the top 5 with a reranker.

Common confusions and exam tips

Mini quiz

Q1. Vector search documents exceed 100 million, and search latency is increasing. What should you review first in OpenSearch Service?

  1. Greatly increase vector dimensions to raise only search accuracy
  2. Put all documents in one small shard and minimize instance count for cost
  3. Review shard count and size, replicas, instance types and how indexes are split by domain
  4. Rebuild the index on every search so searches are always up to date
Show answer and explanation

Answer: C Review shard count and size, replicas, instance types and how indexes are split by domain

In large-scale vector search, shard design, replicas, instances and index splitting (per domain) drive performance.

Q2. You also want to use internal Confluence and SharePoint documents as RAG sources. Which approach requires the least effort?

  1. Build an Amazon Kendra index and have the agent search it
  2. Crawl both sites' URLs with a web crawler data source
  3. Export documents to S3 with Glue jobs and use S3 as the data source
  4. Connect Confluence and SharePoint with Bedrock knowledge base data source connectors
Show answer and explanation

Answer: D Connect Confluence and SharePoint with Bedrock knowledge base data source connectors

Besides S3, knowledge bases support connectors such as a web crawler, Confluence, SharePoint and Salesforce. [Other options] Glue exports add work and update lag. Kendra means building another service. The web crawler doesn't suit internal sites that need authentication.

Reference links

1.6Prompt strategy and governance

1.6 Implement prompt engineering strategies and governance for FM interactions.

Concept

Compose prompts from role, instructions, context, examples and output format, and use few-shot, chain-of-thought and structured output as appropriate. Bedrock Prompt Management provides prompt templates and variables, version management and stored model settings, and Prompt Flows chain multiple steps. Govern prompt changes through evaluation and review.

How it works / steps

  1. Turn prompts into templates and insert input through variables
  2. Create versions in Prompt Management and pin the version used in production
  3. Compare changes on evaluation data before publishing
  4. Write safety instructions and the output format in the system prompt
  5. Record prompt content and model settings so they can be audited

Workplace example

Save the customer support reply prompt as version 3 in Prompt Management, with the app calling it by version. Switch to version 4 only after evaluation confirms improved quality.

Common confusions and exam tips

Mini quiz

Q1. After switching the model to another provider's via AppConfig, failures to parse output JSON increased. What is the most appropriate next step?

  1. Prepare per-model prompt templates, enforce format with structured output, and evaluate before switching
  2. Switch gradually in AppConfig, raising the share while watching the failure rate
  3. Add a fallback that resends failed requests to the previous model
  4. Set temperature to 0 and keep the same prompt on the new model
Show answer and explanation

Answer: A Prepare per-model prompt templates, enforce format with structured output, and evaluate before switching

Prompts work differently for each model. Maintain quality with per-model templates, structured output and evaluation before switching. [Other options] Lower temperature doesn't fix per-model prompt differences. Fallbacks and gradual rollout limit impact but don't fix the format failures.

Q2. Every time a prompt changes, you want to confirm quality has not dropped. Which mechanism is most appropriate?

  1. Compare before and after each change in a CI pipeline with an evaluation dataset of expected outputs
  2. Keep versions in Prompt Management so you can roll back when problems appear
  3. Run an A/B test in production and keep the version users rate higher
  4. Have the editor try a few questions in the playground and ship if fine
Show answer and explanation

Answer: A Compare before and after each change in a CI pipeline with an evaluation dataset of expected outputs

Prompts also keep quality through regression testing. Build evaluation datasets and automatic evaluation (such as LLM-as-a-judge) into CI. [Other options] Versioning allows rollback but doesn't catch drops beforehand. A few tries aren't reproducible. A/B tests find problems only after users are affected.

Reference links

Lessons are written by this site based on public information and do not guarantee exam content. Product specifications change, so check the latest information at the reference links.

Notes (unofficial, original questions, no pass guarantee)