Unit 3: Deploying Microservices - Subjective Questions

INT363 — Cloud Microservices • Practice Questions with Detailed Answers

20 questions

1

Define containerization. Explain why it is useful for deploying microservices.

2

Compare containers and virtual machines with respect to architecture, resource usage, startup time, and deployment.

3

Describe the main components of the Docker architecture and explain how they interact.

4

What is a Dockerfile? Explain the purpose of the commonly used FROM, WORKDIR, COPY, RUN, EXPOSE, ENV, and CMD instructions.

5

Write and explain a Dockerfile for a simple microservice, and describe the commands used to build and run its image.

6

Explain Docker image layers and build caching. How can a Dockerfile be optimized to produce efficient images?

7

Distinguish between a Docker image and a Docker container. Also explain the role of an image registry in microservice deployment.

8

Define container orchestration and discuss the problems it solves in a large microservices system.

9

Describe the architecture of Kubernetes, clearly distinguishing the control plane components from the worker node components.

10

What is a Kubernetes Pod? Explain why Kubernetes deploys Pods instead of managing individual containers directly.

11

Explain the purpose of Kubernetes Deployments and ReplicaSets. How do they support declarative microservice deployment?

12

Describe Kubernetes Services and compare the ClusterIP, NodePort, and LoadBalancer service types.

13

Compare Kubernetes ConfigMaps and Secrets. Explain how they should be used when deploying configurable microservices.

14

Explain liveness, readiness, and startup probes in Kubernetes. What problems can occur if these probes are configured incorrectly?

15

Describe a complete process for deploying a containerized microservice to Kubernetes using declarative manifests.

16

Compare rolling updates, recreate deployments, blue-green deployments, and canary deployments for microservices.

17

Explain how Kubernetes provides scaling and self-healing for deployed microservices.

18

Define Continuous Integration and explain its core principles in the context of microservice development.

19

Design and explain a CI pipeline for a Docker-based microservice that will be deployed to Kubernetes.

20

Distinguish Continuous Integration, Continuous Delivery, and Continuous Deployment. Explain how they relate to microservice releases.