Page | 1
CKAD Questions and Verified Answers
Q: kubectl api-resources -o name
ANS: command will list the object types currently available on the cluster
Q:
kubectl describe $object_type $object_name
ANS: get information about an object's spec and status
Q:
kubectl get pods
ANS: Gets pods currently running (in the default namespace)
Q:
kubectl get nodes
ANS: gets all nodes currently running in cluster
Q:
kubectl get node $node_name
ANS: Gets name, status, version, etc. about node that is specified
Q:
kubectl get node $node_name -o yaml
ANS: Gets very detailed information about the node that is specified in yaml
information defining the object and it's spec
Q:
Pods
ANS: The basic building blocks of any application running in kubernetes
Q:
Pod
, Page | 2
ANS: Consists of one or more containers and a set of resources shared by those
containers. All containers managed by a Kubernetes cluster are part of a POD
Q:
kubecutl create -f mypod.yml
ANS: create a pod from the yaml definition file
Q:
kubectl apply -f my-pod.yml
ANS: Edit a pod by updating the yaml definition and reapplying it
Q:
kubectl edit pod my-pod
ANS: Edit a pod
Q:
kubectl delete pod my-pod
ANS: Delete a pd
Q:
kubectl get namespaces
ANS: You can get a list of the namespaces in the cluster
Q:
kubectl create ns namespace_name
ANS: command to create a namespace
Q:
namespaces
ANS: virtual cluster that makes it easier to manage environments with man users
across multiple teams or projects
Q:
command: ['echo']
ANS: Under the spec for your container you can specify a command this way.
CKAD Questions and Verified Answers
Q: kubectl api-resources -o name
ANS: command will list the object types currently available on the cluster
Q:
kubectl describe $object_type $object_name
ANS: get information about an object's spec and status
Q:
kubectl get pods
ANS: Gets pods currently running (in the default namespace)
Q:
kubectl get nodes
ANS: gets all nodes currently running in cluster
Q:
kubectl get node $node_name
ANS: Gets name, status, version, etc. about node that is specified
Q:
kubectl get node $node_name -o yaml
ANS: Gets very detailed information about the node that is specified in yaml
information defining the object and it's spec
Q:
Pods
ANS: The basic building blocks of any application running in kubernetes
Q:
Pod
, Page | 2
ANS: Consists of one or more containers and a set of resources shared by those
containers. All containers managed by a Kubernetes cluster are part of a POD
Q:
kubecutl create -f mypod.yml
ANS: create a pod from the yaml definition file
Q:
kubectl apply -f my-pod.yml
ANS: Edit a pod by updating the yaml definition and reapplying it
Q:
kubectl edit pod my-pod
ANS: Edit a pod
Q:
kubectl delete pod my-pod
ANS: Delete a pd
Q:
kubectl get namespaces
ANS: You can get a list of the namespaces in the cluster
Q:
kubectl create ns namespace_name
ANS: command to create a namespace
Q:
namespaces
ANS: virtual cluster that makes it easier to manage environments with man users
across multiple teams or projects
Q:
command: ['echo']
ANS: Under the spec for your container you can specify a command this way.