CC Unit 4
CC Unit 4
1. Introduction
Amazon Web Services (AWS) is a cloud computing platform developed by Amazon that provides on-
demand computing services over the internet. It offers more than 200 fully managed services in
areas such as computing, storage, networking, databases, analytics, artificial intelligence, and
security.
AWS follows a pay-as-you-go pricing model, allowing organizations to scale resources dynamically
without investing in physical infrastructure. It is used globally by enterprises like Netflix, Airbnb,
NASA, and Spotify for scalable, secure, and cost-efficient cloud solutions.
The AWS architecture is designed around scalability, high availability, security, and fault tolerance.
Its backbone is the Global Infrastructure, which consists of:
a) Regions
• Each Region is a separate geographical area (like Mumbai, Tokyo, North Virginia).
• You choose where to store your data based on latency, legal, or business needs.
Example:
• Each has its own power supply, network, and cooling system.
• AZs are connected by high-speed, low-latency fiber links → this allows quick data sync
between them.
• If one AZ goes down (power failure, flood, etc.), others keep running → fault tolerance.
Example:
In Mumbai region → ap-south-1a, ap-south-1b
If 1a fails, 1b still runs — so your application won’t crash.
These are mini AWS data centers located closer to users around the world.
Used mainly by Amazon CloudFront (CDN) — a content delivery network.
• So when a user in Chennai requests data stored in Mumbai region, it comes from the nearest
edge location — faster, lower latency.
AWS offers a wide range of cloud services classified into functional domains:
A. Compute Services
You can choose CPU, RAM, storage, network type based on need.
• AWS Lambda
B. Storage Services
o Object storage service for storing unstructured data like backups, images, and logs.
2. Amazon S3 Glacier
C. Database Services
AWS offers managed databases for relational, non-relational, and in-memory needs.
o Managed database service supporting MySQL, PostgreSQL, Oracle, and SQL Server.
2. Amazon DynamoDB
Helps create secure, scalable network environments and deliver content globally.
2. Amazon CloudFront
3. Security Groups
1. Amazon CloudWatch
2. AWS CloudFormation
G. Analytics Services
1. Amazon Athena
o Allows users to query data directly in S3 using SQL — serverless and pay-per-query.
2. Amazon Redshift
• Scalability: Auto Scaling and Elastic Load Balancing handle variable workloads.
Think of geographies as the big continents (like Asia, Europe, US), and regions as countries or cities
within those continents where Azure builds data centers.
• Purpose:
o Fault tolerance → if one region fails, another region in a different geography can take
over.
Example: You host your app in East US region (part of US geography) so users in the US get low-
latency access.
Availability Zones
Inside a region, Azure may have multiple Availability Zones (AZs). Think of them as separate
buildings in the same city:
Example: Your VM runs in Zone 1, but Zone 2 can immediately serve requests if Zone 1 fails.
Resource Groups
A resource group is like a folder on your computer. You put all things related to one app/project
together:
• Virtual Machines
• Databases
• Storage accounts
• Networks
Example: You have an e-commerce app. All VMs, databases, and storage for this app are in one
resource group called EcommerceAppRG.
Resources
These are the actual things you use to run apps.
• 1 SQL database
Got you bro. Let’s expand each concept with more details and examples so you can really
understand Azure’s services and how they work.
o Provides a full virtual server. You choose OS, CPU, RAM, storage.
o Example: You need a Windows server to run a legacy application. You launch a VM,
install your software, and manage it.
o Use-case: When you want maximum control, like migrating an on-prem app to the
cloud.
o Example: Hosting a web application for an online store. You just push your code;
Azure runs it.
• Functions (Serverless):
• Blob Storage:
• Disk Storage:
• Azure Files:
o Fully managed shared file system. Multiple VMs can access it via SMB protocol.
o Example: Shared folder for multiple web servers storing config files or documents.
o Example: Web servers in one subnet, databases in another, all inside the same VNet
for security.
• Load Balancer:
• Security Center:
• Azure Monitor:
• Azure Policy:
o Example: Enforce all VMs to use encrypted disks, or tag all resources by department.
• IaaS: Rent raw computing resources. Full control, manage OS, apps, networking.
• PaaS: Rent platform to build apps. Focus only on your code; Azure handles everything else.
Got it. Let’s go deeper conceptually while keeping it structured, so you understand why each
component exists, what it does, and how it supports the cloud environment. I’ll also link it to AWS
concepts for clarity.
• Role: The brain of the cloud. It is the entry point for users and administrators.
• Functions:
o Authentication & Accounting: Manages user login, permissions, and tracks resource
usage.
o Resource Scheduling & Quotas: Decides which cluster or node will handle a VM
request and enforces user quotas.
o Offers AWS-compatible interfaces like EC2, Auto Scaling, CloudWatch, ELB, IAM, STS.
o This allows existing AWS tools, scripts, and images to work on a Eucalyptus cloud.
Conceptually: CLC is like AWS Management Layer, orchestrating all requests and managing
resources globally across the cloud.
2. Walrus
• Use Cases:
• Concept: Walrus is essential for persistent storage that is not tied to a single VM, enabling
data sharing and backup.
• Responsibilities:
o Virtual networking: Manages private IPs, subnets, and network traffic within the
cluster.
o Reporting to CLC: Sends cluster status, resource availability, and health information.
• Concept: Allows VMs to retain data even after they are terminated, which is crucial for
databases and applications requiring persistent storage.
• Responsibilities:
• Concept: NC is like the physical hypervisor host in AWS, handling the actual VM lifecycle.
• Functionality:
7. Management Console
• Functions:
o Launch/terminate VM instances
o Provision storage
• Concept: Simplifies cloud management without using CLI, providing a visual overview of the
cloud.
3. Self-Service Provisioning:
o Users can deploy and manage VMs, storage, and network without admin
intervention.
5. Flexible Storage:
o Supports Elastic IPs, Security Groups, virtual networks, and load balancers.
7. Hypervisor Flexibility:
OpenStack is an open-source cloud computing platform used for building and managing public and
private clouds.
It provides a collection of interrelated components that control compute, storage, and networking
resources, all managed through a web dashboard, CLI, or APIs.
It supports Infrastructure as a Service (IaaS) — allowing users to provision and manage virtual
machines, volumes, and networks on demand.
1. Nova (Compute)
3. Supports RESTful API access, enabling cloud applications to read/write data easily.
4. Neutron (Networking)
6. Keystone (Identity)
7. Horizon (Dashboard)
Workflow Example
3. Nova retrieves the image from Glance and allocates networking via Neutron.
Advantages of OpenStack
Q4. Platform recommendation for a scalable web application with global reach and integrated
machine learning services
Introduction
When a company needs to deploy a scalable web application that can reach a global audience while
integrating machine learning (ML) capabilities, the choice of cloud platform becomes critical.
The major cloud providers — Amazon Web Services (AWS), Google Cloud Platform (GCP), and
Microsoft Azure — all offer comprehensive solutions.
However, Google Cloud Platform (GCP) stands out as the most suitable option for this scenario,
primarily due to its advanced machine learning ecosystem, scalability, and global network
coverage, with AWS as a strong alternative.
• GCP leads in ML innovation with services like Vertex AI, BigQuery ML, and TPUs (Tensor
Processing Units).
• BigQuery ML allows data analysts to create and run ML models using simple SQL queries
directly in the data warehouse — reducing complexity and speeding up insights.
2. Scalability
• Google App Engine and Google Kubernetes Engine (GKE) provide auto-scaling features that
dynamically adjust resources based on demand.
• This ensures high availability during traffic spikes and cost savings during low usage periods.
3. Global Reach
• GCP offers over 40 regions and 100+ edge locations worldwide, ensuring low-latency access
for users in different geographic locations.
• This infrastructure supports global load balancing and seamless failover mechanisms for
reliability.
4. Cost-effectiveness
• GCP has a transparent and pay-as-you-go pricing model, with sustained-use discounts that
automatically reduce costs for continuous usage.
• This makes it ideal for startups and mid-sized companies needing scalability without high
operational expenses.
• App Engine: Simplifies deployment through a fully managed PaaS model where Google
handles infrastructure, scaling, and updates.
• BigQuery ML: Enables ML model creation directly in the data warehouse, ideal for analytics-
driven applications.
• Cloud CDN: Distributes content globally through edge caching, improving website load time
and user experience.
• Cloud Storage & Cloud SQL: Provide flexible storage and managed database options for
persistent data management.
1. Breadth of Services
• AWS offers the widest range of cloud services in the industry, covering everything from
compute, networking, storage, ML, and IoT to DevOps and analytics.
• AWS provides Auto Scaling Groups, Elastic Load Balancing, and Elastic Beanstalk for
maintaining high performance and uptime under variable traffic loads.
• Pre-trained services like Rekognition (image recognition), Comprehend (NLP), and Lex
(chatbots) allow rapid integration of AI features into web applications.
4. Global Reach
• AWS operates in over 30 regions and 100+ availability zones, offering excellent redundancy,
data replication, and low-latency access worldwide.
• Amazon RDS / DynamoDB: Managed databases for structured and unstructured data.
• AWS Lambda + API Gateway: Enables serverless architecture, improving scalability and
reducing operational overhead.
• Amazon S3 + CloudFront: Delivers static content via CDN, ensuring fast global content
delivery.
Although Azure is a competitive platform offering tools like Azure Machine Learning and Cognitive
Services, its ML ecosystem is less integrated than GCP’s, and its pricing can be complex.
Azure works best for companies already within the Microsoft ecosystem (e.g., using .NET, Office 365,
or Active Directory).
Introduction
Both Eucalyptus and OpenStack are open-source cloud computing platforms primarily used to build
Infrastructure-as-a-Service (IaaS) environments.
While both aim to provide virtualization, scalability, and automation for cloud resources, they differ
in their architecture design, scalability capabilities, and deployment flexibility.
Eucalyptus was designed to provide AWS-compatible private and hybrid clouds, whereas OpenStack
was developed for large-scale, flexible cloud environments that can power private, public, and
hybrid clouds.
Eucalyptus Architecture
• It includes five core components that manage various parts of the cloud:
1. Cloud Controller (CLC): The top-level controller that manages the overall cloud
resources and user authentication.
2. Walrus: The object storage service, equivalent to Amazon S3, used for storing virtual
machine images and user data.
4. Storage Controller (SC): Provides block-level storage services similar to Amazon EBS.
5. Node Controller (NC): Runs on each physical machine and manages virtual machine
(VM) instances.
OpenStack Architecture
7. Horizon (Dashboard): Offers a graphical web interface for users and administrators.
8. Additional Components: Heat (orchestration), Ceilometer (monitoring), and Trove
(database-as-a-service).
• The modular nature allows organizations to deploy only the services they need, ensuring
high flexibility and customization.
2. Scalability
Eucalyptus Scalability
• Eucalyptus offers elastic scalability similar to AWS, dynamically allocating resources based on
demand.
• Its scalability is ideal for medium-scale enterprise or research environments, but it may
struggle with the massive, multi-tenant workloads seen in telecom or global-scale services.
OpenStack Scalability
• It supports horizontal scaling, meaning that additional compute nodes, storage, and services
can be added seamlessly as demand grows.
• Built-in load balancing, redundancy, and high availability (HA) mechanisms make it reliable
under heavy workloads.
• Its design supports multi-region and multi-tenant environments, ideal for enterprise and
public cloud deployments.
3. Deployment Models
• It allows organizations to build on-premises private clouds that are compatible with AWS
APIs, enabling smooth integration with public AWS services.
• This is particularly useful for enterprises that want to extend their internal data centers to
AWS for hybrid cloud use cases.
o Hybrid Cloud: Enables integration with other public clouds or on-premise systems.
• Its open and modular architecture allows deep customization and integration with various
hypervisors (KVM, Xen, VMware).
Provides elasticity similar to AWS but Designed for massive scalability and
Scalability
limited fault tolerance high availability
Q6. Discuss the challenges and solutions in deploying applications on public cloud platforms like
AWS, Azure, and Google Cloud
Introduction
Public cloud platforms such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud
Platform (GCP) have transformed how organizations build, deploy, and scale applications.
They offer benefits like on-demand scalability, cost efficiency, and global availability.
However, deploying applications in these environments also brings several technical, operational,
and strategic challenges.
To maximize the potential of cloud computing, organizations must identify these issues and
implement effective solutions and best practices.
Challenges
• Moving sensitive data and workloads to the cloud raises concerns about data security,
privacy, and regulatory compliance (e.g., GDPR, HIPAA, PCI DSS).
• Misconfigured resources, insecure APIs, and weak access controls can expose data to
breaches or unauthorized access.
• Organizations often have limited visibility and control over how cloud providers manage the
underlying infrastructure.
Solutions
• Continuous Monitoring:
Use native tools like AWS CloudTrail, Azure Security Center, or Google Cloud Security
Command Center for continuous auditing and logging.
• Compliance Management:
Leverage provider certifications (e.g., ISO 27001, SOC 2) and perform regular security audits,
vulnerability scans, and penetration testing.
2. Cost Management
Challenges
• Cloud platforms use pay-as-you-go models, which can lead to unpredictable costs if
resources are over-provisioned or left idle.
Solutions
• Right-Sizing Resources:
Continuously monitor and match instance sizes to actual usage.
• Automation:
Implement auto-scaling to allocate resources dynamically and shut down unused services
automatically.
Challenges
• Cloud outages, regional failures, or application crashes can disrupt operations and cause
financial loss.
Solutions
• Load Balancing:
Use cloud-native load balancers (e.g., AWS ELB, Azure Load Balancer, Google Cloud Load
Balancer) to distribute traffic evenly.
• Automated Failover:
Set up automated recovery mechanisms to switch to backup systems seamlessly.
• Regular Testing:
Simulate outage scenarios periodically to validate the effectiveness of DR plans.
4. Skills Gap
Challenges
• Successful cloud deployment demands specialized skills in cloud architecture, DevOps,
security, and platform-specific tools.
• This skill gap can lead to misconfigurations, inefficiencies, and security risks.
Solutions
• Hire or Partner:
Collaborate with Managed Service Providers (MSPs) or hire experienced cloud engineers.
• Automation Tools:
Use Infrastructure as Code (IaC) tools like Terraform, CloudFormation, or Ansible to simplify
deployment and reduce manual errors.
• DevOps Culture:
Promote a DevOps and continuous learning culture to ensure ongoing adaptability.
5. Vendor Lock-in
Challenges
• Using a single provider’s proprietary tools or APIs can create dependency, making it difficult
or costly to migrate in the future.
• This lock-in limits flexibility, negotiation power, and interoperability when adopting a multi-
cloud or hybrid strategy.
Solutions
• Containerization:
Employ Docker and Kubernetes to make workloads portable across multiple cloud providers.
• Multi-Cloud Strategy:
Deploy services across different providers to avoid total dependence on one vendor.
• Abstraction Layers:
Use middleware tools that decouple applications from provider-specific APIs (e.g., HashiCorp
tools, Anthos, or Terraform).