KEMBAR78
Cloud Computing | PDF | Cloud Computing | Software As A Service
0% found this document useful (0 votes)
11 views19 pages

Cloud Computing

Uploaded by

bhushan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views19 pages

Cloud Computing

Uploaded by

bhushan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 19

What is cloud computing? What is its advantages? Which are popular cloud vendors?

Ans –
Cloud computing is the delivery of computing services—such as servers, storage, databases,
networking, software, analytics, and artificial intelligence—over the internet (“the cloud”)
instead of relying on local servers or personal computers. It enables organizations and
individuals to access and use resources on-demand, pay only for what they use, and scale easily
without maintaining physical infrastructure. Cloud computing models include IaaS
(Infrastructure as a Service), PaaS (Platform as a Service), and SaaS (Software as a Service). For
example, instead of hosting an application on a company’s own server, it can be deployed on
AWS or Azure, which automatically manages scalability and availability.
Advantages of cloud computing:
• Cost Efficiency: Eliminates the need for purchasing and maintaining physical hardware,
reducing capital expenditure (CapEx). For example, a startup can launch a website on
AWS EC2 without buying servers.
• Scalability and Flexibility: Resources can be scaled up or down based on demand. For
instance, during festive sales, an e-commerce website can automatically increase its
computing capacity.
• High Availability and Reliability: Cloud providers ensure redundancy and disaster
recovery. Even if one server fails, services remain available through failover systems.
• Performance: Access to high-speed, globally distributed data centers reduces latency.
For example, content delivery through AWS CloudFront improves user experience
worldwide.
• Security: Leading providers offer encryption, access control, and compliance
certifications, helping meet industry standards like ISO and GDPR.
• Automatic Updates: Cloud services receive regular updates for features and security
without manual intervention.
• Accessibility: Users can access resources from anywhere with an internet connection,
enabling remote work and global collaboration.
Popular cloud vendors:
• Amazon Web Services (AWS): The largest and most widely adopted cloud platform,
offering a vast range of services from computing to AI.
• Microsoft Azure: Popular among enterprises, especially those already using Microsoft
products, with strong hybrid cloud solutions.
• Google Cloud Platform (GCP): Known for data analytics, AI/ML services, and Kubernetes
expertise.
• IBM Cloud: Offers hybrid and AI-powered cloud solutions, strong in enterprise-grade
applications.
• Oracle Cloud Infrastructure (OCI): Known for database services and enterprise
workloads.
• Alibaba Cloud: Leading provider in the Asia-Pacific region, offering competitive pricing
and localized services.
If you want, I can also prepare the "types of cloud computing" answer in the same format,
since it’s a common follow-up question in interviews.

What is hypervisor in cloud computing? What is type-1 and type-2 hypervisor?


Ans –
A hypervisor, also called a Virtual Machine Monitor (VMM), is software or firmware that creates
and manages virtual machines (VMs) by separating the underlying physical hardware from the
operating systems running on it. In cloud computing, the hypervisor enables multiple virtual
environments to run on the same physical server, allowing efficient resource utilization,
isolation, and scalability. It allocates CPU, memory, storage, and network resources to each VM,
ensuring they operate independently. For example, AWS EC2 instances run on top of hypervisors
that manage thousands of VMs per data center.
Types of Hypervisors:
• Type-1 Hypervisor (Bare-Metal Hypervisor):
• Runs directly on the physical hardware without requiring a host operating
system.
• Offers better performance, lower latency, and higher efficiency because it
eliminates the overhead of a host OS.
• Commonly used in enterprise and cloud data centers for large-scale virtualization.
• Examples: VMware ESXi, Microsoft Hyper-V (in bare-metal mode), Xen, KVM.
• Example use case: In a cloud data center, a Type-1 hypervisor like VMware ESXi
directly runs on the server hardware to manage hundreds of customer VMs
securely and efficiently.
• Type-2 Hypervisor (Hosted Hypervisor):
• Runs on top of an existing operating system, which manages the hardware
interactions.
• Easier to set up but has more overhead and slightly lower performance due to
the extra OS layer.
• Often used for development, testing, and personal use on desktops or laptops.
• Examples: Oracle VirtualBox, VMware Workstation, Parallels Desktop.
• Example use case: A software developer runs Ubuntu in VirtualBox on a
Windows laptop for testing applications in a Linux environment without affecting
the host OS.
Key Difference Summary:

