Exams / AIF-C01 / D4 Applications of Foundation Models
D4.6
Applications of Foundation Models (part 6 of 6)
- Exam domain: Applications of Foundation Models
Choosing the right AWS service
| Need | Answer |
|---|---|
| Inline code suggestions | Amazon Q Developer |
| Orchestrate multi-step tasks, API calls | Agents for Amazon Bedrock (Agents Classic, closed to new sign-ups; AgentCore is the successor) |
| Managed agent context across sessions | AgentCore Memory (short-term = one session, long-term = across sessions) |
| Live data from external systems | MCP tools (AgentCore Gateway turns APIs and Lambda into MCP tools) |
| Chatbot (voice/text) | Amazon Lex |
| Key phrases and sentiment in text | Amazon Comprehend |
| Speech to text | Amazon Transcribe (reads audio from S3) |
| Text from PDFs | Amazon Textract |
| ETL for ML data | AWS Glue |
| Grounded assistant on internal docs | Bedrock Knowledge Bases (RAG) |
| No-code model comparison | Bedrock playground |
| Large non-urgent workload | Bedrock batch inference (asynchronous, discounted) |
Customization and prompts
| Situation | Choice |
|---|---|
| Least effort | Prompt engineering, then RAG, before customization |
| Labeled input-output pairs | Supervised fine-tuning |
| Frequently changing documents | RAG (Knowledge Bases), no retraining |
| Switching to another provider's model | Adjust and retest the prompt template |
Evaluation
| Goal | Tool |
|---|---|
| Scalable scoring of quality (correctness, helpfulness, tone) | LLM-as-a-judge |
| Summaries grounded in source | Faithfulness (flags content not found in the prompt) |
| RAG retrieval quality | Context relevance, context coverage; recall = completeness |
| Human reviewers, internal and external | Work teams (SageMaker Ground Truth workforce) |
| Human review of low-confidence predictions | Amazon A2I |
| ROI of an AI feature | Business outcomes such as conversion and retention |
Nova models
| Model | Notes |
|---|---|
| Micro | Text-only, lowest latency |
| Lite | Multimodal, very low cost |
| Pro | Multimodal, most capable of the three for balanced tasks |
| Premier | 1M-token context, text/images/video; legacy, end-of-life 14 Sep 2026 |
| Canvas / Reel | Image / video generation |
Exam traps
- Changing data = RAG, not fine-tuning.
- Labeled data = fine-tuning; unlabeled = continued pre-training.
- Polly is text to speech, not transcription; Lex builds bots, not summaries.
- Nova Lite and Pro are both multimodal and multilingual; Micro is text-only.
- Retrieval completeness = recall; retrieval cleanliness = precision.
- Retired or closed-to-new-customer services (Agents Classic, Ground Truth, A2I) still appear as expected answers.
Docs
- https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/inline-suggestions.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/agents-how.html
- https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/memory.html
- https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/gateway.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-metrics.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-judge.html
- https://docs.aws.amazon.com/nova/latest/userguide/prompting-long-context.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/batch-inference.html