Based on the AIF-C01 exam guideReport an error
This week we passed through AIF-C01 Domain 2, "Fundamentals of Generative AI" (24% of scored questions). Domain 3, "Applications of Foundation Models" (28%), the heaviest domain, stands on these fundamentals too, so more than half of the two domains combined hinges on this week's concepts.
Since the exam tends to weave concepts together as "What is the right choice for this scenario?" rather than ask about them separately, grasping the connections between concepts is the key.
[Day1] Generative AI = creating new content (≠ traditional ML's judgment/prediction)
└ Foundation: Foundation Model (FM) → FM for language = LLM
└ AWS: invoked through Amazon Bedrock
│
[Day2] Inside an LLM: text → [tokenization] → [embedding (semantic vector)]
→ [processing within the context window] → [inference (next-token prediction)]
└ cost = tokens, memory limit = window, diversity = temperature
│
[Day3] Using it well: Prompt engineering (instruction, context, input, format)
└ Zero-shot / Few-shot (In-Context Learning) / CoT
└ Order to try: prompt → RAG → fine-tuning
│
[Day4] Risks: hallucination · bias · non-determinism (+ privacy, copyright, toxicity, injection)
└ Responsible AI: Clarify (bias) / Guardrails (safety) / AI Service Cards (transparency)
└ Human-in-the-loop for high-risk areas
This one flow reviews 80% of Week 3. If you can explain "why" for each arrow, you are ready for the exam.
| Term | One-line definition |
|---|---|
| Generative AI | AI that creates new content (text, images, code) |
| Foundation Model (FM) | A huge foundation model pretrained once and reused for many tasks |
| LLM | An FM that handles language; at its core, next-token prediction |
| Transformer | The core LLM architecture based on self-attention |
| Token | The unit into which a model cuts text (the basis for billing and limits) |
| Embedding | Text/tokens converted into numeric vectors that carry meaning |
| Context window | The maximum of input + output tokens that can be processed at one time |
| Inference | The process of generating an answer with a trained model (on every request) |
| temperature | Controls the diversity/creativity of the output (lower is more consistent) |
| Zero/Few-shot | A prompt technique giving 0 examples / a few examples |
| RAG | A technique that retrieves external/in-house documents and reflects them in the answer |
| Fine-tuning | Adjusting model weights to a domain through additional training |
| Hallucination | The phenomenon of plausibly inventing content that is not factual |
| Bias | Learning the prejudices of the data and producing unfair output |
| Non-determinism | The property that the output can differ even for the same input |
Rather than memorizing these terms separately, hanging them on two axes, "the journey of text through the model" and "the ladder of ways to handle a model (prompt → RAG → fine-tuning)," makes them last longer. Finding where the question's situation falls on these two axes gives you a clue to solving it.
⚠️ Pitfall: Three points that are especially confusing on the exam. ① "Few-shot = training" is wrong. Examples are merely shown in the prompt; the weights do not change. ② "RAG = fine-tuning" is wrong. RAG is not training but "inserting reference material." ③ "A longer prompt = a better answer" is wrong. Clarity matters more than length.
We rebuild what we learned by day of the week as the life of a single request. The situation is asking an internal policy chatbot, "What is the business trip expense limit?"
| Order | What happens | Day learned | Where money and limits are involved |
|---|---|---|---|
| ① | Convert the question into an embedding and find nearby policy fragments in the vector store | Day 2 | Embedding calls, vector store operation |
| ② | Assemble the instruction + retrieved fragments + question into one prompt | Day 3 | Input tokens for the assembled length |
| ③ | The entire prompt must fit inside the context window | Day 2 | If it overflows, it is cut off or the request is rejected |
| ④ | The model picks the next token one at a time to build the answer | Day 1·2 | Output tokens for the answer length; temperature sets the diversity |
| ⑤ | Check that the answer matches the source documents and contains no harmful or sensitive content | Day 4 | Guardrail checks |
| ⑥ | A person confirms high-impact items such as refunds or disciplinary actions | Day 4 | People's time |
Embedding · vector store · RAG appear together in one sentence and look like the same thing, but their roles differ.
| Concept | What it is | Analogy |
|---|---|---|
| Embedding | The result of converting text into a numeric vector that carries meaning (and the model that converts) | A coordinate attached to each book |
| Vector store (vector DB) | A repository that stores those vectors and finds the nearby ones | A bookshelf where you find books by coordinates |
| RAG | The whole method of attaching the retrieved content to the prompt and having the model answer | A librarian's procedure of opening the books and answering |
temperature · Top-P · Top-K all set "how boldly to pick the next token," but they act on different places. We borrow an example from AWS documentation. Suppose the candidates for "I hear hoofbeats. That is a ___" are horse 0.7, zebra 0.2, unicorn 0.1.
| Parameter | What it does | In the example above |
|---|---|---|
| temperature | Changes the shape of the probability distribution. Low makes it sharp, high makes it flat | Raising it increases the chance that unicorn is picked |
| Top-K | Keeps only the top K by probability as candidates | With K=2, only horse and zebra are candidates |
| Top-P | Keeps candidates only until the cumulative probability reaches P | With P=0.7, only horse; with 0.9, horse and zebra |
| Max tokens (response length) | Limits the length of the answer | Unrelated to diversity; directly tied to cost and latency |
| Symptom | Cause | What to do first | Remedies that don't work |
|---|---|---|---|
| It answers the latest internal policy wrongly | The model has never seen that information | Supply documents with RAG | Lowering temperature, an "answer accurately" instruction |
| It cites papers or cases that don't exist | Hallucination | Provide source documents, require citations, human review | Merely swapping in a bigger model |
| The answer format differs every time | Output format not specified | Specify the format, examples (Few-shot) | Trying fine-tuning first |
| Answers differ for the same question, making testing hard | Non-determinism of sampling | Lower temperature and Top-P, add a verification step | Writing a longer prompt |
| It forgets earlier content after a long conversation | Context window exceeded | Summarize the conversation, re-insert only the relevant parts | Adjusting temperature |
| The bill is larger than expected | Too many input and output tokens | Shorten prompt and response length, consider a smaller model | Adding more examples |
| Answers that disadvantage a specific group appear | Bias in the training data | Measure results by group, human oversight | Merely adding banned words to a guardrail |
| Profanity or personal information gets mixed into answers | No output control | Filter/mask with Guardrails | Adding Few-shot examples |
| Need | AWS service/feature |
|---|---|
| Call multiple FMs as managed through a single API | Amazon Bedrock |
| Generate embeddings | Amazon Titan Embeddings and other Bedrock embedding models |
| Store embeddings and similarity search (RAG) | Amazon OpenSearch Service, Amazon Aurora and RDS for PostgreSQL (pgvector), Amazon Neptune |
| RAG as managed, all at once | Amazon Bedrock Knowledge Bases |
| Harmful content filtering, PII masking, topic restriction | Amazon Bedrock Guardrails |
| Measuring data and model bias, explainability | Amazon SageMaker Clarify |
| Public documentation of an AI service's intended use, limits, and fairness | AWS AI Service Cards |
| Code generation and autocomplete assistance | Amazon Q Developer, Kiro |
🔍 Going Deeper: Exam scenarios usually ask "requirement → suitable service." For "an in-house document-based chatbot," it is Bedrock + embeddings + a vector DB (RAG); for "profanity and personal information must be blocked in the output," Guardrails; for "check whether the model is fair," Clarify; for "transparency and accountability documentation is needed," AI Service Cards. If you memorize the keyword and service pairs, variant questions can be solved too.
If any item stumps you, go back to the write-up for that day. If the answers come easily, you have mastered the Week 3 scope well enough.
As a hypothetical case, when a company introduced "automating customer support with generative AI," the team followed the order learned in Week 3 exactly. ① They rented an FM through Bedrock, ② set the tone and format with prompt engineering, ③ embedded the in-house FAQ and raised accuracy with RAG, ④ blocked sensitive information and harmful expressions with Guardrails, and ⑤ handed high-risk requests such as refunds and account deletion over to people through Human-in-the-loop. It was not flashy new technology but the basic principle of "cheap things first, control the risks" that was the key to success.
Next week, building on these fundamentals, we look into AWS's concrete generative AI services (especially Amazon Bedrock and its surrounding tools) and move on to how to combine them into real solutions.
Click a choice to reveal the answer and explanation.
Question 1
When synthesizing Week 3's essence, which correctly orders methods of adjusting model behavior from lowest to highest cost/difficulty?
Question 2
Which pairing of AWS service and its purpose is correct?
Question 3
What is the most important difference between "Few-shot prompting" and "Fine-tuning"?
Question 4
You want to build a chatbot that answers accurately based on latest internal policy documents and reduce hallucination. What's the most appropriate combination?
Question 5
Which risk and its explanation are incorrectly paired?