Kubernetes CKA sample exam question 10 with answer

Question
Get the node node01 in JSON format and store it in a file at /opt/outputs/nodes-fz456723je.json

Answer
It is pretty simple:

kubectl get node node01 -o json > /opt/outputs/nodes-fz456723je.json