CCD Unit 5
CCD Unit 5
Ans:
Elastic resources in cloud computing refer to the ability to automatically adjust computing
resources (e.g., CPU, memory, storage) based on demand. This flexibility ensures that
resources are available when needed and are released when demand decreases,
optimizing cost and performance.
• With EC2, users can dynamically scale the number of virtual servers up or down
based on workload requirements.
• For instance, an online retailer might experience high traffic during holiday sales.
EC2 can automatically increase the number of instances (scaling out) to handle the
surge in traffic.
• After the traffic normalizes, EC2 can reduce the instances (scaling in), ensuring cost
savings by avoiding over-provisioning.
This elasticity makes it ideal for applications with variable workloads, such as e-commerce
platforms, streaming services, and big data processing.
Ans:
Complexity:
Kubernetes has a steep learning curve. Setting it up and managing clusters requires
significant expertise and understanding of its components.
Resource Overhead:
Running Kubernetes can lead to high resource usage, as it requires multiple services and
components, which may not be ideal for small-scale applications.
Networking Challenges:
Configuring Kubernetes networking (e.g., service discovery, load balancing, and networking
policies) can be complex, especially in multi-cloud or hybrid environments.
Security Risks:
Misconfigurations in Kubernetes, such as open ports or lack of proper role-based access
control (RBAC), can expose the system to vulnerabilities and attacks.
Persistent Storage:
Managing stateful applications and persistent storage in Kubernetes is challenging,
especially when scaling or migrating workloads across different environments.
Ans:
Container:
A container is a lightweight, standalone, and portable software package that includes
everything needed to run an application—such as code, libraries, and dependencies.
Containers isolate applications from the underlying system, ensuring they run consistently
across different environments, whether on a developer’s machine, a testing environment,
or a production server.
Docker:
Docker is an open-source platform used to create, deploy, and manage containers. It
simplifies the process of building and running applications in isolated environments by
packaging all necessary components together.
3. Version Control: Docker enables image versioning for easy tracking and rollbacks.
4. Integration with Cloud: Docker integrates with cloud platforms like AWS, Google Cloud,
and Azure, supporting Kubernetes and other container orchestration tools.
Example Workflow with Docker:
2. The Docker image is built from the Dockerfile and serves as a template for creating
containers.
3. Using the Docker image, the application is deployed as one or more Docker
containers, ensuring consistent behavior across all environments.
Ans:
Container Registries in cloud computing are repositories that store and manage container
images. They act as a centralized hub where users can upload, download, and share
container images used to deploy applications in containerized environments like
Kubernetes or Docker.
Use Case:
In a typical workflow, developers push container images to a registry after building them
locally or in a CI/CD pipeline. These images can then be pulled by orchestration systems
like Kubernetes or Docker Swarm to deploy and run the application consistently across
multiple environments.
Define Following Terms: Scaling, Pipeline, Microservices, Multi-Cloud, Hybrid Cloud.
Ans:
1. Scaling in Kubernetes:
• Horizontal Scaling:
o Achieved using tools like the Horizontal Pod Autoscaler (HPA), which
monitors metrics like CPU usage or custom application metrics to adjust pod
counts dynamically.
• Vertical Scaling:
2. Pipeline in Kubernetes:
Key Components:
2. CI/CD Tools:
3. Kubernetes Cluster:
3. Microservices in Kubernetes:
• Each microservice runs in its own pod and communicates with others using APIs.
Example: An online store may use separate microservices for inventory, user accounts, and
payment, all managed by Kubernetes.
4. Multi-Cloud Kubernetes:
• Benefits:
• Tools like Rancher and Anthos help manage multi-cloud Kubernetes environments.
5. Hybrid Kubernetes:
Hybrid Kubernetes refers to deploying and managing Kubernetes clusters across on-
premises data centers and cloud environments simultaneously.
• Benefits:
• Tools like OpenShift, Azure Arc, and Google Anthos enable hybrid Kubernetes
setups.
Hybrid Kubernetes is especially useful for organizations transitioning to the cloud or with
strict data governance requirements.
Ans: