1 Exampromax - Stuvia US
CKAD Questions and Answers 100% Correct
Answers Already Graded A+
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
Exampromax - Stuvia US
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
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
, 2 Exampromax - Stuvia US
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
Exampromax - Stuvia US
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.
Q:args: [" array", "of", "arguments"]
Ans: The command option in specs also takes an array of arguments (as strings).
Q:- containerPort: 80
Ans: Your container may want to network with other containers. This will
require you to specify a port for the container (port 80 in this example).
Q:config maps
CKAD Questions and Answers 100% Correct
Answers Already Graded A+
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
Exampromax - Stuvia US
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
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
, 2 Exampromax - Stuvia US
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
Exampromax - Stuvia US
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.
Q:args: [" array", "of", "arguments"]
Ans: The command option in specs also takes an array of arguments (as strings).
Q:- containerPort: 80
Ans: Your container may want to network with other containers. This will
require you to specify a port for the container (port 80 in this example).
Q:config maps