Skip to content

Exam Guide & Traps โ€‹

โ† Domain 5 ยท Cheatsheet โ†’


Exam Traps โ€‹

Trap 1: Bedrock Model Confusion โ€‹

Know which model for which scenario:

If question mentions...Think...
Long documents (200K tokens)Anthropic Claude
Cost-effective text generationAmazon Titan Text
Embeddings for RAGAmazon Titan Embeddings
Image generationStable Diffusion XL
Multilingual contentCohere or AI21 Jurassic

Trap 2: RAG vs Fine-Tuning vs Prompt Engineering โ€‹

Common mistake: Choosing fine-tuning when RAG or prompting would work.

Correct order:

  1. Prompt Engineering (try first - cheapest, fastest)
  2. RAG (need current/private data)
  3. Fine-Tuning (only if above methods insufficient)

Examples:

  • โŒ "Fine-tune the model to access current news"

  • โœ… "Use RAG to provide current news as context"

  • โŒ "Fine-tune for better output format"

  • โœ… "Use few-shot prompting with examples"

Trap 3: ML Metrics Selection โ€‹

ScenarioMetricWhy
Spam filterPrecisionFalse positives costly (important emails marked spam)
Medical diagnosisRecallFalse negatives costly (miss diseases)
Balanced datasetAccuracyClasses are equal
Imbalanced dataPrecision/RecallAccuracy misleading

Trap 4: Responsible AI Tools โ€‹

NeedAWS Service
Detect bias in data/modelsSageMaker Clarify
Monitor model driftSageMaker Model Monitor
Human review workflowsAmazon A2I
Explain predictionsSageMaker Clarify

Trap 5: Security Best Practices โ€‹

When asked about securing AI systems:

  • โœ… Encrypt at rest (AWS KMS, S3 encryption)
  • โœ… Encrypt in transit (TLS/SSL)
  • โœ… IAM policies for access control
  • โœ… Input validation and sanitization
  • โœ… Monitor for prompt injection attacks

Common trap: Forgetting that Bedrock data does not train public models.


Decision Quick Reference โ€‹

Bedrock vs SageMaker Quick Decision Tree โ€‹

Need to use AI/ML?
โ”œโ”€ Want pre-built models via API?
โ”‚  โ”œโ”€ GenAI/LLMs? โ†’ Amazon Bedrock โญ
โ”‚  โ””โ”€ Specific tasks? โ†’ AI Services (Rekognition, Comprehend, etc.)
โ”‚
โ””โ”€ Want to build/train custom models?
   โ””โ”€ Full ML lifecycle control? โ†’ SageMaker โญ

Decision Quick Reference โ€‹

"Which AWS AI service?" โ€‹

Extract text from documents โ†’ Amazon Textract
Analyze sentiment โ†’ Amazon Comprehend
Translate languages โ†’ Amazon Translate
Speech-to-text โ†’ Amazon Transcribe
Text-to-speech โ†’ Amazon Polly
Build chatbot โ†’ Amazon Lex
Recommendations โ†’ Amazon Personalize
Fraud detection โ†’ Amazon Fraud Detector
Search documents โ†’ Amazon Kendra
Access foundation models โ†’ Amazon Bedrock
Full ML platform โ†’ Amazon SageMaker

"RAG, Fine-Tuning, or Prompt Engineering?" โ€‹

Simple task, common format โ†’ Prompt Engineering (zero-shot)
Custom format, few examples โ†’ Prompt Engineering (few-shot)
Need current data โ†’ RAG
Need private/proprietary data โ†’ RAG
Have 100+ training examples โ†’ Fine-Tuning
Domain-specific terminology โ†’ Fine-Tuning
Budget constrained โ†’ Prompt Engineering

"Which type of learning?" โ€‹

Have labeled data (X and y) โ†’ Supervised Learning
No labels, find patterns โ†’ Unsupervised Learning
Learn through rewards โ†’ Reinforcement Learning

"How to address concerns about..." โ€‹

Hallucinations โ†’ Use RAG, implement guardrails, human review
Data privacy โ†’ Bedrock doesn't train on your data, encryption
Bias โ†’ Use SageMaker Clarify, diverse training data
Cost โ†’ Choose appropriate model size, optimize prompts, cache
Model drift โ†’ SageMaker Model Monitor, regular retraining

Exam Day Reminders โ€‹

Think Like This โ€‹

For Bedrock questions:

  • Longest context? โ†’ Claude (200K)
  • Cheapest? โ†’ Titan
  • Embeddings? โ†’ Titan Embeddings
  • Images? โ†’ Stable Diffusion

For ML questions:

  • False positives bad? โ†’ Precision
  • False negatives bad? โ†’ Recall
  • Model too simple? โ†’ Underfitting
  • Memorized training data? โ†’ Overfitting

For Responsible AI:

  • Detect bias? โ†’ SageMaker Clarify
  • Monitor drift? โ†’ SageMaker Model Monitor
  • Human review? โ†’ Amazon A2I

For RAG:

  • Always: Embeddings โ†’ Vector DB โ†’ Retrieve โ†’ Generate
  • AWS vector DB: Amazon OpenSearch Service

โ† Domain 5 ยท Cheatsheet โ†’

Happy Studying! ๐Ÿš€ โ€ข Privacy-friendly analytics โ€” no cookies, no personal data
Privacy Policy โ€ข AI Disclaimer โ€ข Report an issue