Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Pass the CKA exam with these 100 practice questions
Rating: 4.1 out of 5(223 ratings)
915 students

Pass the CKA exam with these 100 practice questions

Learn Kubernetes with 100 questions
Created byBenjamin Huis
Last updated 11/2023
English

What you'll learn

  • Cluster Architecture, Installation & Configuration: Learn how to set up and configure Kubernetes clusters like a pro.
  • Workloads & Scheduling: Understand how to manage and schedule workloads efficiently within Kubernetes.
  • Services & Networking: Master the art of networking and service management in a Kubernetes environment.
  • Storage: Discover the best practices for handling storage in Kubernetes and ensure seamless data management.
  • Troubleshooting: Develop the skills to troubleshoot common issues that may arise in a Kubernetes setup.

Course content

1 section100 lectures3h 28m total length
  • Update the image of the deployment1:26
  • Change the static pod path1:04

    Update the static pod path by locating and editing the kubelet config yaml with nano, then save to manage all static pods on the node, which recreate after deletion.

  • Upgrade the cluster1:53
  • Create a deployment with replicas1:41
  • Create a pod with labels1:06

    Create a pod and attach labels to organize and select subsets of objects. Use kubectl run to define the pod name and image, then kubectl describe to verify the labels.

  • Create a pod in a namespace1:15
  • Create a pod and expose it1:54
  • Upgrade a deployment by using rolling update3:42
  • Create a pod with a command4:05
  • Taint a node to be unschedulable4:41

    learn how to taint a node to make it unschedulable and use tolerations to schedule pods, with kubectl commands and YAML configuration to verify scheduling.

  • Create a new service account, clusterrole and clusterrolebinding3:53
  • Create a NetworkPolicy that allows all pods in the namespace to use one port4:23

    Isolate all pods in a namespace by allowing only port 80 via an ingress network policy, created from a YAML file and verified with kubectl describe.

  • List all the internal IP's of all the nodes in the cluster1:55
  • Create a multipod with two containers and add a command2:07
  • Create a new user and grant him access to the cluster8:41
  • Create a service from the pod and run a DNS lookup to check the service2:10
  • Create a secret and mount it to the pod3:28
  • List all the the persistent volumes sorted by capacity1:43

    Learn to sort persistent volumes by capacity with kubectl, using the Kubernetes documentation and cheat sheet to copy the command and write results to a text file.

  • Find the pod which is consuming the most CPU1:34

    Learn to identify the pod with the highest cpu usage using kubectl top, sorting by cpu for pods labeled environment=process, and capture results to a text file.

  • Use JSON path to get all the node names1:56
  • Show the logs from the container1:23
  • Create a new ingress resource and expose the service on a path2:57

    Create and configure an ingress resource to expose service on path, copy YAML from docs, set namespace and service name, use port 5678, and deploy with kubectl create -f.

  • Overwrite the label of the pod with a value1:22

    Override the pod label with kubectl label using the override flag, set environment to true, and verify the new label with a describe command.

  • Upgrade the image in the deployment, check the history and roll back1:55
  • Find out which pods are available with the label in the cluster1:08
  • Find out why a pod is failing and fix the issue2:07
  • Create a pod that will only be scheduled on a node with a specific label2:52
  • Create a pod which uses a persistent volume for storage4:39

    Learn to create and attach a persistent volume to a pod by configuring a persistent volume claim and mounting it, then verify the binding.

  • Remove the taint added to the node1:42
  • Take a backup and restore ETCD7:10

    Learn to back up and restore etcd in a Kubernetes environment by verifying data across nodes, capturing etcd snapshots, and restoring from backup on minikube.

  • Schedule a pod on the node by using tolerations2:32
  • Apply autoscaling to the deployment1:25
  • Check how many nodes are in ready state1:18
  • Create a pod and set the environment variable1:48

    Create and set an environment variable in a pod with kubectl, then verify it by echoing inside the container; secrets or config maps are the usual store.

  • Create a configmap and add it to the pod3:28
  • List all the events sorted by the timestamp1:44
  • Create a pod with a non-persistent volume3:19
  • Investigate the node and bring it back to ready state1:46
  • Make the node unavailable and reschedule all the pods on it1:48
  • Create a pod which echo's a sentence, exists and is deleted automatically1:13
  • Annotate an existing pod and use a value1:21

    Explore how to apply annotations to a running Kubernetes pod to attach non-identifying metadata, compare annotations with labels, and retrieve the annotated values.

  • Get a list of all the pods in all the namespaces1:09

    Learn to retrieve all pods across all namespaces with kubectl get pods --all-namespaces, save the output to a text file, and verify the results.

  • Update the password in the existing configmap3:29
  • Troubleshoot a pod which is not scheduling on the node and fix the issue2:30
  • Create a network policy and allow traffic from a pod to two services2:20

    Create a Kubernetes network policy in yaml to allow a pod to egress to two services on ports 8080 and 5432, using an internal policy in the default namespace.

  • Create a pod and set "SYS_TIME", and let it sleep for one hour2:49
  • Create a clusterrole and a clusterrolebinding1:58

    Create a cluster role and a cluster role binding by defining their names and adding get, watch, and list for pods, then verify by listing pods.

  • Get the IP address of a pod1:44
  • Find out the version of the cluster0:45
  • Change the mountpath of a container in a statefulset1:48
  • Create a cronjob which prints the date and "Running" every minute2:24
  • Use JSONPATH and get a list of all the pods awith name and namespace1:48
  • Create a networkpolicy2:13

    Label the namespace, write and save a network policy in YAML, then create the policy from the file to practice Kubernetes networking.

  • Create a pod with container port 802:44
  • Monitor the logs of a pod1:03
  • Rollback a deployment to revision 11:16
  • List a pod with custom columns1:32
  • For a pod, set the CPU memory requests and limits2:32

    Explore resource management in Kubernetes by setting cpu and memory requests and limits for a pod, updating a yaml file, and recreating the pod with kubectl to verify resource changes.

  • Create a pod with a non-persistent storage2:04
  • Troubleshoot a failed pod and make it running again2:19

    Troubleshoot a failed pod by checking status, using describe to identify issues, fix a YAML typo, delete the old pod, recreate it from the updated file, and verify it runs.

  • Expose a pod internally and create a test-pod for look-up2:05
  • Create a DaemonSet2:24

    Create a daemonset by adapting a deployment YAML, deploy a pod on all nodes, and verify it runs on every node across a three-node cluster.

  • Fix a non-schedulable node2:11
  • Get all the objects in all the namespaces1:02

    Learn to list all objects in a cluster with kubectl get all all namespaces, spotting what's running and what's not, and save the output to a text file.

  • Create a pod and assign it to the node1:52
  • Find all the pods with a specific label0:53

    Learn to find all pods with a specific label using kubectl get pods, save the output to a label text file, and verify the file.

  • Create a taint on the node1:21
  • Create a pod and set tolerations2:29
  • Check the image version of a pod without using the describe command1:09
  • Create a pod with a sidecar container for logging2:04

    Create a pod with a sidecar container for logging by adapting a Kubernetes sidecar example from the documentation, editing the yaml file, deploying with kubectl, and verifying it's running.

  • Find out where the Kubernetes master and KubeDNS are running at0:44
  • Print the pod names and start times to a file1:17
  • Create a pod which runs a command and sleeps for 100 seconds1:58
  • Create a pod and specify a CPU request and a CPU limit2:09
  • Scale a deployment to 5 replicas1:13
  • List all the secrets and configmaps in the cluster in all namespaces1:04
  • Create a NetworkPolicy which denies all the ingress traffic1:43

    The lecture demonstrates denying all ingress traffic by applying a default deny network policy, creating a policy file with kubectl create f, and verifying the result.

  • Create an init container in a pod2:28
  • List the logs of the pod and search for the pattern "start"1:03

    Learn to collect logs from pods, verify the dev green pod is running, grab the pod name, search for the pattern 'start', and save and verify the output.

  • Expose the deployment1:34
  • Create two pods with different labels1:01
  • Create a clusterrole, service account and rolebinding2:33
  • Find the static pod path1:38

    Locate the static pod path by sshing into the minikube node, using ps6 to find the config file, copy it, extract the pod path, and verify.

  • Delete a pod without any delay1:04
  • Grep the current context and write it to a file1:16
  • Get a list of all the pods which were recently deleted2:47

    Identify recently deleted pods by tracking events with cube CTL get events, filter results with cut, save output to recent delete text, and verify findings.

  • Troubleshoot the pod and fix the issue2:04
  • Create a pod with a storage which lasts as long as the lifetime of the pod1:30
  • Create a pod and add the "runAsUser" and "fsGroup"1:35

    Create a pod and define a security context with runAsUser and fsGroup to improve privilege and access control. Save the manifest, apply with kubectl -f, and verify.

  • Troubleshoot and fix the kubeconfig file1:38
  • Create a pod and set "NET_ADMIN"1:44
  • Delete all the pods with a specific label1:01
  • Create a multipod with 3 containers1:45

    Master three-container pod setup by editing and saving a multi-part yaml, deleting and adding resources, then creating the pod with kubectl from a yaml file.

  • Replace a pod with an existing yaml file and verify after1:29
  • Change the requested storage size of the PersistentVolumeClaim2:09
  • Edit an existing pod and add a command1:50
  • Add a readiness probe to an existing deployment2:19
  • Get all contexts and write it to a file1:03
  • Create a replicaset which has 3 replicas2:14

    Create and configure a replica set using a deployment template; edit the yaml to three replicas, remove the strategy, deploy, and verify three pods stay running after deleting one.

  • List all the control plane components and write them to a file0:53

    List all control plane components by running kubectl get pods in the kube-system namespace, save the output to a text file, and verify the results.

