Bird
0
0

What does the kubectl config get-contexts command show when working with EKS?

easy📝 Conceptual Q1 of 15
AWS - EKS
What does the kubectl config get-contexts command show when working with EKS?
AIt lists all available Kubernetes contexts including EKS clusters
BIt updates the kubeconfig file with the latest EKS cluster info
CIt deletes the current context from the kubeconfig
DIt shows the status of all pods in the EKS cluster
Step-by-Step Solution
Solution:
  1. Step 1: Understand kubectl contexts

    The command kubectl config get-contexts lists all contexts configured in your kubeconfig file, which represent different clusters or user settings.
  2. Step 2: Relate to EKS usage

    When you configure kubeconfig for EKS, the EKS cluster context is added. This command shows all such contexts including EKS clusters.
  3. Final Answer:

    It lists all available Kubernetes contexts including EKS clusters -> Option A
  4. Quick Check:

    kubectl config get-contexts = lists contexts [OK]
Quick Trick: Get contexts to see all clusters in kubeconfig [OK]
Common Mistakes:
  • Confusing get-contexts with update-kubeconfig
  • Thinking it shows pod status
  • Assuming it deletes contexts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes