0
0
AWScloud~10 mins

kubectl configuration for EKS in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to update your kubeconfig for an EKS cluster named "my-cluster".

AWS
aws eks update-kubeconfig --name [1]
Drag options to blanks, or click blank then click option'
Aeks-cluster
Bdefault
Cmy-cluster
Dcluster1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a generic or wrong cluster name.
Forgetting to specify the cluster name.
2fill in blank
medium

Complete the command to specify the AWS region "us-west-2" when updating kubeconfig.

AWS
aws eks update-kubeconfig --name my-cluster --region [1]
Drag options to blanks, or click blank then click option'
Aus-east-1
Bap-south-1
Ceu-central-1
Dus-west-2
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong region.
Omitting the region flag when needed.
3fill in blank
hard

Fix the error in the command to update kubeconfig for cluster "prod-cluster" in region "eu-west-1".

AWS
aws eks update-kubeconfig --name prod-cluster --region [1]
Drag options to blanks, or click blank then click option'
Aeu-west-1
Bus-west-2
Ceu-west-2
Dus-east-1
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing similar region codes.
Typing region names incorrectly.
4fill in blank
hard

Fill both blanks to set the kubeconfig context to the EKS cluster named "dev-cluster" in region "ap-northeast-1".

AWS
aws eks update-kubeconfig --name [1] --region [2]
Drag options to blanks, or click blank then click option'
Adev-cluster
Bprod-cluster
Cap-northeast-1
Dus-east-1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing cluster names and regions.
Using incorrect region codes.
5fill in blank
hard

Fill all three blanks to update kubeconfig for cluster "test-cluster" in region "us-east-1" and specify the profile "dev-profile".

AWS
aws eks update-kubeconfig --name [1] --region [2] --profile [3]
Drag options to blanks, or click blank then click option'
Atest-cluster
Bus-east-1
Cdev-profile
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to specify the profile when multiple exist.
Using wrong cluster names or regions.