Certified Kubernetes Administrator (CKA) Practice Exam: Part 7

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

This lab provides practice scenarios to help prepare you for the Certified Kubernetes Administrator (CKA) Exam. You will be presented with tasks to complete, as well as server(s) and/or an existing Kubernetes cluster to complete them in. You will need to use your knowledge of Kubernetes to successfully complete the provided tasks, much like you would on the real CKA exam. Good luck!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a PersistentVolume
  1. Create a PersistentVolume called host-storage-pv. Configure this PersistentVolume so that volumes that use it can be expanded in the future.

    Note: This may require you to create additional objects.

  2. Configure the PersistentVolume to use a hostPath for storage, located at /etc/data.
  3. Configure the PersistentVolumes so that it can be automatically reused if all claims are deleted.
Create a Pod That Uses the `PersistentVolume` for Storage
  1. Create a pod called pv-pod in the auth Namespace. Configure this Pod so that it uses the host-storage-pv PersistentVolume for storage.

    Note: This will require the creation of a PersistentVolumeClaim.

  2. Name the PersistentVolumeClaim host-storage-pvc. Give your PersistentVolumeClaim a size of 100Mi.

  3. Use the busybox image for this pod, and configure it to run the command sh -c while true; do echo success > /output/output.log; sleep 5; done.

  4. Mount the volume that uses the PersistentVolume for storage, such that the /output directory ultimately writes to the PersistentVolume.

Expand the `PersistentVolumeClaim`
  1. Expand the PersistentVolumeClaim so that the requested storage size is 200Mi.

Additional Resources

This question uses the acgk8s cluster. After logging in to the exam server, switch to the correct context with the command kubectl config use-context acgk8s.

Each of the objectives represents a task which you will need to complete using the available cluster and server(s). Read each objective carefully and complete the task specified.

For some objectives, you may need to ssh into other nodes or servers from the exam server. You can do so using the hostname/node name, i.e. ssh acgk8s-worker1.

Note: You cannot ssh into another node, or use kubectl to connect to the cluster, from any node other than the root node. Once you have completed the necessary tasks on a server, be sure to exit and return to the root node before proceeding.

If you need to assume root privileges on a server, you can do so with sudo -i.

You can run the verification script located at /home/cloud_user/verify.sh at any time to check your work!

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?