Unit 5: Overview of Container Orchestration and Microservices - Practice Quiz

INT331 — Fundamentals Of Devops 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of container orchestration?

Need for Orchestration Easy
A. Compiling programming languages
B. Designing database schemas
C. Automating deployment, scaling, and management of containers
D. Writing application source code

2 Which problem does orchestration primarily solve when running many containers?

Need for Orchestration Easy
A. Managing containers manually at scale becomes difficult
B. Containers run only on Windows
C. Containers cannot connect to networks
D. Containers cannot store any data

3 Which of the following is a popular container orchestration platform?

Need for Orchestration Easy
A. Photoshop
B. Kubernetes
C. Notepad
D. MySQL

4 In Kubernetes, what is the component that manages the overall cluster called?

Kubernetes Architecture Overview Easy
A. Load Balancer
B. Compiler
C. Web Server
D. Control Plane

5 What is a worker machine in a Kubernetes cluster called?

Kubernetes Architecture Overview Easy
A. Thread
B. Branch
C. Socket
D. Node

6 Which component stores all cluster configuration data in Kubernetes?

Kubernetes Architecture Overview Easy
A. etcd
B. Docker
C. kubelet
D. kube-proxy

7 Which agent runs on each node and communicates with the control plane?

Kubernetes Architecture Overview Easy
A. ingress
B. kubelet
C. scheduler
D. etcd

8 What is the smallest deployable unit in Kubernetes?

Basic Kubernetes Concepts: Pods, Deployments, Services Easy
A. Node
B. Pod
C. Namespace
D. Cluster

9 A single Pod can contain how many containers?

Basic Kubernetes Concepts: Pods, Deployments, Services Easy
A. Only ten containers
B. One or more containers
C. Exactly zero containers
D. Only half a container

10 Which Kubernetes object manages the desired number of Pod replicas?

Basic Kubernetes Concepts: Pods, Deployments, Services Easy
A. Volume
B. Service
C. Secret
D. Deployment

11 What does a Kubernetes Service primarily provide?

Basic Kubernetes Concepts: Pods, Deployments, Services Easy
A. A programming language compiler
B. A source code repository
C. A permanent disk for storing files
D. A stable network endpoint to access a set of Pods

12 Why are Services needed when Pods already exist?

Basic Kubernetes Concepts: Pods, Deployments, Services Easy
A. Pods cannot run any containers
B. Pods have changing IP addresses, so Services give a stable access point
C. Pods must be deleted every hour
D. Pods do not support networking at all

13 What is a key reason organizations adopt microservices?

Why Microservices? Easy
A. To build applications as small, independent services
B. To avoid using any networking
C. To eliminate the need for testing
D. To combine all code into a single large file

14 In a microservices architecture, each service typically focuses on what?

Why Microservices? Easy
A. Only the user interface
B. A single business capability
C. All business functions together
D. Only database backups

15 What best describes a monolithic architecture?

Monolithic and Microservice Architecture Easy
A. A serverless-only design
B. A database-only system
C. A single unified application where all components are tightly coupled
D. A set of many independent small services

16 Which is a common disadvantage of a monolithic architecture?

Monolithic and Microservice Architecture Easy
A. Each feature deploys completely independently
B. It cannot store any data
C. It always uses microservices internally
D. A small change requires redeploying the entire application

17 Which benefit allows scaling only the parts of an application that need more resources?

Benefits (scalability, independent deployment) Easy
A. Scaling only the database
B. Independent scalability of services
C. Mandatory scaling of the whole app
D. No scaling capability

18 What does independent deployment in microservices allow teams to do?

Benefits (scalability, independent deployment) Easy
A. Deploy one service without redeploying the whole system
B. Deploy without writing any code
C. Deploy all services as a single unit
D. Deploy only once per year

19 Which of the following is a major cloud provider offering DevOps services?

Intro to DevOps on AWS/GCP/Azure (conceptual only) Easy
A. Amazon Web Services (AWS)
B. Adobe Illustrator
C. VLC Media Player
D. Microsoft Word

20 What does the abbreviation GCP stand for?

Intro to DevOps on AWS/GCP/Azure (conceptual only) Easy
A. General Compute Program
B. Graphic Cloud Processor
C. Google Cloud Platform
D. Global Container Provider

21 A company runs 200 containers across 15 hosts. When one host fails, the containers on it must be automatically restarted elsewhere without manual intervention. Which capability of a container orchestrator directly addresses this requirement?