Feature Type-1 Hypervisor Type-2 Hypervisor

Layer Runs directly on hardware Runs on top of host OS

Performance High Slightly lower due to host OS overhead

Use Case Data centers, cloud infrastructure Development, testing

This distinction is crucial because major cloud providers like AWS, Azure, and GCP rely on Type-1
hypervisors for their efficiency and security in multi-tenant environments.

Describe the different cloud service models?


Ans –
Cloud computing offers three primary service models—IaaS (Infrastructure as a Service), PaaS
(Platform as a Service), and SaaS (Software as a Service)—each catering to different user needs
by providing varying levels of control, flexibility, and management responsibility.

1. Infrastructure as a Service (IaaS):


• Definition: Provides virtualized computing resources over the internet, such as servers,
storage, networking, and operating systems.
• User Control: Users manage the operating system, applications, middleware, and data,
while the cloud provider manages the underlying hardware and virtualization.
• Advantages: High flexibility, pay-as-you-go pricing, scalable resources.
• Examples: Amazon EC2, Microsoft Azure Virtual Machines, Google Compute Engine.
• Example use case: A startup launches a website using AWS EC2 instances, managing the
OS and applications but not worrying about buying physical servers.

2. Platform as a Service (PaaS):


• Definition: Offers a complete development and deployment environment in the cloud,
including infrastructure, middleware, development tools, database management, and
runtime environment.
• User Control: Users focus only on application development and data, while the provider
manages servers, storage, networking, OS, and runtime.
• Advantages: Speeds up development, reduces infrastructure management tasks,
supports multiple programming languages and frameworks.
• Examples: Google App Engine, Microsoft Azure App Service, AWS Elastic Beanstalk.
• Example use case: A developer deploys a Python web app on Google App Engine
without worrying about server configuration or scaling.

3. Software as a Service (SaaS):


• Definition: Delivers fully functional software applications over the internet on a
subscription or pay-per-use basis.
• User Control: Users only manage application settings and their data, while the provider
handles everything else—hardware, OS, software, maintenance, and security.
• Advantages: No installation required, accessible from anywhere, automatic updates.
• Examples: Google Workspace (Gmail, Docs, Sheets), Microsoft 365, Salesforce.
• Example use case: A sales team uses Salesforce CRM online to manage leads without
maintaining any local software or servers.

Comparison Table:

Feature IaaS PaaS SaaS


Apps, Data, OS,
Managed by User Apps, Data App Configurations only
Middleware

Managed by Hardware, Hardware, OS, Everything except user


Provider Virtualization Middleware data

System admins, IT
Target Users Developers End users
teams

Example AWS EC2 Google App Engine Gmail

A good way to remember the difference is:


• IaaS: “You manage most things” – good for flexibility.
• PaaS: “You code, we run it” – good for developers.
• SaaS: “You just use it” – good for end users.

Explain the difference between cloud and traditional datacenters?


Ans –
Cloud datacenters and traditional datacenters both provide computing infrastructure, but they
differ significantly in terms of deployment, cost structure, scalability, and management
approach.

1. Deployment & Ownership:


• Traditional Datacenter:
• Owned, managed, and maintained by the organization itself.
• Requires purchasing physical servers, networking devices, storage, and software
licenses.
• Example: A bank sets up its own on-premises datacenter to store customer data.
• Cloud Datacenter:
• Owned and operated by a cloud service provider (e.g., AWS, Azure, GCP) and
accessed via the internet.
• Users rent computing resources instead of owning hardware.
• Example: The same bank stores data in AWS’s secure cloud infrastructure.

2. Cost Structure:
• Traditional:
• High CapEx (Capital Expenditure) for buying hardware, setting up facilities,
cooling, and power systems.
• Ongoing OpEx (Operational Expenditure) for maintenance, upgrades, and
staffing.
• Cloud:
• Primarily OpEx with a pay-as-you-go or subscription model.
• No upfront investment in hardware; costs scale with usage.

3. Scalability & Flexibility:


