Kubernetes MCQs – Kubernetes on Cloud Providers

11.) Which command shows the status of nodes in any Kubernetes cluster?

A) kubectl get status
B) kubectl describe nodes
C) kubectl cluster-status
D) kubectl get nodes

Answer: Option D

Explanation: This command lists all nodes along with their statuses.

12.) Which command is used to get credentials for an AKS cluster?

A) az aks login
B) kubectl get-aks
C) az aks get-credentials
D) aksctl auth

Answer: Option C

Explanation: This command allows kubectl to interact with the AKS cluster.

13.) Which command-line tool is commonly used to deploy infrastructure on AWS, Azure, and GCP?

A) helm
B) terraform
C) kubectl
D) cloudctl

Answer: Option B

Explanation: Terraform is widely used for infrastructure as code across multiple cloud platforms.

14.) Which Kubernetes cloud provider option provides “Autopilot mode”?

A) AKS
B) EKS
C) GKE
D) DigitalOcean Kubernetes

Answer: Option C

Explanation: GKE’s Autopilot mode abstracts node management completely.

15.) Which AWS service is required to store Kubernetes cluster configurations securely?

A) S3
B) EBS
C) IAM
D) Secrets Manager

Answer: Option A

Explanation: Configuration files are often stored in S3 buckets for backup or bootstrap.

16.) Which IAM feature controls access to Kubernetes API in EKS?

A) IAM roles for EC2
B) IAM policies
C) IAM identity mapping
D) All of the above

Answer: Option D

Explanation: EKS uses IAM for identity mapping and API access control.

17.) Which cloud-native CI/CD tool is tightly integrated with GKE?

A) Argo CD
B) Tekton
C) Jenkins
D) GitHub Actions

Answer: Option B

Explanation: Tekton is a Kubernetes-native CI/CD framework and is well-supported in GKE environments.

18.) In AKS, what is the default network plugin?

A) kubenet
B) Azure CNI
C) Calico
D) Weave

Answer: Option B

Explanation: Azure CNI is the default network plugin in many AKS deployments.

19.) What does eksctl delete cluster –name my-cluster do?

A) Deletes the entire EKS cluster
B) Deletes the kubeconfig file
C) Deletes only worker nodes
D) Removes IAM roles only

Answer: Option A

Explanation: This command removes the specified EKS cluster and its associated resources.

20.) What is the default logging solution integrated with GKE?

A) Fluent Bit
B) Elasticsearch
C) Loki
D) Stackdriver (now Cloud Logging)

Answer: Option D

Explanation: GKE integrates with Google Cloud’s operations suite for logging and monitoring.

Leave a Reply

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