Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 5 MCQsOverview of Container Orchestration and Microservices
What does independent deployment in microservices allow teams to do?
Not quite. Try another option.
Answer: Deploy one service without redeploying the whole system
Independent deployment lets teams update and release individual services without affecting the entire application.
Question 19 of 60 · Intro to DevOps on AWS/GCP/Azure (conceptual only) · Easy
Which of the following is a major cloud provider offering DevOps services?
Not quite. Try another option.
Answer: Amazon Web Services (AWS)
AWS, along with GCP and Azure, is a major cloud provider offering a range of DevOps tools and services.
Question 20 of 60 · Intro to DevOps on AWS/GCP/Azure (conceptual only) · Easy
What does the abbreviation GCP stand for?
Not quite. Try another option.
Answer: Google Cloud Platform
GCP stands for Google Cloud Platform, one of the major public cloud providers supporting DevOps workflows.
Question 21 of 60 · Need for Orchestration · Medium
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?
Not quite. Try another option.
Answer: Self-healing and rescheduling
Orchestrators continuously monitor container/host health and reschedule failed workloads onto healthy nodes, providing self-healing. Image caching, signing, and pipeline triggers are unrelated to recovering from host failure.
Question 22 of 60 · Need for Orchestration · Medium
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?
Not quite. Try another option.
Answer: Scheduling, scaling, and service discovery
Orchestration platforms automate placement (scheduling), scaling up/down, and locating services (service discovery). Version control, image authoring, and schema design are outside orchestration's scope.
Question 23 of 60 · Kubernetes Architecture Overview · Medium
In a Kubernetes cluster, which control plane component is responsible for assigning newly created Pods to suitable nodes based on resource requirements and constraints?
Not quite. Try another option.
Answer: kube-scheduler
The kube-scheduler watches for unscheduled Pods and selects an appropriate node. The kubelet runs Pods on a node, kube-proxy handles networking rules, and etcd stores cluster state.
Question 24 of 60 · Kubernetes Architecture Overview · Medium
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?
Not quite. Try another option.
Answer: kube-apiserver
The kube-apiserver is the front end of the control plane; all clients and components communicate through it. Controllers, kubelet, and the runtime act on state after it is stored via the API server.
Question 25 of 60 · Kubernetes Architecture Overview · Medium
Where does a Kubernetes cluster persistently store all of its configuration and state data as key-value pairs?
Not quite. Try another option.
Answer: etcd
etcd is the consistent, distributed key-value store that holds all cluster state. kube-proxy manages network rules, the kubelet manages node workloads, and the registry stores images.
Question 26 of 60 · Basic Kubernetes Concepts: Pods · Medium
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?
Not quite. Try another option.
Answer: Place both containers in the same Pod
Containers within a single Pod share the same network namespace and can reach each other via localhost. Separate Pods or Deployments each get their own network identity, so localhost would not work.
Question 27 of 60 · Basic Kubernetes Concepts: Pods · Medium
Why is a Pod, rather than an individual container, considered the smallest deployable unit in Kubernetes?
Not quite. Try another option.
Answer: A Pod groups one or more tightly coupled containers sharing storage and network
Kubernetes schedules Pods, which can contain one or more containers that share networking and storage. Pods are not limited to one container, are not physical machines, and are not image snapshots.
Question 28 of 60 · Basic Kubernetes Concepts: Deployments · Medium
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?
Not quite. Try another option.
Answer: A Deployment with a rolling update
Deployments support rolling updates that incrementally replace old Pods with new ones, avoiding downtime. Services route traffic, ConfigMaps store configuration, and a lone Pod offers no managed update strategy.
Question 29 of 60 · Basic Kubernetes Concepts: Deployments · Medium
After a bad release, an operator wants to quickly return the application to its previous stable version. Which Deployment feature enables this?
Not quite. Try another option.
Answer: Rollback to a previous revision
Deployments keep a revision history, allowing kubectl rollout undo to revert to a prior working state. Editing etcd directly, restarting kube-proxy, or changing the registry does not restore application versions safely.
Question 30 of 60 · Basic Kubernetes Concepts: Deployments · Medium
A Deployment specifies replicas: 4. Two Pods are accidentally deleted. What does the Deployment's controller do?
Not quite. Try another option.
Answer: Creates 2 new Pods to restore the desired count
Deployments (via ReplicaSets) continuously reconcile actual state to the declared desired state of 4 replicas, recreating missing Pods automatically.
Question 31 of 60 · Basic Kubernetes Concepts: Services · Medium
Pods are frequently created and destroyed, so their IP addresses change. Which Kubernetes object provides a stable endpoint to reach a group of Pods?
Not quite. Try another option.
Answer: A Service
A Service gives a stable virtual IP and DNS name that load-balances across matching Pods, decoupling clients from changing Pod IPs. Labels, image tags, and namespaces do not provide a stable network endpoint.
Question 32 of 60 · Basic Kubernetes Concepts: Services · Medium
An application must be reachable from outside the cluster through a cloud provider's load balancer. Which Service type is most appropriate?
Not quite. Try another option.
Answer: LoadBalancer
The LoadBalancer Service type provisions an external load balancer via the cloud provider. ClusterIP is internal-only, headless disables load balancing, and ExternalName maps to an external DNS name.
Question 33 of 60 · Basic Kubernetes Concepts: Services · Medium
How does a Service determine which Pods should receive its traffic?
Not quite. Try another option.
Answer: By matching Pod labels using a label selector
Services use label selectors to dynamically identify the set of Pods they route to. This lets Pods come and go while the selector keeps the Service endpoints current.
Question 34 of 60 · Why Microservices? · Medium
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?
Not quite. Try another option.
Answer: Independent development and deployment of services
Microservices let teams build, deploy, and release services independently, reducing coordination overhead. They typically add network communication and do not remove testing or guarantee lower cost.
Question 35 of 60 · Why Microservices? · Medium
One microservice needs a NoSQL database while another performs best with a relational database. How does a microservices architecture accommodate this?
Not quite. Try another option.
Answer: Each service can choose its own technology stack
Microservices support polyglot persistence and technology heterogeneity, letting each service pick the datastore and language best suited to its needs, unlike a monolith with a shared stack.
Question 36 of 60 · Monolithic and Microservice Architecture · Medium
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?
Not quite. Try another option.
Answer: All modules are tightly coupled in a single deployable unit
A monolith packages all functionality into one deployable artifact, so any change forces a full rebuild and redeploy. The other options describe microservice-style separation.
Question 37 of 60 · Monolithic and Microservice Architecture · Medium
A payments component experiences 10x more load than the rest of an application. In a microservices architecture, what scaling advantage applies?
Not quite. Try another option.
Answer: Only the payments service can be scaled independently
Microservices allow granular, independent scaling of just the high-demand service, using resources efficiently. A monolith would require scaling the whole application together.
Question 38 of 60 · Benefits (scalability, independent deployment) · Medium
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?
Not quite. Try another option.
Answer: Independent deployment with fault isolation
Deploying one service without impacting others illustrates independent deployment and isolation of change. It does not require shared releases or full redeployment, nor does it remove all dependencies.
Question 39 of 60 · Benefits (scalability, independent deployment) · Medium
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?
Not quite. Try another option.
Answer: 4 instances, enabled by horizontal scalability
instances are required. Adding more instances is horizontal scaling, a key benefit of stateless microservices behind a load balancer.
Question 40 of 60 · Intro to DevOps on AWS/GCP/Azure (conceptual only) · Medium
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?
Not quite. Try another option.
Answer: Amazon EKS and Azure AKS
EKS (AWS) and AKS (Azure) are managed Kubernetes services that operate the control plane for you. Lambda/Functions are serverless compute, S3/Blob are storage, and CloudTrail/Monitor are observability tools.
Question 41 of 60 · Need for Orchestration · Hard
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?
Not quite. Try another option.
Answer: Self-healing (automatic restart/reschedule) and load balancing
Crash recovery is solved by self-healing, which reschedules failed containers, while uneven traffic is solved by built-in load balancing. Logging and image caching help operations but do not directly restart containers or balance traffic.
Question 42 of 60 · Kubernetes Architecture Overview · Hard
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?
Not quite. Try another option.
Answer: Running Pods continue to serve traffic, but new scheduling and state changes fail
etcd stores cluster state; losing it prevents new writes (scheduling, updates), but already-running Pods managed by kubelets keep running. Existing workloads are not immediately killed.
Question 43 of 60 · Basic Kubernetes Concepts: Pods, Deployments, Services · Hard
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?
Not quite. Try another option.
Answer: The Deployment's controller creates a replacement Pod, and the Service updates its endpoints to include it
The Deployment (via its ReplicaSet) reconciles the desired replica count and spawns a new Pod. The Service's endpoint controller then adds the new Pod's IP once it matches the selector and becomes ready.
Question 44 of 60 · Monolithic and Microservice Architecture · Hard
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?
Not quite. Try another option.
Answer: Distributed transaction consistency across service boundaries
In a monolith, a local ACID transaction spans both operations. Splitting into services introduces network boundaries, requiring patterns like Saga or eventual consistency to maintain correctness—a new distributed-transaction challenge.
Question 45 of 60 · Basic Kubernetes Concepts: Pods, Deployments, Services · Hard
A Pod contains two containers: an application container and a sidecar proxy. Which statement about their relationship inside the Pod is correct?
Not quite. Try another option.
Answer: They share the same network namespace and can communicate over localhost
Containers in the same Pod share the network namespace (one IP) and can reach each other via localhost and distinct ports. They can also share volumes, enabling the sidecar pattern.
Question 46 of 60 · Benefits (scalability, independent deployment) · Hard
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?
Not quite. Try another option.
Answer: Granular (per-service) horizontal scaling
Microservices allow scaling individual components independently based on their own load. A monolith must scale the entire application as one unit, wasting resources on components that don't need scaling.
Question 47 of 60 · Kubernetes Architecture Overview · Hard
Which control plane component is responsible for deciding which node a newly created Pod should run on, based on resource requests and constraints?
Not quite. Try another option.
Answer: kube-scheduler
The kube-scheduler watches for unscheduled Pods and binds them to suitable nodes using filtering and scoring (resources, affinity, taints). The kubelet then runs the Pod once assigned.
Question 48 of 60 · Basic Kubernetes Concepts: Pods, Deployments, Services · Hard
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?
Not quite. Try another option.
Answer: 5
With 4 desired replicas, maxSurge: 1 allows one extra Pod above desired (), and maxUnavailable: 0 ensures no old Pod is removed before a new one is ready, so the peak count is 5.
Question 49 of 60 · Why Microservices? · Hard
An organization adopts microservices primarily to allow different teams to use different tech stacks. Which term best captures this specific advantage?
Not quite. Try another option.
Answer: Polyglot (technology heterogeneity)
Microservices communicate over language-agnostic APIs, letting each service choose the best-suited language or database—polyglot programming/persistence. This freedom is hard to achieve in a single monolithic codebase.
Question 50 of 60 · Intro to DevOps on AWS/GCP/Azure (conceptual only) · Hard
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?
Not quite. Try another option.
Answer: AWS → EKS, GCP → GKE, Azure → AKS
The managed Kubernetes offerings are EKS (Elastic Kubernetes Service) on AWS, GKE (Google Kubernetes Engine) on GCP, and AKS (Azure Kubernetes Service) on Azure.
Question 51 of 60 · Basic Kubernetes Concepts: Pods, Deployments, Services · Hard
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?
Not quite. Try another option.
Answer: LoadBalancer
A LoadBalancer Service provisions a cloud provider's external load balancer with a public IP. ClusterIP is internal-only, ExternalName maps to a DNS name, and Headless returns Pod IPs directly without load balancing.
Question 52 of 60 · Need for Orchestration · Hard
Consider declarative orchestration where you specify desired state rather than imperative steps. What is the core mechanism an orchestrator uses to continuously enforce this?
Not quite. Try another option.
Answer: A reconciliation loop comparing actual state to desired state
Kubernetes controllers run continuous reconciliation loops: they observe actual state, compare it to the declared desired state, and take corrective actions to converge—the foundation of declarative orchestration.
Question 53 of 60 · Monolithic and Microservice Architecture · Hard
For a small startup with 3 developers and an unproven product, which architectural choice is often recommended first, and why?
Not quite. Try another option.
Answer: A monolith, to reduce operational complexity while the domain is still evolving
The 'monolith-first' principle argues that premature microservices add distributed-system overhead. A monolith is simpler to build and refactor while service boundaries are still unclear, then decompose later.
Question 54 of 60 · Kubernetes Architecture Overview · Hard
On each worker node, which component maintains network rules to route Service traffic to the correct backend Pods?
Not quite. Try another option.
Answer: kube-proxy
kube-proxy runs on every node and programs iptables/IPVS rules (or uses userspace mode) to forward traffic destined for a Service's virtual IP to one of its backend Pods.
Question 55 of 60 · Benefits (scalability, independent deployment) · Hard
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?
Not quite. Try another option.
Answer: Independent deployability; requires backward-compatible API contracts
Independent deployment lets one service ship without others. To avoid breaking consumers, changes must preserve backward-compatible interfaces (e.g., additive API changes, versioning).
Question 56 of 60 · Basic Kubernetes Concepts: Pods, Deployments, Services · Hard
A Pod repeatedly enters CrashLoopBackOff. Which explanation best describes what this state indicates about kubelet behavior?
Not quite. Try another option.
Answer: The container keeps failing on start, and kubelet restarts it with exponentially increasing delays
CrashLoopBackOff means the container starts, crashes, and kubelet restarts it with a growing back-off delay. Scheduling failures show Pending, and image issues show ImagePullBackOff/ErrImagePull.
Question 57 of 60 · Why Microservices? · Hard
Conway's Law is often cited when justifying microservices. Which statement correctly applies it to service design?
Not quite. Try another option.
Answer: System structure tends to mirror the communication structure of the organization that builds it
Conway's Law states that organizations design systems that copy their communication structures. Teams aligned to business capabilities naturally produce services around those capabilities, motivating team-scoped microservices.
Question 58 of 60 · Intro to DevOps on AWS/GCP/Azure (conceptual only) · Hard
A DevOps engineer wants a fully managed CI/CD pipeline service native to each cloud. Which grouping of native pipeline/build services is correct?
Native CI/CD tooling includes AWS CodePipeline/CodeBuild, Google Cloud Build, and Azure Pipelines (part of Azure DevOps). The other options list storage, compute, or database services, not CI/CD pipelines.
Question 59 of 60 · Need for Orchestration · Hard
Which scenario represents the strongest justification for adopting a container orchestrator rather than plain Docker on a single host?
Not quite. Try another option.
Answer: Running hundreds of containers across many nodes needing automated scheduling, scaling, and failover
Orchestration's value emerges at scale: multi-node scheduling, automated scaling, self-healing, and service discovery. A single local container or image build gains little from an orchestrator's overhead.
Question 60 of 60 · Monolithic and Microservice Architecture · Hard
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:
Not quite. Try another option.
Answer: Distributed monolith
A distributed monolith has services that are physically separated but tightly coupled (shared database, synchronized deploys), inheriting distributed-system complexity without the independence benefits of true microservices.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT331 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT331 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.