• Traditional:
• Scaling requires purchasing and installing new hardware, which takes time and
may lead to over-provisioning.
• Limited by physical space and budget.
• Cloud:
• Instant scalability—resources can be increased or decreased within minutes.
• Ideal for variable workloads (e.g., e-commerce websites during sales seasons).

4. Maintenance & Upgrades:


• Traditional:
• The organization handles all maintenance, hardware replacement, and software
upgrades.
• Requires skilled IT staff on-site.
• Cloud:
• Maintenance, upgrades, and patching are handled by the provider.
• Users focus on their applications rather than infrastructure.

5. Reliability & Disaster Recovery:


• Traditional:
• Disaster recovery depends on backup policies and redundant infrastructure,
which can be costly.
• Cloud:
• Providers offer built-in redundancy, multi-region backup, and disaster recovery
solutions with minimal extra setup.

6. Accessibility:
• Traditional:
• Primarily accessed within the organization’s network (unless VPN or remote
access is configured).
• Cloud:
• Accessible from anywhere with an internet connection, supporting remote work
and global teams.

Comparison Table:

Feature Traditional Datacenter Cloud Datacenter

Ownership Organization-owned Provider-owned

Cost Model High CapEx, some OpEx Pay-as-you-go (OpEx)

Scalability Manual, time-consuming Instant, on-demand

Maintenance Organization’s responsibility Provider’s responsibility

Disaster Recovery Manual setup, costly Built-in, automated

Accessibility Limited, needs setup Global, internet-based


Example:
If a company launches a new mobile app:
• In a traditional datacenter, it must purchase additional servers and storage upfront,
even if demand is uncertain.
• In the cloud, it can start small, scale instantly if demand spikes, and reduce resources
when traffic drops—saving time and cost.

Explain what are the different modes of Software as a Service (SaaS)?


Ans –
SaaS means using software over the internet without installing it on your own computer. You
just log in and use it. There are different modes of SaaS based on how the software is set up for
customers.

1. Single-Tenant SaaS:
• Simple meaning: Each customer gets their own private copy of the software and
database.
• Example: Imagine every person in a hotel gets their own private swimming pool—no
sharing.
• Real-life example: A big bank has its own private CRM system that no other company
can access.
• Why use it? More privacy, more customization, but costs more.

2. Multi-Tenant SaaS:
• Simple meaning: One copy of the software is shared by many customers, but everyone’s
data stays separate.
• Example: Like an apartment building—many people live in the same building but in
different flats.
• Real-life example: Gmail—millions of users use the same Gmail software, but each
person’s inbox is private.
• Why use it? Cheaper, easier to update, but less customized.

3. Vertical SaaS:
• Simple meaning: Software built for a specific industry.
• Example: Like a restaurant having a menu made only for vegetarian food lovers.
• Real-life example: MindBody software made only for gyms and fitness centers.
• Why use it? Fits perfectly for industry-specific needs.

4. Horizontal SaaS:
• Simple meaning: Software made for everyone, across all industries.
• Example: Like a public park where anyone can come and use it.
• Real-life example: Microsoft 365 or Slack—used by schools, banks, startups, and more.
• Why use it? Works for many types of businesses.

Quick Comparison:

Mode Like… Example

Single-Tenant Private swimming pool Dedicated CRM

Multi-Tenant Apartment building Gmail

Vertical SaaS Restaurant for one cuisine MindBody

Horizontal SaaS Public park Microsoft 365

If you want, I can make similar simple-answer versions for all your previous cloud questions so
they’re more interview-friendly. That will make them easier to recall quickly.

How to create EC2 instance? How web application running on EC2 can be accessed from
internet?
Ans –
Part 1: How to create an EC2 instance (Example with AWS Management Console)
1. Log in to AWS Console → Go to EC2 Dashboard.
2. Click “Launch Instance” → Give your instance a name (e.g., MyWebServer).
3. Choose Amazon Machine Image (AMI) → Select OS, e.g., Amazon Linux 2 or Ubuntu
Server.
4. Choose Instance Type → For example, t2.micro (free tier eligible).

5. Configure Key Pair →


• Create a new key pair or use an existing one.
• Download the .pem file to connect later via SSH.

6. Configure Network Settings →