Need for Orchestration Medium
A. Container image signing
B. Self-healing and rescheduling
C. Build pipeline triggering
D. Image layer caching

22 As container counts grow, teams struggle to manually balance load, place containers, and scale services. Which set of problems is orchestration primarily designed to solve?

Need for Orchestration Medium
A. Designing relational database schemas
B. Source code versioning and merging
C. Writing Dockerfiles and base images
D. Scheduling, scaling, and service discovery

23 In a Kubernetes cluster, which control plane component is responsible for assigning newly created Pods to suitable nodes based on resource requirements and constraints?

Kubernetes Architecture Overview Medium
A. etcd
B. kubelet
C. kube-proxy
D. kube-scheduler

24 A developer changes cluster state via kubectl apply. Which component receives this request first and serves as the single entry point to the control plane?

Kubernetes Architecture Overview Medium
A. kubelet
B. container runtime
C. kube-apiserver
D. kube-controller-manager

25 Where does a Kubernetes cluster persistently store all of its configuration and state data as key-value pairs?

Kubernetes Architecture Overview Medium
A. etcd
B. kube-proxy
C. the container registry
D. kubelet cache

26 Two containers in the same application must share the same network namespace and communicate over localhost. What is the correct way to deploy them in Kubernetes?

Basic Kubernetes Concepts: Pods Medium
A. Run them as separate DaemonSets
B. Use two Deployments linked by a Service
C. Create two separate Pods on the same node
D. Place both containers in the same Pod

27 Why is a Pod, rather than an individual container, considered the smallest deployable unit in Kubernetes?

Basic Kubernetes Concepts: Pods Medium
A. A Pod is a snapshot of a container image
B. A Pod can only ever hold exactly one container
C. A Pod groups one or more tightly coupled containers sharing storage and network
D. A Pod represents a physical machine in the cluster

28 A team wants to update an application from version 1 to version 2 gradually, replacing old Pods with new ones while keeping the app available. Which Kubernetes object and strategy fits best?

Basic Kubernetes Concepts: Deployments Medium
A. A single Pod recreated manually
B. A ConfigMap with a new value
C. A Service with session affinity
D. A Deployment with a rolling update

29 After a bad release, an operator wants to quickly return the application to its previous stable version. Which Deployment feature enables this?

Basic Kubernetes Concepts: Deployments Medium
A. Manually deleting etcd entries
B. Rollback to a previous revision
C. Restarting kube-proxy
D. Editing the container image registry

30 A Deployment specifies replicas: 4. Two Pods are accidentally deleted. What does the Deployment's controller do?

Basic Kubernetes Concepts: Deployments Medium
A. Creates 2 new Pods to restore the desired count
B. Waits for manual recreation of the Pods
C. Deletes the remaining 2 Pods
D. Reduces the replica count to 2 permanently

31 Pods are frequently created and destroyed, so their IP addresses change. Which Kubernetes object provides a stable endpoint to reach a group of Pods?

Basic Kubernetes Concepts: Services Medium
A. A Service
B. A container image tag
C. A namespace
D. A Pod label

32 An application must be reachable from outside the cluster through a cloud provider's load balancer. Which Service type is most appropriate?

Basic Kubernetes Concepts: Services Medium
A. LoadBalancer
B. ExternalName
C. ClusterIP
D. None (headless)

33 How does a Service determine which Pods should receive its traffic?

Basic Kubernetes Concepts: Services Medium
A. By matching Pod labels using a label selector
B. By matching container image names
C. By matching Pod IP addresses statically
D. By the alphabetical order of Pod names

34 A large team finds that a single shared codebase forces all developers to coordinate every release, slowing delivery. Which microservices benefit most directly addresses this pain point?

Why Microservices? Medium
A. Removal of the need for testing
B. Elimination of all network communication
C. Independent development and deployment of services
D. Guaranteed lower total infrastructure cost

35 One microservice needs a NoSQL database while another performs best with a relational database. How does a microservices architecture accommodate this?

Why Microservices? Medium
A. Services cannot use databases directly
B. Only one database technology is allowed per cluster
C. Each service can choose its own technology stack
D. All services must share one database

36 In a monolithic application, a small change to one module requires rebuilding and redeploying the entire application. What is the primary architectural reason for this?

