What is the main purpose of running the command aws eks update-kubeconfig --name cluster_name?
Think about what kubectl needs to connect to a cluster.
The aws eks update-kubeconfig command fetches cluster details and updates the local kubeconfig file so kubectl can communicate with the EKS cluster.
After running aws eks update-kubeconfig --name my-cluster, which command correctly switches kubectl to use the new EKS cluster context?
Look for the correct kubectl command to change context.
The kubectl config use-context command switches kubectl to the specified cluster context. The context name for EKS is usually the cluster name.
Which statement best describes how IAM roles are used when configuring kubectl to access an EKS cluster?
Think about how AWS secures API access with temporary credentials.
kubectl uses the aws-iam-authenticator plugin which leverages IAM roles to generate temporary tokens for authenticating to the EKS API server.
What is the best practice to secure your kubeconfig file that contains EKS cluster access information?
Think about who should have access to sensitive credentials.
Restricting kubeconfig file permissions prevents unauthorized users from accessing cluster credentials, enhancing security.
If you manually edit the kubeconfig file to change the EKS cluster endpoint to an incorrect URL, what will happen when you run kubectl get pods?
Consider what happens if the API server address is wrong.
kubectl relies on the endpoint URL to connect to the cluster API server. An incorrect URL causes connection failure.