Unit : 3 Cloud Infrastructure
🎓 Lecture Topic 1: Cloud Management (Network & Monitoring)
This topic is about being the "admin" of the cloud. How do you know what's going on?
1. Definition
● Cloud Management: This refers to the collection of tools and processes a company uses to oversee
and control its cloud resources. This includes managing networks, monitoring performance, and
ensuring security and cost control.
● Monitoring the Stack: This is the practice of observing the entire set of technologies (the "stack") that
run your application, from the VM's CPU all the way up to your application's code.
2. Detailed Explanation
Your cloud deployment isn't just one "thing." It's a stack of layers:
1. Infrastructure: VMs, Storage, Network (IaaS)
2. Platform: OS, Runtime, Middleware (PaaS)
3. Application: Your code (SaaS)
Monitoring the Stack means watching all of them.
● You monitor the VM's CPU and RAM to see if it's overloaded.
● You monitor the network traffic to see if you're under attack or if there's a bottleneck.
● You monitor the application logs to see if your code is throwing errors.
Network Management in the cloud is about defining and controlling your virtual network. You use:
● VPCs (Virtual Private Clouds): To create your own private, isolated network.
● Firewalls (Security Groups): To control what traffic can enter or leave your VMs.
● Related Products: Amazon CloudWatch, Google Cloud Monitoring (formerly Stackdriver), and
Azure Monitor are the big three. They are "single-pane-of-glass" solutions, meaning they give you one
dashboard to see everything—metrics, logs, and alerts.
3. Why This Topic is Important
"You cannot manage what you cannot measure."
Without monitoring, you are flying blind. You won't know if your site is slow, if it has crashed, or if you are
being hacked. Good monitoring is the key to:
● High Availability: Find and fix problems before users notice.
● Performance: Identify bottlenecks (e.g., "the database is slow").
● Cost Management: Find unused VMs that are wasting money.
● Security: Detect unusual activity (e.g., a sudden traffic spike).
4. Step-by-Step Breakdown (The Monitoring Process)
1. Collect: Gather data. Metrics (numbers like CPU=80%) and Logs (text like "ERROR: User login failed").
2. Store: Put this data in a time-series database.
3. Visualize: Create Dashboards with graphs and charts to see trends.
4. Alert: Set rules. "If CPU > 90% for 5 minutes, send an email to the admin."
5. Automate (Advanced): "If CPU > 90%, automatically launch one more VM." (This is Auto-Scaling).
5. Real-Life Example
You run a website on an AWS VM (EC2 instance).
● You use Amazon CloudWatch (the monitoring product).
● You create a Dashboard that shows your VM's CPU usage, disk space, and network traffic.
● You set an Alarm: "If Disk_Space_Used > 85%, send me an SMS."
● One day, your logs fill up the disk. It hits 86%. You get an SMS, log in, clear the logs, and prevent the
website from crashing. That is cloud monitoring.
6. Key Terms
● CloudWatch (AWS), Cloud Monitoring (GCP), Azure Monitor: The big 3 vendor products.
● Metrics: A numerical measurement (e.g., RAM usage).
● Logs: A text-based record of an event (e.g., "server started").
● Dashboard: A visual display of all your metrics.
● Alerting: Automated notification when something is wrong.
● VPC (Virtual Private Cloud): Your private network in the cloud.
7. Exam-Ready Long Answer
Q: What is meant by monitoring an entire cloud computing deployment stack? Mention some related
products.
A:
Monitoring a cloud computing stack means observing the health and performance of all the technological
layers that make up a cloud application. This "stack" includes:
1. Infrastructure Layer: Monitoring the virtual resources, such as the CPU, memory, disk I/O, and
network traffic of the Virtual Machines (VMs).
2. Platform Layer: Monitoring the underlying operating system (e.g., for security patches) and
middleware (e.g., database connection pools).
3. Application Layer: Monitoring the application code itself, such as tracking the number of user logins,
error rates (e.g., HTTP 500 errors), and transaction times.
This is achieved by collecting two types of data: Metrics (time-based numerical data, like CPU utilization)
and Logs (event-based text records). This data is then aggregated into a central system to be Visualized
on dashboards and used to trigger Alerts when a problem is detected.
The goal is to have a "single pane of glass" for full-stack visibility. Major cloud vendors provide native
products for this:
● Amazon Web Services (AWS): Amazon CloudWatch (for metrics, logs, and alerts) and VPC Flow
Logs (for network traffic).
● Google Cloud (GCP): Google Cloud Monitoring (part of the Stackdriver suite) for metrics, logs, and
dashboards.
● Microsoft Azure: Azure Monitor (a comprehensive solution for collecting, analyzing, and acting on
telemetry data).
8. Short Note Version
Cloud Monitoring Stack: This means watching all layers of an application, not just the server. This includes
the VM's hardware (CPU, RAM), the OS, and the application's code (error rates). It's done by collecting
Metrics (numbers) and Logs (text). This data is used to build Dashboards (graphs) and send Alerts when
something breaks. The main products are Amazon CloudWatch, Google Cloud Monitoring, and Azure
Monitor.
9. Extra Points to Score Full Marks
● Mention that monitoring is the key enabler for auto-scaling. The monitoring system (CloudWatch)
detects high CPU, which then triggers the auto-scaler to add more VMs.
● Mention 3rd-party (non-vendor) tools like Datadog, Splunk, and Nagios, which are very popular for
multi-cloud monitoring.
10. Common Doubts + Clarifications
● Doubt: "Doesn't the cloud provider monitor this for me?"
● Clarification: They monitor their infrastructure (the physical servers). You are responsible for
monitoring your VMs and your applications running in the cloud. This is part of the Shared
Responsibility Model.
11. Previous Year Question Patterns
● "Write a short note on Amazon CloudWatch." (5 marks)
● "What do you mean by monitoring a cloud stack? Why is it important?" (10 marks)
🎓 Lecture Topic 2: Lifecycle Management of Cloud Services
This is a small but important theory topic.
1. Definition
Cloud Service Lifecycle Management is a formal, structured process for managing the entire existence of
a cloud service—from the initial idea to its final retirement.
2. Detailed Explanation
You can't just let people create cloud services (like new databases or apps) randomly. This leads to chaos,
security holes, and high costs. A lifecycle provides a business process to manage this. The syllabus alludes
to six stages.
3. Why This Topic is Important
This process brings order, security, and financial control to the cloud.
● Security: Ensures every new service is reviewed and secured.
● Cost: Ensures services are needed, optimized, and shut down when they are not. (Prevents "zombie"
servers that run for years, wasting money).
● Compliance: Ensures all services meet legal or company rules.
4. Step-by-Step Breakdown (The Six Stages)
1. Service Request & Design: A user (e.g., a developer) requests a new service. It is designed and its
cost/security is approved. (e.g., "I need a new database").
2. Service Development & Testing: The service (e.g., a new "standard VM image" or a new app) is built
and tested for security and function.
3. Service Deployment (Provisioning): The service is officially rolled out and made available to users,
often in a Service Catalog.
4. Service Operation & Monitoring: The service is now "live." It is monitored for health and
performance. (This links to Topic 1).
5. Service Optimization: The service is analyzed. Can it be made cheaper? Faster? (e.g., "Let's move this
to a cheaper VM type").
6. Service Retirement (Decommissioning): The most important step. When the service is no-longer
needed, it is formally and safely shut down, and its data is archived or deleted.
5. Real-Life Example
A development team wants to build a new app.
1. Request: They file a ticket to get 3 VMs and a database.
2. Develop/Test: A manager approves the cost. The VMs are built.
3. Deploy: The app is launched.
4. Operate: The app runs for 2 years, monitored by CloudWatch.
5. Optimize: In Year 2, the team moves the database to a cheaper model.
6. Retire: The project is canceled. The VMs are decommissioned (shut down and deleted) so the company
stops paying for them.
6. Key Terms
● Provisioning: The act of creating and deploying a service.
● Decommissioning: The act of retiring and deleting a service.
● Service Catalog: A "menu" where users can see and request pre-approved cloud services.
● Orchestration: Automating the complex steps of deploying a service.
7. Exam-Ready Long Answer
Q: Explain the six stages of the lifecycle management of cloud services.
A:
The lifecycle management of cloud services is a formal process used by organizations to govern a cloud
service from its creation to its deletion. This ensures control over cost, security, and compliance. The six key
stages are:
1. Service Request & Design: This is the "planning" stage. A user or department identifies a need. The
service is defined, its architecture is designed, and it's reviewed for cost, security, and business value.
2. Service Development & Testing: In this stage, the service is built or configured. This could be a new
software application or a standardized VM image. It is then rigorously tested for functionality, security
vulnerabilities, and performance.
3. Service Deployment (Provisioning): Once approved, the service is "provisioned" and made "live" in
the production environment. It is often published to a central Service Catalog where users can
request it.
4. Service Operation & Monitoring: This is the longest stage, where the service is actively used. It is
continuously monitored for health, availability, and performance (using tools like CloudWatch). This
stage includes day-to-day management like backups and patching.
5. Service Optimization: During its life, the service is periodically reviewed. The team looks for ways to
optimize it, such as reducing its cost (e.g., by resizing VMs) or improving its performance.
6. Service Retirement (Decommissioning): When the service is no longer needed, it enters the final
stage. It is safely "decommissioned"—the data is archived or securely deleted, the resources (VMs,
databases) are shut down, and billing is stopped.
8. Short Note Version
Cloud Service Lifecycle: This is a 6-stage process to manage a cloud service.
1. Design: Plan the service.
2. Develop: Build and test it.
3. Deploy: Launch the service (provisioning).
4. Operate: Run and monitor it.
5. Optimize: Make it cheaper/faster.
6. Retire: Shut it down (decommissioning).
This process controls costs and improves security.
9. Extra Points to Score Full Marks
● Mention that this concept is borrowed from ITIL (Information Technology Infrastructure Library),
which is an industry standard for IT Service Management (ITSM).
● Link this to automation and orchestration tools (like Terraform or Ansible), which are used to
automate the "Deploy" stage.
10. Common Doubts + Clarifications
● Doubt: "Is this for AWS's services or my services?"
● Clarification: It's for both. AWS uses this process to manage S3. A company like TCS uses this process
to manage the applications it builds on top of AWS.
11. Previous Year Question Patterns
● "Describe the different stages of the cloud service lifecycle." (10 marks)
● "Write a short note on Cloud Service Lifecycle Management." (5 marks)
🎓 Lecture Topic 3: Concepts of Cloud Security (Concerns & Boundaries)
This is one of the most important topics in the entire syllabus.
1. Definition
● Cloud Security Concerns: The key risks and vulnerabilities that arise when using cloud, such as data
breaches, account hijacking, and insecure APIs.
● Security Boundary: A logical line that defines the limit of your security responsibility. It separates what
you must secure from what the cloud provider secures.
● Security Service Boundary: The specific point where the provider's security services (like a firewall)
end and your own security configuration begins.
2. Detailed Explanation
The biggest security "concern" in the cloud is loss of control. You are giving your data to someone else.
This leads to other concerns:
● Data Breaches: An attacker gets in and steals your data.
● Insecure APIs: Hackers attack the cloud portal (the API) itself.
● Account Hijacking: An attacker steals your admin password.
● Shared Tenancy: The risk that your "neighbor" (another customer on the same physical server) is a
hacker.
To manage this, we use the Shared Responsibility Model. This model defines the Security Boundary.
● The Cloud Provider (e.d., AWS) is responsible for the security OF the cloud.
○ Physical data center security (guards, gates, fences).
○ Physical servers and network hardware.
○ The virtualization software (hypervisor).
● The Customer (e.d., You) is responsible for security IN the cloud.
○ Your Data: You must encrypt it.
○ Your Applications: You must write secure code.
○ Your OS: You must apply security patches.
○ Your Network: You must configure the firewall rules.
○ Your Users: You must manage passwords and keys.
Security Mapping: This is the process of mapping your company's security rules (e.g., "All data must be
encrypted") to the specific cloud services that implement that rule (e.g., "Enable the 'S3 Encryption'
checkbox" and "Use AWS KMS").
3. Text-Based Diagram (Shared Responsibility - IaaS)
+-----------------------------+
| Your Data | <-- YOU SECURE THIS
| Your Application (Code) | <-- YOU SECURE THIS
| Your Operating System | <-- YOU SECURE THIS
| Your Network (Firewall rules)| <-- YOU SECURE THIS
+=============================+ <-- SECURITY BOUNDARY
| Hypervisor (Virtualization) | <-- VENDOR SECURES THIS
| Physical Servers & Storage | <-- VENDOR SECURES THIS
| Physical Data Center | <-- VENDOR SECURES THIS
+-----------------------------+
4. Why This Topic is Important
This is the number one cause of all cloud data breaches. Misunderstanding the boundary. People assume
the cloud is "secure by default." It is not. It is securable. You must do your part. If you leave your database
open to the internet with no password, that is your fault, not the provider's.
5. Real-Life Example
You rent an apartment in a high-security building.
● Provider (Landlord) Responsibility: The building's main gate, the security guard in the lobby, the
elevator. (Security OF the cloud).
● Your (Customer) Responsibility: The lock on your apartment door, who you give a key to, and closing
your windows when you leave. (Security IN the cloud).
● The Security Boundary is your apartment's front door. If a thief gets in because the building's main
gate was broken, it's the landlord's fault. If they get in because you left your door unlocked, it's your
fault.
6. Key Terms
● Shared Responsibility Model: The #1 key term.
● Security OF the Cloud: Provider's job (e.g., data center).
● Security IN the Cloud: Your job (e.g., your data, your firewall rules).
● Data Breach: Unauthorized access to data.
● Misconfiguration: The cause of most breaches (e.g., leaving a database open).
7. Exam-Ready Long Answer
Q: What are the primary security concerns in cloud computing? Explain the concept of a "security
boundary" using the Shared Responsibility Model.
A:
The primary security concerns in cloud computing stem from the loss of direct control over the
infrastructure. Key concerns include:
1. Data Breaches: Unauthorized access, theft, or leakage of sensitive customer or corporate data.
2. Account Hijacking: An attacker gaining control of a user's cloud account (especially an admin
account) through stolen credentials.
3. Insecure APIs: Weaknesses in the Application Programming Interfaces (APIs) used to manage cloud
services, which attackers can exploit.
4. Shared Tenancy Vulnerabilities: The risk of a "noisy neighbor" or a malicious attacker on the same
physical hardware affecting your VM.
5. Misconfiguration: This is the most common cause of breaches. It involves the customer failing to
properly configure security settings (e.g., leaving a storage bucket public).
To address this, cloud security is built on the Shared Responsibility Model, which defines the security
boundary. This model dictates the responsibilities of the cloud provider versus the customer:
● The Provider (e.g., AWS, Azure) is responsible for the security OF the cloud. This includes the
physical security of the data centers, the physical hardware, and the virtualization layer (hypervisor).
This is their side of the boundary.
● The Customer (You) is responsible for security IN the cloud. This is your side of the boundary. It
includes securing your data (e.g., via encryption), your applications, your operating systems (patching),
your network configurations (firewall rules), and your user identities (passwords, MFA).
This boundary moves depending on the service:
● In IaaS, the customer has the most responsibility (including the OS).
● In PaaS, the provider manages the OS, so the boundary moves up.
● In SaaS, the provider manages almost everything.
8. Short Note Version
Cloud Security Concerns & Boundary: The main concerns are data breaches, account hijacking, and
misconfiguration. The security model is called the Shared Responsibility Model, which defines the
security boundary.
● Provider's Job (Security OF the Cloud): Securing the physical data center and hardware.
● Customer's Job (Security IN the Cloud): Securing your data (encryption), your VMs (patching), and your
network (firewalls).
Most breaches happen when the customer fails to secure their part.
9. Extra Points to Score Full Marks
● MUST MENTION: The boundary is different for IaaS, PaaS, and SaaS.
○ IaaS: You manage OS, data, app.
○ PaaS: You manage app, data.
○ SaaS: You manage data (and users).
● This is a critical concept to draw as a diagram in your exam.
10. Common Doubts + Clarifications
● Doubt: "Is the cloud less secure than my own data center?"
● Clarification: No. It's just differently secure. A provider like Google has world-class security experts
you could never afford. But they can't protect you from your own mistakes, like using a weak password
or leaving a storage bucket public.
11. Previous Year Question Patterns
● "Explain the Shared Responsibility Model in cloud security." (10 marks)
● "What are the major security concerns in a public cloud?" (10 marks)
● "Write a short note on: a) Security Boundary b) Security Mapping" (2 x 5 marks)
🎓 Lecture Topic 4: Security of Data
This topic drills down into the most important part: protecting the data itself.
1. Definition
● Security of Data: The specific technologies and processes used to protect data's Confidentiality,
Integrity, and Availability (CIA Triad) in the cloud.
● Brokered Cloud Storage Access: A security model where access to storage is not direct, but goes
through a "broker" (a middle-man) that enforces security policies.
● Encryption: The process of "scrambling" data with a key so it's unreadable to anyone without the key.
● Auditing: Creating a log of "who did what, to what data, and when?"
2. Detailed Explanation
1. Storage Location and Tenancy:
○ Location (Data Sovereignty): Where is your data physically? Some laws (like in Europe or India)
require citizen data to stay in the country. Cloud providers let you choose a "Region" (e.g., ap-
south-1 in Mumbai) to control this.
○ Tenancy: Who are you sharing hardware with?
■ Multi-tenant: The default. Your data is on the same physical disk as 100 other customers (it's
logically separated). Cheaper.
■ Single-tenant (Dedicated Host): You pay extra to have your own dedicated physical server.
Used by banks for high security or compliance.
2. Encryption: This is your most powerful tool.
○ Encryption in Transit: Protects data as it moves from you to the cloud. This is SSL/TLS (the https
in your browser).
○ Encryption at Rest: Protects data when it's saved on the disk. This prevents an attacker from
stealing the physical hard drive. Cloud providers offer:
■ Provider-Managed Keys: (Default) Easy. AWS manages the keys.
■ Customer-Managed Keys (KMS): You control the keys (who can use them, when to delete
them) using a service like AWS Key Management Service (KMS). This gives you more control.
3. Auditing and Compliance:
○ Auditing: Creating a tamper-proof log of all actions. AWS CloudTrail is a service that does only
this. It answers: "Who deleted the database at 3 AM?"
○ Compliance: Proving to an auditor that you are following the rules (e.g., rules for credit card data -
PCI DSS; or for health data - HIPAA). Cloud providers give you "compliance reports" to help with
this.
4. Brokered Access (CASB):
This is an advanced "proxy." Instead of your user talking directly to Google Drive, they talk to a CASB
(Cloud Access Security Broker). The CASB checks the user's request against company policy (e.g.,
"Policy: No one can download a file named 'secret' to a personal laptop") and then either allows or
blocks the request.
3. Why This Topic is Important
Your data is your "crown jewels." These are the specific technical controls you use to protect it, even if an
attacker gets past your firewall. Good encryption means that even if a hacker steals your data, they can't
read it.
4. Real-Life Example
You store sensitive patient records for a hospital in AWS S3 (storage).
● Location: You choose the Mumbai Region to comply with Indian data sovereignty laws.
● Tenancy: You use the standard (multi-tenant) S3.
● Encryption (Transit): You upload files using https (SSL/TLS).
● Encryption (Rest): You check a box to enable S3 Server-Side Encryption (SSE-KMS), using a key
you control in AWS KMS.
● Auditing: You enable AWS CloudTrail and S3 Access Logs.
● Compliance: An auditor checks your CloudTrail logs and your KMS settings to prove you are HIPAA
compliant.
5. Key Terms
● Encryption in Transit (SSL/TLS)
● Encryption at Rest (SSE)
● KMS (Key Management Service): The service to manage your encryption keys.
● Auditing: Logging all actions. CloudTrail (AWS) is the key product.
● Compliance: Following rules (e.g., PCI DSS, HIPAA, GDPR).
● Data Sovereignty: Laws about data location.
● Multi-tenancy: Sharing hardware.
● CASB (Cloud Access Security Broker): The "broker" for access.
6. Exam-Ready Long Answer
Q: Discuss the key methods for ensuring security of data in the cloud, including encryption,
auditing, and tenancy.
A:
Ensuring the security of data in the cloud involves a multi-layered "defense-in-depth" strategy. The key
methods are:
1. Encryption: This is the most fundamental control. It is applied in two states:
○ Encryption in Transit: This protects data as it moves over the network (e.g., from a user to the
cloud). It is typically implemented using the SSL/TLS (HTTPS) protocol.
○ Encryption at Rest: This protects data while it is stored on the physical disk. Cloud providers offer
this as a standard feature. For more control, customers can use a Key Management Service
(KMS) to manage their own encryption keys, controlling who can access them and even rotating or
deleting them.
2. Storage Location & Tenancy:
○ Location: This relates to Data Sovereignty. Cloud providers allow customers to choose a specific
geographic "Region" (e.g., Mumbai, London) to store their data, ensuring compliance with local
laws.
○ Tenancy: This defines how hardware is shared. The default is multi-tenancy, where multiple
customers share the same physical server (with logical isolation). For extreme security, a customer
can opt for single-tenancy (dedicated hosts) to ensure no "noisy neighbors."
3. Auditing and Compliance:
○ Auditing: This is the process of creating a detailed, unchangeable log of all actions taken in the
cloud account. Services like AWS CloudTrail or Azure Activity Log record every API call (e.g.,
"who deleted a VM," "who accessed a file"). This is essential for incident investigation.
○ Compliance: Auditing logs are used to prove compliance with industry standards like PCI DSS (for
credit cards) or HIPAA (for health data).
7. Short Note Version
Security of Data: Protects data using multiple layers.
1. Encryption: In Transit (using SSL/HTTPS) and At Rest (on the disk). Use KMS to manage your own
keys.
2. Location (Data Sovereignty): Choosing where your data is stored (e.g., in India) to follow laws.
3. Tenancy: Multi-tenant (default, cheap, shared) vs. Single-tenant (dedicated, expensive, secure).
4. Auditing: Logging all actions. AWS CloudTrail is the key service. This is used to prove Compliance
(e.g., PCI, HIPAA).
8. Extra Points to Score Full Marks
● Mention the three states of data: Data in Transit (protect with SSL), Data at Rest (protect with KMS
encryption), and Data in Use (the hardest to protect, e.g., in the VM's RAM).
● Mention CASB (Cloud Access Security Broker) as an example of a "brokered cloud storage access"
system.
9. Common Doubts + Clarifications
● Doubt: "If I enable encryption, is my data 100% safe?"
● Clarification: No. It's safe from someone stealing the physical hard drive. It is not safe from someone
who steals your password. They can log in as you, and the system will happily decrypt the data for
them. This is why Identity Management is so important.
10. Previous Year Question Patterns
● "Write short notes on: a) Encryption in Transit vs. Encryption at Rest b) Data Sovereignty" (2 x 5 marks)
● "What is auditing in the cloud? Explain with reference to a cloud product." (10 marks)
🎓 Lecture Topic 5: Identity Management
This is the final piece of the security puzzle. It controls who can do what.
1. Definition
● Identity Management (IdM): The security discipline that manages identity and access. It answers two
different, but related, questions:
1. Authentication (AuthN): Who are you? (Proving your identity, e.g., with a password and OTP).
2. Authorization (AuthZ): What are you allowed to do? (Your permissions, e.g., "read" but not
"delete").
● Identity Protocol Standards: The common "languages" (e.g., SAML, OAuth) that different systems
use to talk to each other about identity.
2. Detailed Explanation
In the cloud, "identity is the new perimeter." We can't build a physical wall around our data, so the "wall"
becomes proving your identity.
The main cloud service for this is AWS IAM (Identity and Access Management) or Google Cloud IAM.
This service lets you create:
● Users: A person (e.g., student-ramesh).
● Groups: A collection of users (e.g., btech-cse-students). You apply permissions to the group, not the
individual users.
● Roles: An identity for a service (e.g., a VM). This is a secure way for a VM to access a database without
storing a password in its code.
Identity Protocol Standards (Must Know):
1. SAML (Security Assertion Markup Language):
○ What it does: Federation / Single Sign-On (SSO).
○ Example: You log in to your MAKAUT university portal (the "Identity Provider" or IdP). You then
click a button to access Google Workspace (the "Service Provider" or SP) and you are
automatically logged in. SAML is the "token" that is passed from the portal to Google, proving who
you are.
2. OAuth 2.0 (Open Authorization):
○ What it does: Authorization / Delegation. It's about giving permission, not logging in.
○ Example: A website (e.g., "[Link]") asks you to "Sign in with Google." You say yes. Google
asks, "Do you want to let Canva see your name and email address?" You click "Allow." Canva never
sees your Google password. It just gets a temporary "token" from Google that delegates
permission to see your email.
3. OIDC (OpenID Connect):
○ What it does: Authentication. It's a modern standard that sits on top of OAuth 2.0 to make it do
authentication (SSO). It's simpler than SAML and used heavily by mobile and consumer apps.
3. Why This Topic is Important
This is the front door to your entire cloud account. If your identity management is weak (e.g., simple
passwords, no MFA), an attacker can walk right in, steal your data, and delete all your servers. A strong IAM
policy is the single most important security control you have.
4. Real-Life Example
● IAM: Your professor creates two groups in AWS IAM:
○ Students group: Given permission ec2:StartVM and ec2:StopVM.
○ Teachers group: Given permission ec2:* (full admin access).
○ You are in the Students group, so you can start and stop your lab VM, but you are denied from
deleting it.
● SAML (SSO): You log in to your work laptop once, and you can access Gmail, Salesforce, and AWS
without typing your password again.
● OAuth: Your mobile game asks to "Post to Facebook" for you. You use OAuth to grant it only the
permission to "post," not to read your private messages.
5. Key Terms
● IAM (Identity and Access Management): The main cloud service (e.g., AWS IAM).
● Authentication (AuthN): Proving who you are (e.g., password).
● Authorization (AuthZ): What you are allowed to do (e.g., read/write).
● MFA (Multi-Factor Authentication): "Something you know" (password) + "something you have"
(OTP). THIS IS CRITICAL.
● SSO (Single Sign-On): Log in once, access many.
● SAML: The protocol for B2B (business) SSO / Federation.
● OAuth 2.0: The protocol for delegating authorization (e.g., "Log in with Google").
6. Exam-Ready Long Answer
Q: What is Identity Management in the cloud? Explain the difference between SAML and OAuth 2.0.
A:
Identity Management (IdM), often called Identity and Access Management (IAM), is the security framework
that controls who can access what resources in the cloud. It is based on two core concepts:
1. Authentication (AuthN): The process of verifying an identity. (Answering: "Who are you?" e.g., with a
password and an MFA (Multi-Factor Authentication) code).
2. Authorization (AuthZ): The process of granting permissions to a verified identity. (Answering: "What are
you allowed to do?" e.g., "Read-only" access to a database).
Cloud services like AWS IAM provide the tools to create users, groups, and roles to enforce these
policies.
Identity Protocol Standards:
SAML and OAuth 2.0 are standard protocols that allow different systems to communicate about identity,
but they serve different purposes:
● SAML (Security Assertion Markup Language):
○ Purpose: Primarily used for Authentication and Federation, enabling Single Sign-On (SSO).
○ Use Case: Enterprise/Corporate. An employee logs in once to their company's "Identity Provider"
(e.g., a university portal). They can then access 20 other "Service Providers" (like Google
Workspace, AWS, Salesforce) without logging in again. SAML passes an "assertion" (a token) that
says "This user is authenticated."
○ Analogy: A company ID card that gets you into multiple buildings.
● OAuth 2.0 (Open Authorization):
○ Purpose: Primarily used for Authorization and Delegation. It is not about logging in, but about
giving one application permission to access your data in another application.
○ Use Case: Consumer/Web/Mobile. A website asks you to "Sign in with Google." OAuth 2.0 is the
protocol used for Google to ask you, "Are you sure you want to let this website see your email
address?" You grant this limited permission (a token), but the website never gets your Google
password.
○ Analogy: A valet key for your car. It lets the valet park the car, but not open the trunk.
7. Short Note Version
Identity Management (IAM): Manages who has access to what.
● Authentication: Who you are (password + MFA).
● Authorization: What you can do (permissions).
Identity Protocols:
● SAML: For Authentication (SSO). Enterprise use. (e.g., Log in to college portal, access all other apps).
● OAuth 2.0: For Authorization (Delegation). Web/mobile use. (e.g., "Let this app post to your
Facebook?" It never gets your password).
8. Extra Points to Score Full Marks
● ALWAYS, ALWAYS, ALWAYS mention MFA (Multi-Factor Authentication) when discussing identity.
It is the single most effective control to prevent account hijacking.
● Mention OIDC (OpenID Connect). It's a modern layer on top of OAuth 2.0 that adds the
authentication (SSO) part that OAuth 2.0 lacks. It is the main competitor to SAML.
9. Common Doubts + Clarifications
● Doubt: "SAML vs. OAuth is confusing. They both seem to log me in."
● Clarification: You're right, it's confusing. Remember it this way:
○ SAML's goal is to log you in (Authentication).
○ OAuth's goal is to give permission (Authorization).
○ (The "Sign in with Google" flow feels like a login, but it's really an OAuth flow that also uses OIDC to
get your identity, i.e., your email).
10. Previous Year Question Patterns
● "Differentiate between Authentication and Authorization." (5 marks)
● "Write short notes on: a) SAML b) OAuth 2.0" (2 x 5 marks)
● "What is IAM? Explain its importance in cloud security." (10 marks)