350-901 · Question #92
Refer to the exhibit. A kubeconfig file to manage access to Kubernetes clusters is shown. How many Kubernetes clusters are defined in the file, and which cluster FS accessed using username/password…
The correct answer is D. two clusters; scratch. The kubeconfig file defines two clusters, and the 'scratch' cluster is configured to use username and password credentials rather than certificate-based authentication.
Question
Options
- Athree clusters; scratch
- Bthree clusters; development
- Ctwo clusters; development
- Dtwo clusters; scratch
How the community answered
(54 responses)- A7% (4)
- B19% (10)
- C4% (2)
- D70% (38)
Why each option
The kubeconfig file defines two clusters, and the 'scratch' cluster is configured to use username and password credentials rather than certificate-based authentication.
The file contains only two cluster definitions in its 'clusters' list, not three, so selecting three clusters is incorrect regardless of the authentication method identified.
The file contains only two cluster definitions, not three; additionally, the development cluster uses certificate-based authentication, not username/password.
While the cluster count of two is correct, the development cluster authenticates using a client certificate and private key, not username/password credentials.
A kubeconfig file can contain multiple cluster, user, and context definitions; when exactly two cluster entries appear in the 'clusters' section, the count is two. The 'scratch' cluster's associated user entry specifies 'username' and 'password' fields for authentication, whereas the 'development' cluster's user entry references a client certificate and key, confirming certificate-based auth for development and username/password for scratch.
Concept tested: Kubernetes kubeconfig cluster and authentication configuration
Source: https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
Community Discussion
No community discussion yet for this question.