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
- Define the use case and success metrics
- Identify the knowledge (internal data) and actions (tools) needed
- Choose a configuration from prompt, RAG, agent and fine-tuning
- Check risks with the Generative AI Lens
- 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
- Do not start with a complex setup; choose the simplest configuration that meets requirements
- Include non-functional requirements (latency, availability, data residency) in the design
- Decide PoC evaluation criteria in advance
Mini quiz
Q1. Executives want to decide within 2 weeks whether generative AI can automate inquiry handling. Which approach is most appropriate?
- Build full production infrastructure first, and only then check quality and cost
- Build a PoC using several Bedrock models on representative inquiry data, and measure quality, latency and cost to decide
- Only interview internal staff and judge feasibility on paper without trying any model
- 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?
- Review designs with the Well-Architected Generative AI Lens and standardize shared components (prompt templates, guardrails, logging)
- Have all teams copy the code of the first app and build the same architecture even when requirements differ
- Write no design documents and just have each team explain verbally at a weekly meeting
- 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
- Compare candidate models with evaluation prompts
- Implement with the Converse API so models are easy to switch
- Set inference parameters (temperature, top-p, max tokens, stop sequences)
- Use cross-Region inference if throughput is insufficient
- 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
- With cross-Region inference, data may be processed in another Region (check data residency)
- The Converse API spares you from worrying about each model's input format
- Model access must be enabled in the account
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?
- Whether the model provider has an office in Japan
- Whether the color and font of the model's output can be changed to match the app's screen design
- Whether the document, instructions and output fit within the model's maximum context length
- 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?
- Choose a model without image input and paste the image data as a string into the prompt
- Write only the image file name in the text and let the model guess the content from the file name
- Print the image, have staff transcribe its content into text, and send only that text to a text-only model
- 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
- Validate the format and schema of input data
- Detect personal information and mask it where needed
- Parse PDF and image documents into text that preserves tables and layout
- Remove duplicate and outdated documents
- 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
- Feeding in low-quality data lowers RAG answer quality too
- Decide how personal information is handled before ingestion
- Process large documents asynchronously or in batches
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?
- Use a model with reasoning capability and set a limit on how much it thinks
- Use the reasoning model for every task, including simple questions
- Fine-tune a large model on financial data and use it
- 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?
- That using the profile automatically stores all data in the Tokyo Region
- The weather in the destination Regions and the size of the data center buildings
- Only whether the profile name matches internal naming rules
- 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
- Check requirements for data volume, query frequency, latency and cost
- Choose a vector store that fits the requirements
- Decide the embedding model and set dimensions and index
- Attach metadata (department, date, permissions) so filters can narrow results
- 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
- Changing the embedding model makes existing vectors incomparable (they must be recreated)
- If you already use Aurora PostgreSQL, pgvector avoids adding operational burden
- Metadata filters can also be used for access control
Mini quiz
Q1. You want to clean up inconsistently written meeting notes before embedding. Which approach is most appropriate?
- Ingest the notes as is and use smaller chunks to improve retrieval
- Switch to a larger multilingual embedding model to absorb the variations
- Enable hybrid search so keyword matches cover the variations
- 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?
- Build a separate app per industry and have sales reps choose the right one
- Add industry, creation date and author metadata to proposals and use metadata filters in retrieval
- Retrieve from all proposals and ask the model to ignore old ones
- 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
- Choose chunking that fits the document structure
- Use hybrid search when there are many proper nouns or model numbers
- Raise the relevance of top results with a reranker
- Split complex questions into multiple searches with query decomposition
- 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
- Hierarchical chunking balances retrieval precision and rich context
- Retrieve returns only search results, so you control generation yourself
- More results add context but also add cost and the risk of mixing in errors
Mini quiz
Q1. Vector search documents exceed 100 million, and search latency is increasing. What should you review first in OpenSearch Service?
- Greatly increase vector dimensions to raise only search accuracy
- Put all documents in one small shard and minimize instance count for cost
- Review shard count and size, replicas, instance types and how indexes are split by domain
- 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?
- Build an Amazon Kendra index and have the agent search it
- Crawl both sites' URLs with a web crawler data source
- Export documents to S3 with Glue jobs and use S3 as the data source
- 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
- Turn prompts into templates and insert input through variables
- Create versions in Prompt Management and pin the version used in production
- Compare changes on evaluation data before publishing
- Write safety instructions and the output format in the system prompt
- 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
- Writing prompts directly in app code makes change management and auditing hard
- Without specifying a version, unintended changes reach production
- Counter prompt injection with guardrails, not only with prompts
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?
- Prepare per-model prompt templates, enforce format with structured output, and evaluate before switching
- Switch gradually in AppConfig, raising the share while watching the failure rate
- Add a fallback that resends failed requests to the previous model
- 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?
- Compare before and after each change in a CI pipeline with an evaluation dataset of expected outputs
- Keep versions in Prompt Management so you can roll back when problems appear
- Run an A/B test in production and keep the version users rate higher
- 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)
- The questions on this site are original practice questions written by this site based on publicly available skills outlines and exam guides. They are not actual exam questions.
- Amazon Web Services, AWS and related marks are trademarks of Amazon.com, Inc. or its affiliates. This site is not affiliated with or endorsed by AWS.
- This content is a study aid and does not guarantee a pass. Exam content, format and prerequisites may change without notice; always check the latest information on the official page before taking the exam.
- Your accuracy on the mock exam cannot be converted to the official (scaled) score and does not predict a pass or fail.
- Progress is saved only in this browser (localStorage) unless you sign in with Google to sync it. You can delete it from the Cookie & storage settings page (Japanese).