AI and Machine Learning on AWS for Beginners: Bedrock, SageMaker, Rekognition, Comprehend, Polly, Transcribe and Lex

AWS Technical Essentials 45 min min read Updated: Nov 17, 2026 Beginner
AI and Machine Learning on AWS for Beginners: Bedrock, SageMaker, Rekognition, Comprehend, Polly, Transcribe and Lex
Beginner Topic 3 of 3

Basic Terms

TermMeaning
AIMachines doing tasks that need human-like intelligence
Machine learning (ML)Computers learn patterns from data instead of fixed rules
Deep learningML using neural networks with many layers
Generative AIModels that create text, images, code. Based on foundation models (FMs) and large language models (LLMs)
Training / InferenceLearning from data / using the model to predict

Three Layers of AWS AI

LayerForServices
AI services (ready to use)Developers who want results through an APIRekognition, Comprehend, Textract, Polly, Transcribe, Translate, Lex, Kendra, Personalize, Forecast
Generative AIBuild with foundation modelsAmazon Bedrock, Amazon Q
ML platformData scientists who build and train modelsAmazon SageMaker
InfrastructureHeavy training and inferenceGPU instances, AWS Trainium and Inferentia

Ready-Made AI Services

ServiceDoes
RekognitionFind objects, faces, text and unsafe content in images and video
TextractExtract text, forms and tables from documents
ComprehendUnderstand text: sentiment, entities, key phrases, language
TranslateTranslate text between languages
TranscribeSpeech to text
PollyText to speech
LexBuild chatbots with voice and text
KendraIntelligent enterprise search
PersonalizeRecommendations like 'customers also bought'
Forecast / Fraud DetectorPredictions and fraud checks
bash aws rekognition detect-labels --image '{"S3Object":{"Bucket":"my-images","Name":"street.jpg"}}' --max-labels 5 aws comprehend detect-sentiment --language-code en --text "The delivery was fast and the product is great" aws polly synthesize-speech --output-format mp3 --voice-id Joanna --text "Welcome to AWS" welcome.mp3 aws translate translate-text --source-language-code en --target-language-code hi --text "Good morning"

Amazon Bedrock

  • A managed service to use foundation models from Amazon and other providers through one API
  • No servers to manage. Your data is not used to train the base models
  • Features: Knowledge Bases (RAG: answer from your documents), Agents, Guardrails, fine-tuning and model evaluation
  • Typical uses: chat assistants, summarizing, writing help, code help, search over documents
python import boto3, json br = boto3.client("bedrock-runtime", region_name="us-east-1") resp = br.converse( modelId="amazon.nova-lite-v1:0", messages=[{"role": "user", "content": [{"text": "Explain Amazon S3 in two simple sentences."}]}], inferenceConfig={"maxTokens": 200, "temperature": 0.3}, ) print(resp["output"]["message"]["content"][0]["text"])
Note Model IDs and availability change by Region and over time. Check the Bedrock console for models enabled in your account.

Amazon SageMaker

  • Platform to build, train, tune and deploy your own ML models
  • Includes notebooks, data labeling, pipelines, model hosting endpoints and monitoring
  • Choose it when ready-made services do not fit your problem

Responsible AI Basics

  • Check for bias and fairness
  • Protect privacy and sensitive data
  • Keep a human in the loop for important decisions
  • Use Guardrails to block harmful content
  • Models can hallucinate: verify important facts

Choosing

NeedChoose
Read text from scanned invoicesTextract
Detect faces or objects in photosRekognition
Chatbot over company documentsBedrock Knowledge Bases or Amazon Q
Custom model for your own dataSageMaker
Convert call recordings to textTranscribe

Practice

  1. Run Comprehend sentiment on three sentences
  2. Detect labels in a photo with Rekognition
  3. Generate speech with Polly
  4. Call a Bedrock model from the console playground
  5. Match five business problems to the right service

Conclusion

AWS offers ready-made AI services for common tasks, Bedrock for generative AI with foundation models, and SageMaker to build custom models. Start with the managed service that fits, and use AI responsibly.

Quick Summary: terms; layers; ready-made; Bedrock; SageMaker; responsible AI; choosing.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators