Module 1:¶
Introduction to AI¶
Before we discuss LLMs, Bedrock, or AIOps, let's understand the hierarchy.
Artificial Intelligence (AI)
│
└── Machine Learning (ML)
│
└── Deep Learning
│
└── Generative AI
│
└── Large Language Models (LLMs)
Think of it like:
Cloud
└── AWS
└── EC2
Not every AWS service is EC2.
Similarly:
- Not every AI system is an LLM.
- Not every ML model is Generative AI.
What is Artificial Intelligence?¶
AI is a system that attempts to perform tasks requiring human intelligence.
Examples:
- Face recognition
- Self-driving cars
- Voice assistants
- Chatbots
DevOps Example:
Imagine CloudWatch detects:
CPU = 95%
Memory = 85%
A traditional monitoring tool only alerts.
An AI system might say:
The recent deployment likely caused memory leaks. Consider rollback.
That reasoning capability is AI.
What is Machine Learning?¶
Machine Learning is a subset of AI.
Instead of explicitly coding rules:
if cpu > 80:
alert()
We train a model using historical data.
Example:
Past data:
CPU
Memory
Response Time
Status
The model learns patterns.
Now it can predict:
This server will likely fail within 30 minutes.
without explicit rules.
DevOps Analogy¶
Terraform:
instance_type = "t3.medium"
You define everything.
Machine Learning:
Historical Data
↓
Training
↓
Model learns patterns
You don't explicitly define every rule.
What is Deep Learning?¶
Deep Learning is a type of Machine Learning that uses neural networks.
Example:
Image
↓
Neural Network
↓
Cat
or
Log Message
↓
Neural Network
↓
Root Cause
Deep Learning powers modern AI systems.
What is Generative AI?¶
Traditional ML predicts.
Example:
Will server fail?
Answer:
Yes
Generative AI creates new content.
Example:
Explain why the pod is restarting.
Response:
The pod is restarting because
the application failed health checks...
It generates text.
What is an LLM?¶
LLM = Large Language Model.
Example
OpenAI GPT models Anthropic Claude Meta Llama Google Gemini
An LLM predicts the next token (word fragment).
Example:
Kubernetes is a container ______
The model predicts:
orchestration platform
At massive scale.
DevOps Mapping¶
| DevOps Concept | AI Concept |
|---|---|
| Docker Image | Model |
| Docker Registry | Model Repository |
| Terraform State | Training Data |
| Deployment | Model Inference |
| Monitoring | Model Evaluation |
| Pipeline | AI Workflow |
Why AIOps Exists¶
Current DevOps:
Alert
↓
Engineer
↓
Investigation
↓
Fix
AIOps:
Alert
↓
AI
↓
Analysis
↓
Recommendation
↓
Engineer
Future:
Alert
↓
AI
↓
Analysis
↓
Auto Fix
Knowledge Check¶
Answer these in your own words:
Q1¶
Difference between:
- AI
- ML
- Deep Learning
Q2¶
Why is ChatGPT considered Generative AI?
Q3¶
Give one DevOps use case where Machine Learning can help.
Q4¶
Give one DevOps use case where Generative AI can help.
Mini Assignment¶
Create a table:
| Technology | Category |
|---|---|
| ChatGPT | ? |
| Recommendation Engine | ? |
| Face Recognition | ? |
| Predicting Server Failure | ? |
| AI Incident Assistant | ? |
Fill the categories using:
- AI
- ML
- Deep Learning
- Generative AI
- LLM