Kubernetes MCQs – Kubernetes on Cloud Providers

Kubernetes on cloud providers has become a fundamental topic for developers and DevOps engineers deploying containerized applications at scale. This section includes multiple choice questions (MCQs) that help test and improve your understanding of how Kubernetes integrates with major cloud platforms like AWS, Google Cloud (GKE), Azure (AKS), and others.

These MCQs also include command-based questions that mirror real-world tasks, making them especially useful for interview and exam preparation.

1.) Which managed Kubernetes service is provided by Google Cloud?

A) EKS
B) AKS
C) GKE
D) OpenShift

Answer: Option C

Explanation: GKE stands for Google Kubernetes Engine, Google Cloud’s managed Kubernetes service.

2.) What is the name of the managed Kubernetes service offered by Amazon Web Services?

A) AKS
B) GKE
C) EKS
D) KubeCloud

Answer: Option C

Explanation: Amazon Elastic Kubernetes Service (EKS) is AWS’s managed Kubernetes service.

3.) Which command initializes a new AKS cluster using Azure CLI?

A) az aks create
B) azure kubernetes init
C) kubectl create aks
D) az kubernetes deploy

Answer: Option A

Explanation: az aks create is the Azure CLI command used to provision an AKS cluster.

4.) Which cloud provider offers the service “AKS”?

A) AWS
B) Azure
C) Google Cloud
D) DigitalOcean

Answer: Option B

Explanation: Azure Kubernetes Service (AKS) is the managed Kubernetes service from Microsoft Azure.

5.) What is the correct command to authenticate your kubectl with an EKS cluster?

A) aws eks-auth
B) aws eks get-token
C) aws eks update-kubeconfig
D) eksctl login

Answer: Option C

Explanation: This command updates the kubeconfig file to interact with the EKS cluster.

6.) Which of the following supports automatic node scaling in Kubernetes on AWS?

A) kube-autoscaler
B) AWS Auto Scaling Groups
C) EKS Managed Node Groups
D) All of the above

Answer: Option D

Explanation: All listed options work together for automatic node scaling in EKS.

7.) In GKE, which component is fully managed by Google?

A) Nodes
B) Control Plane
C) Pods
D) kubectl

Answer: Option B

Explanation: GKE provides a managed control plane while users manage worker nodes or use autopilot mode.

8.) Which tool can you use to set up EKS using a simplified configuration file?

A) Terraform
B) eksctl
C) kubespray
D) helm

Answer: Option B

Explanation: eksctl is a simple CLI tool for creating clusters on EKS using YAML files.

9.) What is the default CNI plugin used by EKS?

A) Flannel
B) Calico
C) AWS VPC CNI
D) Weave

Answer: Option C

Explanation: EKS uses the AWS VPC CNI plugin by default for pod networking.

10.) Which command is used to list clusters in Google Cloud?

A) gcloud container clusters list
B) gcloud kubernetes get clusters
C) gke list
D) kubectl gke list

Answer: Option A

Explanation: This is the standard gcloud CLI command to list GKE clusters.

Leave a Reply

Your email address will not be published. Required fields are marked *