Monolithic and Microservice Architecture Medium
A. The application uses multiple independent databases
B. Each module is deployed in its own container
C. Modules communicate only over HTTP APIs
D. All modules are tightly coupled in a single deployable unit

37 A payments component experiences 10x more load than the rest of an application. In a microservices architecture, what scaling advantage applies?

Monolithic and Microservice Architecture Medium
A. Scaling requires rewriting the whole codebase
B. Only the payments service can be scaled independently
C. The entire application must be scaled together
D. Services cannot be scaled without downtime

38 A team deploys an update to the recommendation service without touching the checkout service, and users of checkout are unaffected. Which microservices benefit does this demonstrate?

Benefits (scalability, independent deployment) Medium
A. Shared release cycles across all services
B. Independent deployment with fault isolation
C. Mandatory full-system redeployment
D. Elimination of inter-service dependencies

39 If a service normally handling 500 requests/second must handle 2000 requests/second, and each instance handles 500 requests/second, how many instances are needed, and which property enables adding them?

Benefits (scalability, independent deployment) Medium
A. 8 instances, enabled by monolithic packaging
B. 2 instances, enabled by vertical scalability
C. 1 instance, enabled by caching
D. 4 instances, enabled by horizontal scalability

40 A team wants a managed Kubernetes control plane so they do not have to operate master nodes themselves. Which pair of managed services fits this on AWS and Azure respectively?

Intro to DevOps on AWS/GCP/Azure (conceptual only) Medium
A. Amazon S3 and Azure Blob Storage
B. Amazon EKS and Azure AKS
C. AWS Lambda and Azure Functions
D. AWS CloudTrail and Azure Monitor

41 A team runs 200 containers across 15 hosts manually with shell scripts. During peak load, some containers crash and traffic is unevenly distributed. Which combination of orchestration capabilities is most essential to directly resolve both the crash-recovery and the traffic-distribution problems?

Need for Orchestration Hard
A. Self-healing (automatic restart/reschedule) and load balancing
B. Static host assignment and manual port mapping
C. Log aggregation and centralized monitoring
D. Image caching and container layering

42 In a Kubernetes control plane, if the etcd datastore becomes unreachable but existing worker nodes and their kubelets remain running, what is the most accurate immediate consequence?

Kubernetes Architecture Overview Hard
A. The kubelets automatically promote themselves to control plane roles
B. Running Pods continue to serve traffic, but new scheduling and state changes fail
C. Services keep routing but Pods lose their persistent volumes instantly
D. All running Pods are immediately terminated across the cluster

43 You define a Deployment with replicas: 3 and a Service of type ClusterIP selecting those Pods. One Pod is deleted manually via kubectl delete pod. What sequence correctly describes the system's response?

Basic Kubernetes Concepts: Pods, Deployments, Services Hard
A. The ClusterIP changes to redirect traffic to a new node
B. The Deployment's controller creates a replacement Pod, and the Service updates its endpoints to include it
C. The Service recreates the Pod directly and notifies the Deployment
D. The Pod stays deleted because Services, not Deployments, own Pods

44 A monolithic e-commerce app is split into microservices. The Orders service must confirm payment via the Payments service before finalizing. Which challenge is introduced by this decomposition that did not exist in the monolith?

Monolithic and Microservice Architecture Hard
A. Compile-time coupling between all modules
B. Shared in-process function call overhead
C. Distributed transaction consistency across service boundaries
D. Single-database schema locking on every write

45 A Pod contains two containers: an application container and a sidecar proxy. Which statement about their relationship inside the Pod is correct?

Basic Kubernetes Concepts: Pods, Deployments, Services Hard
A. They must run on different nodes for isolation
B. They share the same network namespace and can communicate over localhost
C. Each container gets its own Pod IP and separate loopback interface
D. They cannot share mounted volumes

46 A microservices system autoscales only the Search service during traffic spikes while other services stay at baseline. Which benefit does this specifically demonstrate that a monolith cannot easily achieve?

Benefits (scalability, independent deployment) Hard
A. Guaranteed stronger data consistency
B. Elimination of all network latency
C. Reduced total lines of code
D. Granular (per-service) horizontal scaling

47 Which control plane component is responsible for deciding which node a newly created Pod should run on, based on resource requests and constraints?

Kubernetes Architecture Overview Hard
A. kube-scheduler
B. kubelet
C. kube-proxy
D. kube-controller-manager

48 A Deployment update uses the default RollingUpdate strategy with maxUnavailable: 0 and maxSurge: 1 for 4 replicas. During the rollout, what is the maximum number of Pods (old + new) that can exist simultaneously?

