๐ Topic Overview
# Topic 1 Cloud Computing & AWS Overview 2 On-Premise DC vs Cloud DC 3 Cloud Hardware & Server Components 4 Cloud Service Models (IaaS / PaaS / SaaS) 5 Cloud Deployment Models (Cloud / Hybrid / On-Prem) 6 Benefits of AWS 7 AWS Global Infrastructure 8 AWS Certification Roadmap 9 AWS Account Setup (Free Tier) 10 Enabling MFA on Root Account 11 Creating an IAM User๐ง What is Cloud Computing?
Simple Explanation
Imagine you need a powerful computer to run your application. Normally, you’d have to buy that computer, set it up in your office, manage it, and pay electricity bills. With cloud computing, you just rent that computer over the internet โ use it when you need it, pay only for what you use, and give it back when done.
AWS (Amazon Web Services) is the world’s largest cloud platform that provides this “rental” service for servers, storage, databases, networking, and hundreds of other services.
Key Characteristics of Cloud Computing
Term What it Means Real Example On-Demand Get resources instantly, no waiting Launch a server in 2 minutes Scalability Grow resources as your need grows Add more servers when traffic spikes Elasticity Auto scale up AND down Scale down at night to save cost Pay-as-you-go Pay only for what you use Like a mobile recharge, not a contract๐ข On-Premise DC vs Cloud DC
What is On-Premise?
Your company owns and manages its own physical data center โ servers, cooling, power, security, everything.
What is Cloud DC?
AWS owns massive data centers worldwide and you rent resources from them over the internet.
Comparison Table
Feature On-Premise (Your DC) Cloud (AWS) Setup Time Weeks to months Minutes Cost Model High upfront (CapEx) Pay-as-you-go (OpEx) Scaling Buy more hardware Click a button Maintenance Your team handles it AWS handles it Global Reach Limited 30+ Regions worldwide Disaster Recovery Expensive to set up Built-in multi-AZ๐ก DevOps Angle: In a DevOps role, you’ll often manage cloud infrastructure. Understanding this comparison helps you justify cloud migration decisions to management.
๐ฅ๏ธ Cloud Hardware & Server Components
What’s Inside AWS Data Centers?
AWS physically owns and manages:
- Physical Servers โ Powerful computers that run your workloads
- Storage Arrays โ Massive hard drives for your data (think S3, EBS)
- Networking Equipment โ Routers, switches, cables connecting everything
How Virtualization Works
AWS uses virtualization โ one physical server is divided into many virtual machines (VMs). This is how you get:
One Physical Server (AWS hardware)
โโโ EC2 Instance 1 โ Your App Server
โโโ EC2 Instance 2 โ Your Database Server
โโโ EC2 Instance 3 โ Someone else's workload
โโโ EC2 Instance 4 โ Another customer's app
Enter fullscreen mode Exit fullscreen mode
AWS Compute Options Built on This
Service What it is DevOps Use Case EC2 Virtual Machine (VM) Deploy apps, web servers ECS / EKS Containers Docker/Kubernetes workloads Lambda Serverless compute Event-driven automation๐ฆ Cloud Service Models
Think of it like renting an apartment vs buying a house vs staying in a hotel.
IaaS โ Infrastructure as a Service
You manage: OS, Runtime, App, Data
Provider manages: Physical hardware, networking, virtualization
AWS Example: EC2 (you get a VM, you install everything else)
Analogy: Renting an empty flat โ you furnish it yourself.
DevOps Use Case: Spin up EC2 instances, configure them with Ansible/Terraform.
PaaS โ Platform as a Service
You manage: App code and Data
Provider manages: Hardware + OS + Runtime + Middleware
AWS Example: AWS Elastic Beanstalk, AWS RDS
Analogy: Renting a furnished flat โ just bring your clothes.
DevOps Use Case: Deploy a Django app on Elastic Beanstalk without managing the server OS.
SaaS โ Software as a Service
You manage: Just using the app
Provider manages: Everything
AWS Example: Amazon WorkMail, Chime
Other Examples: Gmail, Zoom, Slack
Analogy: Staying in a 5-star hotel โ everything is taken care of.
DevOps Use Case: Use SaaS tools like PagerDuty, Datadog for monitoring โ no server management needed.
Service Model Summary
IaaS โ Most Control, Most Responsibility (you)
PaaS โ Balanced
SaaS โ Least Control, Least Responsibility (provider handles all)
Enter fullscreen mode Exit fullscreen mode
๐ Cloud Deployment Models
1. Public Cloud (Full Cloud)
Everything runs on AWS. No on-premise hardware.
Example: A startup builds its entire product on AWS from day one.
Best for: New applications, startups, web apps.
2. Hybrid Cloud
Mix of cloud + on-premise. Most common in large enterprises.
Example: A bank keeps customer data on-premise (due to regulations) but runs its web portal on AWS.
DevOps Use Case: AWS Direct Connect or VPN to link your office network with AWS VPC.
3. On-Premises / Private Cloud
Resources deployed in your own data center using virtualization (like VMware). Also called private cloud.
Example: Government agencies or hospitals that cannot put data outside their premises.
๐ก Interview Tip: Most enterprise companies use Hybrid cloud. When asked “what deployment model does your company use?” โ hybrid is the most common real-world answer.
โ Benefits of AWS
Benefit Explanation DevOps Relevance Cost Savings No upfront hardware cost, pay-as-you-go Reduce infrastructure spend Speed / Agility Launch resources in minutes Faster CI/CD pipelines Elastic Scaling Scale up/down automatically Handle traffic spikes Global Reach Deploy in any region worldwide Low latency for users Reliability Multiple Availability Zones High availability architecture Security AWS manages physical security, you manage access Shared responsibility model๐ AWS Global Infrastructure
The Three Levels of AWS Geography
AWS Global Infrastructure
โ
โโโ Region (e.g., ap-south-1 = Mumbai)
โ A geographic area with multiple data centers
โ Currently 30+ Regions worldwide
โ
โโโ Availability Zone / AZ (e.g., ap-south-1a, ap-south-1b)
โ One or more physical data centers within a Region
โ Each Region has minimum 2 AZs (usually 3)
โ AZs are isolated but connected with low-latency links
โ
โโโ Edge Location
CDN cache points for CloudFront (content delivery)
200+ edge locations worldwide
Why This Matters for DevOps
High Availability:** Deploy your app across 2+ AZs โ if one fails, the other keeps running
Disaster Recovery:** Use a second Region as backup
Low Latency:** Choose Region closest to your users (for India โ Mumbai `ap-south-1`)
Data Residency:** Some data must stay in a specific country โ choose that Region
> ๐ฎ๐ณ India: AWS Mumbai Region (`ap-south-1`) is the go-to for Indian companies due to data residency compliance and low latency.
---
๐ AWS Certification Roadmap
FOUNDATIONAL (Start Here)
โโโ AWS Certified Cloud Practitioner (CLF-C02)
โ
ASSOCIATE LEVEL (Pick your path)
โโโ Solutions Architect Associate (SAA-C03) โ Most Popular
โโโ Developer Associate (DVA-C02)
โโโ SysOps Administrator Associate (SOA-C02)
โ
PROFESSIONAL LEVEL
โโโ Solutions Architect Professional
โโโ DevOps Engineer Professional โ Your Target!
โ
SPECIALTY
โโโ Security
โโโ Networking
โโโ Data Analytics
โโโ Machine Learning
โโโ Database
Enter fullscreen mode Exit fullscreen mode
Recommended Path for DevOps/Cloud/SRE
Cloud Practitioner โ SAA โ DevOps Engineer Professional
๐ AWS Account Setup (Free Tier)
What is Free Tier?
AWS gives you **12 months free** access to many services when you sign up. Great for learning!
Free Tier Highlights:
1. EC2: 750 hours/month (`t2.micro` or `t3.micro`)
2. S3: 5 GB storage
3. Lambda: 1 million requests/month
4. RDS: 750 hours/month
Step-by-Step Account Creation
Step 1: Go to `https://aws.amazon.com` โ Click **"Create an AWS Account"**
Step 2: Enter your email address + choose a unique account name
Step 3: Create a strong password (this is your Root user password โ keep it safe!)
Step 4: Enter contact information (personal or business)
Step 5: Add a valid credit/debit card (AWS does a $1 verification charge โ it's reversed)
Step 6: Phone OTP verification
Step 7: Select Free tier support plan
> โ ๏ธ Warning: After creating the account, your very first action should be enabling MFA on the Root account.
Enter fullscreen mode Exit fullscreen mode
๐ What is MFA and Why It Matters
MFA = Multi-Factor Authentication
Normal login = Password only (1 factor)
MFA login = Password + OTP from your phone (2 factors)
Even if someone steals your password, they cannot log in without your phone.
Root Account โ The Most Dangerous Account
The Root user is the master account โ it has unrestricted access to everything in your AWS account. If this gets compromised, an attacker can:
- Delete all your resources
- Rack up massive bills
- Steal all your data
That’s why: Enable MFA on Root account IMMEDIATELY.
Steps to Enable MFA on Root Account
1. Sign in to AWS Console as Root user
2. Click your account name (top-right corner)
3. Go to โ Security Credentials
4. Scroll to "Multi-factor authentication (MFA)"
5. Click "Assign MFA device"
6. Enter a device name (e.g., MyPhone)
7. Select "Authenticator app" โ Click Next
8. Install Google Authenticator / Authy on your phone
9. Scan the QR code shown on screen
10. Enter TWO consecutive 6-digit OTP codes from the app
11. Click "Add MFA" โ Done!
Enter fullscreen mode Exit fullscreen mode
Recommended Apps: Google Authenticator | Authy | Microsoft Authenticator
๐ค IAM โ Identity and Access Management
What is IAM?
IAM is AWS’s access control system. It answers the question:
“Who can do what on which AWS resource?”
IAM Key Concepts
Term What it is Real World Analogy Root User Master account, full control CEO with all keys IAM User Individual person account Employee with access card IAM Group Collection of users Department (e.g., DevOps team) IAM Policy JSON document defining permissions Access control list IAM Role Temporary permissions for services Contractor badge (time-limited)Why NOT Use Root for Daily Work?
The Root account is like a nuclear launch button โ powerful but dangerous.
Best practice:
โ Create an IAM User with Admin access for daily work
โ Lock the Root account away
โ Never share Root credentials with anyone
Step-by-Step: Create IAM User
1. Go to Services โ Search "IAM" โ Open IAM Console
2. Left panel โ Click "Users" โ Click "Add users"
3. Enter username (e.g., tejas-admin)
4. Check "Provide user access to AWS Management Console"
5. Set a custom password (uncheck force reset if learning)
6. Attach Permission Policy:
- AdministratorAccess โ Full control (for learning)
- PowerUserAccess โ All services except IAM
- ReadOnlyAccess โ View only, no changes
7. Review โ Click "Create user"
8. IMPORTANT: Download the CSV file with credentials
9. Test login using the IAM sign-in URL:
https://[your-account-id].signin.aws.amazon.com/console
10. Also enable MFA on the IAM user
Enter fullscreen mode Exit fullscreen mode
IAM Permission Policies
Policy What it Allows Use When AdministratorAccess Everything Learning / Admin work PowerUserAccess All services except IAM Developer ReadOnlyAccess View only Auditor / MonitoringPrinciple of Least Privilege
Give users only the permissions they need โ nothing more.
A developer doesn’t need billing access. A tester doesn’t need to delete EC2 instances. Always assign minimum required permissions.
๐ IAM Sign-in Flow
Root User Login:
Email + Password + MFA OTP โ Full unrestricted access
IAM User Login:
Account ID (or alias) + Username + Password + MFA OTP โ Limited access (based on policy)
IAM Sign-in URL:
https://[12-digit-account-id].signin.aws.amazon.com/console
Enter fullscreen mode Exit fullscreen mode
๐จ COMMON MISTAKES (Avoid These!)
Mistake Why It’s Bad Correct Approach Using Root for daily tasks If compromised, everything is lost Create and use IAM user No MFA on Root Password alone is not enough Enable MFA immediately Giving AdministratorAccess to everyone Violates least privilege Assign only needed permissions Sharing access keys publicly (GitHub) Attackers scan GitHub for keys Use IAM Roles, not access keys Not downloading credentials CSV You can’t retrieve password later Download and store securely Ignoring billing alerts Surprise bills! Set up AWS Budgets + alerts๐ผ INTERVIEW QUESTIONS
Easy (Freshers)
Q1: What is cloud computing?
A: Cloud computing is the delivery of IT services (compute, storage, networking) over the internet on a pay-as-you-go basis, eliminating the need to own physical hardware.
Q2: What is the difference between IaaS, PaaS, and SaaS?
A: IaaS gives you raw infrastructure (like EC2), PaaS gives you a platform to deploy code (like Elastic Beanstalk), and SaaS gives you a ready-to-use software product (like Gmail). As you move from IaaS โ PaaS โ SaaS, you manage less but also control less.
Q3: What is an AWS Region and Availability Zone?
A: A Region is a geographic location (e.g., Mumbai) that contains multiple isolated data centers called Availability Zones (AZs). Each AZ is independent but connected with high-speed links to enable high availability.
Q4: What is IAM in AWS?
A: IAM (Identity and Access Management) is AWS’s service to control who can access AWS resources and what actions they can perform. It uses users, groups, roles, and policies.
Q5: Why should you not use the Root account for daily tasks?
A: The Root account has unrestricted access to everything. If compromised, an attacker gains complete control. IAM users with specific permissions should be used for daily operations following the principle of least privilege.
Intermediate
Q6: What is MFA and why is it important in AWS?
A: MFA (Multi-Factor Authentication) requires a second verification step (OTP from phone app) beyond just a password. It prevents unauthorized access even if credentials are stolen.
Q7: What is the difference between a Public, Hybrid, and Private cloud?
A: Public cloud (everything on AWS), Hybrid (mix of cloud + on-premise, most common in enterprises), Private cloud (resources in your own data center).
Q8: What is the Principle of Least Privilege?
A: Granting users only the minimum permissions needed to do their job โ nothing more. Reduces the blast radius if an account is compromised.
DevOps-Focused
Q9: How would you secure an AWS account from day one?
A: Enable MFA on Root immediately, create an IAM user for daily use, apply AdministratorAccess only where needed, set up AWS CloudTrail for audit logging, enable billing alerts, and never store access keys in code repositories.
Q10: A new DevOps engineer joins your team. How do you give them AWS access?
A: Create an IAM user for them, add them to the DevOps IAM Group that has pre-configured policies (like PowerUserAccess), enable MFA on their account, and share only the IAM console URL โ not the Root credentials.
๐ฌ Practice Questions
Easy
You want to use a server for 3 hours to run a data processing job and then shut it down. Which cloud characteristic makes this cost-effective?
What does “Availability Zone” mean in AWS context?
Name 3 services available in the AWS Free Tier.
Medium
Your company has sensitive financial data that cannot leave India due to compliance laws. Which AWS Region should you use, and what model (Public/Hybrid/Private) applies?
You gave your IAM user
AdministratorAccess. Your manager says this violates security policy. What should you do instead?Explain the difference between an IAM User and an IAM Role with a real-world example.
DevOps-Focused
You’re setting up AWS for a new startup from scratch. List the first 5 things you would do to secure the account.
Your Terraform script accidentally uploaded AWS Access Keys to a public GitHub repo. What is your immediate action plan?
๐ฏ Key Takeaways
- Cloud computing allows you to rent infrastructure on-demand instead of buying physical hardware.
- AWS provides scalability, elasticity, global reach, and pay-as-you-go pricing.
- Most enterprises operate using a Hybrid Cloud model.
- AWS infrastructure is built around Regions, Availability Zones, and Edge Locations.
- For a DevOps career path, Cloud Practitioner โ SAA โ DevOps Engineer Professional is a common progression.
- The Root account should only be used for account-level administration.
- MFA should be enabled immediately after account creation.
- IAM controls who can access AWS resources and what actions they can perform.
- Follow the Principle of Least Privilege when assigning permissions.
- Never expose AWS Access Keys publicly and always enable security controls from day one.
๐ฌ This article is part of my journey learning AWS, Cloud, and DevOps from scratch. If you’re also starting out, feel free to connect and share your learning experience.
๋ต๊ธ ๋จ๊ธฐ๊ธฐ