Requirements

  • You need a computer or virtual machine
  • You need Minikube or a Kubernetes testing cluster installed
  • You need to use a program to organize your notes like OneNote

Description

Welcome to the Ultimate Practical Kubernetes Course:


“Learn Kubernetes with 100 Questions.


Are you ready to learn about Kubernetes and become a pro? Look no further! In this course, we’ll guide you through 100 hands-on practice questions that cover every aspect of working with Kubernetes. Say goodbye to boring theory and complicated guides. With our course, all you have to do is sit back, relax, and follow the instructor’s easy-to-understand steps to complete the assignments.


Become CKA Certified!


Are you aiming to achieve the prestigious Certified Kubernetes Administrator (CKA) certification? You’re in luck! Our course is an excellent preparation tool for the CKA exam and to learn Kubernetes. We have meticulously crafted practice questions that closely resemble those you’ll encounter in the exam. Moreover, we’ve gone the extra mile to create an immersive experience in our videos, simulating the real exam scenario as closely as possible.


What will you learn?


We’ve got you covered on all the essential topics to make you a Kubernetes expert:


  • Cluster Architecture, Installation & Configuration: Learn how to set up and configure Kubernetes clusters like a pro.

  • Workloads & Scheduling: Understand how to manage and schedule workloads efficiently within Kubernetes.

  • Services & Networking: Master the art of networking and service management in a Kubernetes environment.

  • Storage: Discover the best practices for handling storage in Kubernetes and ensure seamless data management.

  • Troubleshooting: Develop the skills to troubleshoot common issues that may arise in a Kubernetes setup.


Who this course is for:

  • Students who want learn how to use Kubernetes
  • Students who want to pass the CKA exam