Basic Kubernetes Concepts: Pods, Deployments, Services Hard
A. 3
B. 5
C. 8
D. 4

49 An organization adopts microservices primarily to allow different teams to use different tech stacks. Which term best captures this specific advantage?

Why Microservices? Hard
A. Strong coupling
B. Monolithic layering
C. Vertical integration
D. Polyglot (technology heterogeneity)

50 A team wants a managed Kubernetes control plane so they don't operate etcd or the API server themselves. Which mapping of managed Kubernetes services to cloud providers is entirely correct?

Intro to DevOps on AWS/GCP/Azure (conceptual only) Hard
A. AWS → ECS, GCP → GKE, Azure → EKS
B. AWS → EKS, GCP → GKE, Azure → AKS
C. AWS → GKE, GCP → AKS, Azure → EKS
D. AWS → AKS, GCP → EKS, Azure → GKE

51 You need stable network access to a set of Pods from outside the cluster in a cloud environment, provisioning an external IP automatically. Which Service type is most appropriate?

Basic Kubernetes Concepts: Pods, Deployments, Services Hard
A. Headless (clusterIP: None)
B. LoadBalancer
C. ExternalName
D. ClusterIP

52 Consider declarative orchestration where you specify desired state rather than imperative steps. What is the core mechanism an orchestrator uses to continuously enforce this?

Need for Orchestration Hard
A. A static configuration snapshot with no monitoring
B. A manual approval gate before every change
C. A reconciliation loop comparing actual state to desired state
D. A one-time provisioning script executed at deploy

53 For a small startup with 3 developers and an unproven product, which architectural choice is often recommended first, and why?

Monolithic and Microservice Architecture Hard
A. A distributed monolith to combine both approaches
B. A serverless mesh of 50 functions for infinite scale
C. A monolith, to reduce operational complexity while the domain is still evolving
D. Microservices, to maximize independent deployment from day one

54 On each worker node, which component maintains network rules to route Service traffic to the correct backend Pods?

Kubernetes Architecture Overview Hard
A. kube-proxy
B. etcd
C. kube-apiserver
D. kube-scheduler

55 Team A deploys a bugfix to the Notifications service without redeploying Orders or Billing. Which property enables this, and what is a key prerequisite to keep it safe?

Benefits (scalability, independent deployment) Hard
A. Tight coupling; requires a shared database schema lock
B. Shared binary linking; requires recompiling all services
C. Independent deployability; requires backward-compatible API contracts
D. Global rollout gates; requires simultaneous deploys

56 A Pod repeatedly enters CrashLoopBackOff. Which explanation best describes what this state indicates about kubelet behavior?

Basic Kubernetes Concepts: Pods, Deployments, Services Hard
A. The Service selector does not match the Pod labels
B. The image cannot be pulled from the registry
C. The container keeps failing on start, and kubelet restarts it with exponentially increasing delays
D. The Pod cannot be scheduled due to insufficient node resources

57 Conway's Law is often cited when justifying microservices. Which statement correctly applies it to service design?

Why Microservices? Hard
A. System structure tends to mirror the communication structure of the organization that builds it
B. Microservices must always outnumber the teams building them
C. Code quality is inversely proportional to the number of services
D. Systems always fail at the network layer first

58 A DevOps engineer wants a fully managed CI/CD pipeline service native to each cloud. Which grouping of native pipeline/build services is correct?

Intro to DevOps on AWS/GCP/Azure (conceptual only) Hard
A. AWS Lambda, GCP Firestore, Azure AKS
B. AWS S3, GCP BigQuery, Azure Monitor
C. AWS CloudFormation, GCP GKE, Azure Blob
D. AWS CodePipeline, GCP Cloud Build, Azure Pipelines

59 Which scenario represents the strongest justification for adopting a container orchestrator rather than plain Docker on a single host?

Need for Orchestration Hard
A. Running hundreds of containers across many nodes needing automated scheduling, scaling, and failover
B. Building one Docker image for a static website
C. Running a single container locally for a developer demo
D. Storing configuration files in version control

60 A system was split into microservices but every service shares one database and must be deployed together. This anti-pattern is best described as a:

Monolithic and Microservice Architecture Hard
A. Well-designed microservice mesh
B. Pure event-driven system
C. Stateless serverless architecture
D. Distributed monolith