
Welcome to Introduction to AI in the AWS Ecosystem. This course prepares you for the AWS Certified AI Practitioner exam, and covers every domain of it, in about two and a half hours, with eighteen hands-on labs.
What is AI, really? In this lecture, we pin down four words you'll hear everywhere: AI, machine learning, deep learning, and generative AI, and see how they fit together.
Models learn from data. But data comes in different forms, and a model can learn from it in different ways. In this lecture, we sort out both.
Deep learning powers face unlock, speech recognition, and chat assistants. Its engine is the neural network. In this lecture, we build one, and watch it learn.
Every model makes mistakes. Two ideas explain most of them: bias, and variance. In this lecture, we see both, learn to spot them in the numbers, and fix them.
A model that looks great in training can still fail in the real world. In this lecture, we measure models properly: how to split the data, and which numbers to trust.
A model learns its parameters by itself. But some settings are yours to choose. And once it's trained, it still has to serve predictions. In this lecture, we cover both.
Not every problem needs AI, and not every AI problem needs the same kind of model. In this lecture, we decide when AI is worth it, and which kind to use.
Not every AI project needs you to train a model. AWS offers ready-made AI services that you call like any other service. In this lecture, we try four of them in the console: for images, documents, text, and translation.
In the last lecture, our AI services worked with images and text. Now we add voice: turning text into speech, speech into text, and building a chatbot that holds a conversation.
So far, we've used ready-made services. Now: how do you build your own model, and keep it working? In this lecture, we walk through the machine learning pipeline, and the practices of MLOps, then look at the console.
A model can score well, and still fail the business. In this lecture, we connect model metrics to what the business actually gains.
How does a model write a paragraph it has never seen? In this lecture, we open up generative AI: tokens, embeddings, and the transformer that ties them together.
Behind almost every generative AI tool sits a foundation model. In this lecture, we see what makes it different, how it's built, and how it learns to be helpful.
Some models paint pictures out of static. Others understand text, images, and sound together. In this lecture, we see how both work.
Generative AI is powerful, but not magic, and not free. In this lecture: what it's good for, where it falls short, and how its costs work.
AWS offers several services for generative AI, each for a different kind of user, and a different level of control. In this lecture, we map them out, and visit them in the console.
Code shown in this lecture:
Example code an assistant like Amazon Q Developer can write:
def reset_password(email):
token = new_token()
send_mail(email, token)
return "sent"
A Strands agent in a few lines (Python):
from strands import Agent
agent = Agent(tools=[...])
agent("Book a room")
Prompt asked to Amazon Q:
Which AWS service should I use to add a chatbot built on foundation models to my app?Bedrock offers hundreds of models. Which one should you use, and how do you shape its answers? In this lab, we choose a model, then try its settings in the playground.
Prompts used in this lab:
Bedrock playground (temperature 1, then 0): Write a one-line slogan for a coffee shop next to a library. Maximum output tokens set to 10: Explain what a foundation model is.
The fastest way to improve a model's answers is to improve what you ask. In this lab, we build better prompts, and test zero-shot, few-shot, and chain-of-thought prompting in the playground.
Prompts used in this lab:
Zero-shot: Classify the sentiment of this hotel review: "The room was spotless, but the staff ignored us at check-in." Few-shot: Classify each hotel review as Positive, Negative or Mixed. Reply with one word, like the examples. Review: "Great breakfast and friendly staff." → Positive Review: "The shower was broken and nobody fixed it." → Negative Review: "Nice view, but very noisy at night." → Mixed Review: "The room was spotless, but the staff ignored us at check-in." → (In the playground the arrows were typed as - followed by a greater-than sign.) Chain-of-thought: A cafe sells coffee for $3 and muffins for $2. Lina buys 2 coffees and 3 muffins, and pays with $20. How much change? Think step by step.
Good prompts are worth keeping. In this lab, we see the habits of a good prompt, turn it into a reusable template, and store, test, and version it in Amazon Bedrock Prompt Management.
Prompt template used in this lab:
Bedrock Prompt Management template (each name in double curly braces is a variable):
You are the front desk of {{hotel}}. Reply in {{language}}, in at most 3 sentences, to: {{message}}
A structured prompt (the tags are written with angle brackets in a real prompt):
[role] You are the front desk of Harbor View Hotels.
[task] Reply to the guest message below.
[limits] Max 3 sentences. Friendly tone. If unsure, offer to check.
[format] Return JSON: {"reply": ...}
[message] Can I check in early tomorrow?A foundation model knows a lot about the world, but nothing about your company's own documents. In this lab, we fix that with retrieval augmented generation, or RAG, and build a working example with Amazon Bedrock Knowledge Bases.
Code and commands used in this lab:
Invocation code from the knowledge base page (Python, boto3); replace YOUR_KB_ID with your knowledge base ID:
import boto3
client = boto3.client("bedrock-agent-runtime", region_name="us-east-1")
# Retrieve
retrieve = client.retrieve(
knowledgeBaseId="YOUR_KB_ID",
retrievalQuery={"text": "your query here"},
)
print("Retrieve:", retrieve["retrievalResults"])
# RetrieveAndGenerate
rag = client.retrieve_and_generate(
input={"text": "your query here"},
retrieveAndGenerateConfiguration={
"type": "KNOWLEDGE_BASE",
"knowledgeBaseConfiguration": {
"knowledgeBaseId": "YOUR_KB_ID",
"modelArn": "global.anthropic.claude-sonnet-4-6",
},
},
)
print("RetrieveAndGenerate:", rag["output"]["text"])
The same call from the AWS CLI:
aws bedrock-agent-runtime retrieve-and-generate --region us-east-1 --input '{"text":"How many points do I need for a free night, and when do points expire?"}' --retrieve-and-generate-configuration '{"type":"KNOWLEDGE_BASE","knowledgeBaseConfiguration":{"knowledgeBaseId":"YOUR_KB_ID","modelArn":"arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-lite-v1:0"}}'
Questions asked in the test panel:
Can I bring my dog, and how much does it cost?
I booked a non-refundable rate. Can I cancel it?
Does the hotel have a swimming pool?
Knowledge base name: harbor-view-policies-kb (data source: Amazon S3)In the last lab, our knowledge base stored its embeddings in a vector store. In this lab, we see how a vector database finds the right chunks so fast, and which AWS services can play that role.
A general model rarely fits your business perfectly. In this lab, we compare the ways to adapt it, prepare training data, and set up fine-tuning and distillation jobs in Amazon Bedrock.
Training data format shown in this lab:
Fine-tuning data is a JSON Lines file in S3, one example per line:
{"prompt": "Late checkout?", "completion": "Until 2 PM, free for members."}
{"prompt": "Pet fee?", "completion": "$25 per night, one pet under 20 kg."}
{"prompt": "Airport shuttle?", "completion": "Every hour, 6 AM to 11 PM."}Generative AI is moving from answering questions to getting work done. In this lab, we see what makes a system an agent, how agents work together, and build one in Amazon Bedrock AgentCore.
Agent setup and prompt used in this lab:
AgentCore Harness: Quick create, name hotel_booking_agent, tool: built-in code interpreter.
Task given to the agent:
A guest stays 3 nights at $189 per night, with a $25 per night pet fee, plus 12% tax. What is the final price?
The code interpreter call shown in the trace:
{
"code_interpreter_input": {
"action": {
"type": "executeCode",
"code": "# Calculate the final price fo...",
"language": "python"
}
}
}
Output: (567, 75, 642, 77.03999999999999, 719.04), so the final price is $719.04How do you know a model is good enough? In this lab, we compare the ways to evaluate, the metrics behind them, and run an evaluation job in Amazon Bedrock.
AI can repeat old unfairness at scale, or state false facts with confidence. In this lecture, we see what responsible AI means, the legal risks of generative AI, and how to choose models responsibly.
A model is only as fair as the data it learns from. In this lecture, we see how bias hides in data, how to fix it, and how to detect and monitor it on AWS.
People need to trust AI decisions, and challenge them when they're wrong. In this lecture, we see how to make AI transparent and explainable, and design explanations for the people affected.
Prompts can be attacked, and models can make things up. In this lab, we see the main threats, how to catch hallucinations, and build and test a guardrail in Amazon Bedrock.
Test inputs used in this lab:
Guardrail test panel, with "Use ApplyGuardrail API" ticked:
Which stocks should I buy with my holiday savings? (blocked: denied topic)
Can I book a room in Seattle for two nights? (passes)
Blocked message: Sorry, I can only help with hotel bookings and stays.
A response containing an email address is masked as: We sent the details to {EMAIL}Security on AWS is a partnership. In this lab, we see where the line falls for AI services, and how Identity and Access Management controls who can use your models and data.
IAM policy shown in this lab:
AmazonBedrockFullAccess: its first statement allows "Action": "bedrock:*" on every resource (too broad for production).
A least-privilege statement allows only the action and the model your application uses:
{
"Effect": "Allow",
"Action": "bedrock:InvokeModel",
"Resource": "arn:aws:bedrock:us-east-1::foundation-model/amazon.nova-micro-v1:0"
}Your data is the most valuable, and the most sensitive, part of an AI system. In this lab, we see how Bedrock handles it, and how to encrypt it, find it, keep it private, and protect the people in it.
An agent can act in real systems, so a mistake or an attack can do real damage. In this lab, we control what agents can access and do, and check what they say.
Examples shown in this lab:
Agent output to validate before use:
{"room": 412, "price": 99}
Never pass model output straight into a query or a command.
The lab shows a model output that closes the query and adds a command
to delete the bookings table (a SQL injection): it must never reach the database.You can't protect against what you can't see. In this lab, we review the threats to AI applications, and set up the logs and alarms that let you see them.
Auditors and security teams ask the same few questions again and again. In this lab, we visit the AWS services that answer them.
This course contains the use of artificial intelligence.
This course prepares you for the AWS Certified AI Practitioner (AIF-C01) exam. It covers all five exam domains in 38 short lectures, about two and a half hours in total, and teaches every AWS service in a hands-on lab in the real AWS console.
You do not need any background in AI or machine learning. Each idea is explained once, in plain language, with animations that show how things actually work: data flowing through a neural network, a model learning from its mistakes, a vector search finding the nearest neighbors.
What you will learn
AI and machine learning fundamentals: types of learning, neural networks, bias and variance, model evaluation, training and inference
AI in practice: when AI is the right tool, the ML pipeline and MLOps, and AWS AI services such as Rekognition, Textract, Comprehend, Translate, Polly, Transcribe and Lex
Generative AI: tokens, embeddings, transformers, foundation models, diffusion and multimodal models, use cases, limits and pricing
Building with Amazon Bedrock: choosing a model and its settings, prompt engineering, Prompt Management, RAG with Knowledge Bases, vector databases, fine-tuning and distillation, AI agents with AgentCore, and model evaluation
Responsible AI: fairness, bias in data, transparency and explainability, and Bedrock Guardrails
Security, compliance and governance: shared responsibility, IAM, data protection, securing agents, threats and audit trails, and AWS governance services
18 hands-on labs
Every service is taught with short theory followed by a real console demo, so you see exactly where each setting lives and what it does.
Exam preparation
The course ends with an exam strategy lecture and two practice exams of 15 questions each. Pause on each question, choose your answer, then watch the explanation of why it is right.