Bird
0
0

Which of the following is the correct syntax to update your kubeconfig for an EKS cluster named my-cluster in region us-west-2?

easy📝 Configuration Q12 of 15
AWS - EKS
Which of the following is the correct syntax to update your kubeconfig for an EKS cluster named my-cluster in region us-west-2?
Akubectl update config --cluster my-cluster --region us-west-2
Baws eks create-kubeconfig --region us-west-2 --cluster my-cluster
Caws eks update-kubeconfig --region us-west-2 --name my-cluster
Daws eks config-update --name my-cluster --region us-west-2
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct command and flags

    The correct command is aws eks update-kubeconfig with flags --region and --name to specify region and cluster name.
  2. Step 2: Match the syntax to the options

    aws eks update-kubeconfig --region us-west-2 --name my-cluster matches the correct syntax exactly, while others use incorrect commands or flags.
  3. Final Answer:

    aws eks update-kubeconfig --region us-west-2 --name my-cluster -> Option C
  4. Quick Check:

    Correct syntax = aws eks update-kubeconfig --region us-west-2 --name my-cluster [OK]
Quick Trick: Use --region and --name flags with update-kubeconfig [OK]
Common Mistakes:
  • Using create-kubeconfig instead of update-kubeconfig
  • Mixing kubectl commands with AWS CLI
  • Incorrect flag names like --cluster or --config-update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes