0
0
Kubernetesdevops~20 mins

Kubernetes dashboard - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kubernetes Dashboard Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Accessing Kubernetes Dashboard Token
You run the command kubectl -n kubernetes-dashboard get secret and see a secret named kubernetes-dashboard-token-abcde. What command will correctly display the token value for this secret?
Akubectl -n kubernetes-dashboard get secret kubernetes-dashboard-token-abcde -o json | jq '.data.token'
Bkubectl -n kubernetes-dashboard describe secret kubernetes-dashboard-token-abcde
Ckubectl -n kubernetes-dashboard get secret kubernetes-dashboard-token-abcde -o jsonpath='{.data.token}' | base64 --decode
Dkubectl -n kubernetes-dashboard get secret kubernetes-dashboard-token-abcde -o yaml
Attempts:
2 left
💡 Hint
The token is stored in base64 encoded form inside the secret's data field.
🧠 Conceptual
intermediate
1:30remaining
Purpose of Kubernetes Dashboard
What is the primary purpose of the Kubernetes Dashboard in a cluster?
AIt automatically scales pods based on CPU usage.
BIt provides a web-based user interface to manage and monitor Kubernetes cluster resources.
CIt manages network policies between pods.
DIt schedules pods onto nodes based on resource availability.
Attempts:
2 left
💡 Hint
Think about what a dashboard usually does in software.
Troubleshoot
advanced
2:00remaining
Dashboard Not Accessible Externally
You deployed the Kubernetes Dashboard with default settings. When trying to access it from outside the cluster, the browser cannot connect. What is the most likely reason?
AThe dashboard pod crashed due to insufficient CPU resources.
BThe dashboard uses an outdated API version and refuses connections.
CThe dashboard requires a LoadBalancer service but was deployed with NodePort.
DThe dashboard service is of type ClusterIP, which is only accessible inside the cluster.
Attempts:
2 left
💡 Hint
Check the service type and how it exposes the dashboard.
🔀 Workflow
advanced
2:30remaining
Steps to Securely Access Kubernetes Dashboard
Which sequence of steps correctly describes how to securely access the Kubernetes Dashboard from your local machine?
A1,2,3,4
B2,1,3,4
C1,3,2,4
D1,4,2,3
Attempts:
2 left
💡 Hint
Think about creating credentials before starting the proxy and then using the token to login.
Best Practice
expert
3:00remaining
Best Practice for Dashboard Access in Production
What is the best practice to securely expose the Kubernetes Dashboard in a production environment?
AUse kubectl proxy with role-based access control and strong authentication tokens.
BDisable the dashboard entirely and manage the cluster only via CLI.
CDeploy the dashboard with NodePort and allow anonymous access from any IP.
DExpose the dashboard service as LoadBalancer with no authentication for easy access.
Attempts:
2 left
💡 Hint
Think about minimizing exposure and enforcing authentication.