• Attach to a VPC and subnet.
• Allow inbound traffic by enabling HTTP (port 80) and HTTPS (port 443) for web
access, and SSH (port 22) for remote login.
7. Choose Storage → Define the EBS volume size (e.g., 8GB).
8. Launch Instance → Click Launch and wait until the status becomes “running”.

Part 2: How a web application on EC2 can be accessed from the internet
1. Install the web server and deploy application
• Example for Apache on Linux:
sudo yum update -y
sudo yum install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd

Place your HTML/PHP/JavaScript files in /var/www/html/.

2. Check Security Group Rules


• Make sure inbound rules allow:
• HTTP (Port 80) – for normal web traffic.
• HTTPS (Port 443) – for secure traffic (optional).
• Source: 0.0.0.0/0 to allow access from anywhere on the internet.
3. Ensure Network Accessibility
• Instance must be in a public subnet.
• Instance must have a public IPv4 address or be connected via an Elastic IP.
• Internet Gateway should be attached to the VPC and routing table should allow
internet access.
4. Access from Browser
• Copy the Public IPv4 address from EC2 dashboard.
• Paste in browser (e.g., http://3.123.45.67) to see your web app.

Example:
If your EC2 public IP is 13.45.78.90 and you have deployed an HTML website, anyone can
access it using:
http://13.45.78.90

If you want, I can also give you the same EC2 answer in a short, easy-to-recall format for
interview quick recall. That way you can explain it fluently without memorizing every step.

What are AWS services like: S3, RDS, EMR, Redshift, Glue, MSK, SageMaker?
Ans –

1. Amazon S3 (Simple Storage Service):


• What it is: Object storage service to store and retrieve any amount of data from
anywhere on the web.
• Key Features: High durability (99.999999999%), scalability, versioning, lifecycle policies,
encryption.
• Example use: Storing website images, backups, log files, or big data analytics input files.
• Interview tip: "Think of S3 like an infinite online hard drive."

2. Amazon RDS (Relational Database Service):


• What it is: Managed relational database service that supports databases like MySQL,
PostgreSQL, Oracle, SQL Server, and Amazon Aurora.
• Key Features: Automated backups, scaling, multi-AZ deployment for high availability.
• Example use: E-commerce application storing customer orders in an RDS MySQL
database.
• Interview tip: "It’s like having a fully managed SQL database without worrying about
hardware or backups."

3. Amazon EMR (Elastic MapReduce):


• What it is: Big data platform for processing huge datasets using open-source frameworks
like Apache Hadoop, Spark, Hive, and Presto.
• Key Features: Cost-effective data processing, integrated with S3 for storage.
• Example use: Analyzing terabytes of log data using Apache Spark in EMR.
• Interview tip: "EMR is AWS’s way to do big data analytics without setting up your own
Hadoop cluster."

4. Amazon Redshift:
• What it is: Fully managed data warehouse for online analytical processing (OLAP).
• Key Features: Fast query performance, columnar storage, SQL interface, integrates with
BI tools.
• Example use: Storing and analyzing sales data from multiple regions for trend reporting.
• Interview tip: "If RDS is for day-to-day transactions, Redshift is for heavy analytics."

5. AWS Glue:
• What it is: Serverless ETL (Extract, Transform, Load) service for data integration.
• Key Features: Automatic schema discovery, job scheduling, integration with S3, Redshift,
RDS.
• Example use: Cleaning and transforming raw data from S3 before loading it into
Redshift.
• Interview tip: "Glue is like an automatic data preparation tool for analytics."

6. Amazon MSK (Managed Streaming for Apache Kafka):


• What it is: Fully managed Apache Kafka service for building real-time streaming
applications.
• Key Features: High availability, security, automatic scaling, integration with AWS
ecosystem.
• Example use: Streaming real-time user activity from a website to a data analytics
pipeline.
• Interview tip: "MSK is Kafka without the headache of managing Kafka clusters yourself."

7. Amazon SageMaker:
• What it is: Fully managed machine learning platform for building, training, and deploying
ML models.
• Key Features: Pre-built algorithms, managed Jupyter notebooks, automatic model
tuning, deployment endpoints.
• Example use: Predicting customer churn by training an ML model on historical usage
data.
• Interview tip: "SageMaker is like a one-stop shop for ML—from data prep to
deployment."

If you want, I can also give you a simple one-line table for these services so you can recall them
instantly in an interview without long memorization. That would be perfect for quick-fire AWS
questions.
Here’s a refined overview of all Amazon Web Services (AWS), organized by category for clarity:

AWS Service Categories & Examples


Based on official AWS documentation and reputable sources, AWS offers over 165 services
across many domains (Trailhead, 1reddrop.com). Here's a breakdown with key examples:
• Compute
• Amazon EC2, Elastic Beanstalk, Fargate, Lambda (1reddrop.com, Trailhead)
• Storage
• Amazon S3, EBS, S3 Glacier (Glacier), Elastic File System (EFS) (dslindia.com,
Wikipedia)
• Networking & Content Delivery
• Amazon VPC, Route 53, CloudFront (dslindia.com, Trailhead)
• Database
• Amazon RDS, DynamoDB, Redshift, SimpleDB, Aurora (dslindia.com, Trailhead,
nagatechworld.com)
• Analytics
• Athena, EMR, Kinesis, QuickSight, Glue, Lake Formation (1reddrop.com, Hava)
• Application Integration
• Step Functions, SNS, SQS, MQ, AppSync (1reddrop.com)
• Security, Identity & Compliance
• IAM, KMS, Shield, Inspector, Macie, Certificate Manager, Secrets Manager,
GuardDuty, Security Hub, Artifact, Firewall Manager, WAF (PeterLeiser.com,
nagatechworld.com)
• Management & Governance / Developer Tools
• CloudWatch, CloudFormation, CloudTrail, Config, CodeCommit, CodeBuild,
CodePipeline, Service Catalog (nagatechworld.com, Amazon Web Services, Inc.,
Trailhead)
• Migration & Transfer
• Database Migration Service, Snowball, DataSync (Trailhead, TechTarget)
• IoT
• AWS IoT Core, IoT Greengrass, IoT Button (TechTarget)
• Business Applications
• Chime, WorkMail, WorkDocs, WorkSpaces, AppStream, Alexa for Business
(TechTarget, 1reddrop.com)
• Blockchain & Ledger
• Managed Blockchain, Quantum Ledger Database (QLDB) (note: QLDB will retire
by end of July 2025) (TechTarget)
• Quantum & Robotics
• Braket, RoboMaker, Ground Station (Satellite) (PeterLeiser.com, TechTarget)
• AR/VR / Game Tech / Media
• Sumerian (AR/VR), GameLift, Elastic Transcoder (1reddrop.com, Engineering and
Stuff)

Community Insight
AWS is vast and constantly evolving. According to a community project, there may be over 234
services tracked via IAM prefixes (Reddit), underscoring its expansive scope.

Quick Summary Table


Category Example Services

Compute & Serverless EC2, Lambda, Fargate, Beanstalk

Storage S3, EBS, Glacier, EFS

Networking & CDN VPC, Route 53, CloudFront

Databases RDS, DynamoDB, Redshift, Aurora

Analytics & Big Data Athena, EMR, Kinesis, Glue, QuickSight

Integration & Messaging SNS, SQS, Step Functions, MQ, AppSync


Security & Governance IAM, KMS, Shield, Inspector, Macie, Security Hub, WAF, etc.

CloudWatch, CloudFormation, CloudTrail, CodePipeline, Service


Monitoring & DevOps
Catalog

Migration Tools DMS, Snowball, DataSync

IoT, AI, ML, Robotics IoT Core, Greengrass, Braket, RoboMaker

Business Apps & Productivity Chime, WorkMail, WorkSpaces, AppStream

Blockchain & Ledger Managed Blockchain, QLDB

Feel free to ask if you’d like a short, interview-ready summary or help focusing on services
relevant to your interests!

Question: Which cloud provider is good for Machine Learning services?


Ans:
Several cloud providers offer Machine Learning (ML) services, but the choice depends on your
requirements, such as ease of use, ecosystem integration, pricing, scalability, and available AI
tools. The three major cloud providers leading in ML services are AWS (Amazon Web Services),
Google Cloud Platform (GCP), and Microsoft Azure.

1. AWS (Amazon Web Services)


• Why it’s good:
• Offers Amazon SageMaker, a fully managed service to build, train, and deploy ML
models without managing infrastructure.
• Provides pre-trained AI services for computer vision (Amazon Rekognition),
natural language processing (Amazon Comprehend), speech (Amazon Transcribe,
Polly), and recommendations (Amazon Personalize).
• Highly scalable with tight integration into the AWS ecosystem (S3 for storage, EC2
for compute, Glue for data prep).
• Suitable for both beginners and advanced ML teams.
• Example: A retail company can use SageMaker to build a demand forecasting model and
deploy it using AWS Lambda to serve predictions in real time.
2. Google Cloud Platform (GCP)
• Why it’s good:
• Google is a leader in AI research (TensorFlow, TPUs) and provides Vertex AI, an
end-to-end ML platform for training and deployment.
• Offers powerful AutoML tools for users with little coding experience.
• Specialized hardware like TPUs (Tensor Processing Units) for faster deep learning
training.
• Pre-trained APIs for translation, vision, speech-to-text, and sentiment analysis.
• Example: A startup can use Google’s Vision API to analyze product images and tag them
automatically for an e-commerce catalog.

3. Microsoft Azure
• Why it’s good:
• Azure Machine Learning provides a robust environment for model building,
training, and deployment with drag-and-drop and code-based options.
• Strong integration with Microsoft tools like Power BI for visual analytics.
• Offers Cognitive Services for vision, speech, language, and decision-making AI.
• Great for enterprises already using Microsoft’s ecosystem.
• Example: A healthcare organization can use Azure Cognitive Services to extract
structured data from unstructured patient records for analytics.

Comparison Table:

Feature AWS GCP Azure

Azure Machine
Flagship ML Service SageMaker Vertex AI
Learning

Best For All-round flexibility AI research & automation Enterprise integration

Hardware Acceleration GPUs TPUs & GPUs GPUs


Pre-trained Models Yes Yes Yes

Conclusion:
• If you want a mature, enterprise-ready, and versatile platform, go with AWS.
• If your focus is on cutting-edge AI research, AutoML, or computer vision, Google Cloud
is excellent.
• If you are already invested in Microsoft’s ecosystem and need strong enterprise
support, choose Azure.
For interviews, you can conclude with:
“All three major providers have strong ML offerings, but AWS SageMaker is often
preferred for production-grade deployment, Google Cloud for research and AutoML,
and Azure for enterprise integration.”

If you want, I can also prepare you a full list of AWS, GCP, and Azure ML services with examples
so you can answer follow-up interview questions easily.
What is Docker? What are advantages? How it works?
Ans -
Docker is an open-source platform that enables developers to automate the deployment,
scaling, and management of applications using containers. Containers are lightweight, portable,
and include everything needed to run an application—code, runtime, libraries, and
dependencies—ensuring consistency across different environments.
Advantages of Docker:
1. Portability – Applications packaged in containers can run on any system that supports
Docker, whether it's a developer’s laptop, a test server, or the cloud.
Example: You can build a Python app on Windows, containerize it, and run it on Linux
without changes.
2. Lightweight – Containers share the host operating system kernel, making them more
efficient than traditional virtual machines. This reduces resource usage.
3. Consistency – Eliminates the "works on my machine" problem by ensuring the same
environment from development to production.
4. Isolation – Each container runs in its own environment, avoiding conflicts between
dependencies or versions.
5. Scalability – Works well with orchestration tools like Kubernetes to scale applications up
or down based on demand.
6. Faster Deployment – Containers start in seconds compared to minutes for virtual
machines, improving CI/CD pipelines.
How Docker Works:
• Docker uses a client-server architecture:
• Docker Client – Sends commands to the Docker daemon (e.g., docker run,
docker build).

• Docker Daemon – Manages container lifecycle, builds images, and runs


containers.
• Docker Images – Read-only templates containing application code and
dependencies.
• Docker Containers – Running instances of images.
• Docker uses OS-level virtualization to create isolated user spaces for each container,
leveraging the host OS kernel.
• For example, if you want to run a Node.js web app, you create a Dockerfile, build an
image, and run it as a container. The app will run identically across any machine with
Docker installed.
Do you want me to also prepare a similar long interview answer for Kubernetes next?

You might also like