← All interview questions

Skill Zuno · skillzunos.com · Cloud

CKA interview questions

Prepare for CKA interviews on Skill Zuno. This practice book covers CKA interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open CKA on Skill Zuno

Also see the CKA tutorial.

The Certified Kubernetes Administrator (CKA) exam from the CNCF and the Linux Foundation tests the skills needed to install, configure and operate Kubernetes clusters. It is a hands-on exam where you solve tasks on real clusters from the command line. Preparation covers cluster installation with kubeadm, upgrades, etcd backup and restore, scheduling, networking, storage, RBAC and troubleshooting.

Sample CKA interview questions

How do you back up etcd?

Use etcdctl snapshot save with the endpoint and the CA, certificate and key files, which you can find in the etcd static pod manifest. Restore with etcdutl snapshot restore into a new data directory.

What is the difference between a taint and node affinity?

A taint on a node repels pods unless they have a matching toleration. Node affinity is set on a pod to attract it to nodes with certain labels.

How do you safely take a node out for maintenance?

kubectl cordon stops new pods being scheduled; kubectl drain --ignore-daemonsets evicts existing pods; kubectl uncordon returns the node to service afterwards.

What is the difference between a Role and a ClusterRole?

A Role grants permissions within one namespace. A ClusterRole is cluster-wide and can cover non-namespaced resources such as nodes. Bindings attach either to users, groups or ServiceAccounts.

A node shows NotReady. Where do you start?

Check kubectl describe node, then on the node check systemctl status kubelet and journalctl -u kubelet, the container runtime, and the CNI plugin.

What you can practice

  • CKA interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Cloud topics alongside CKA on skillzunos.com

More Cloud interview questions

All interview questions