0

CKA 1

1 / 10

Question

You are required to SSH into the nodes ik8s-master-0 and ik8s-node-0 to complete the following:


Context:
As the administrator of a small development team, you’ve been asked to set up a Kubernetes cluster for testing a new application.


Task:

  • Use kubeadm to initialize and join the cluster.

  • Every kubeadm command must include --ignore-preflight-errors=all.

  • Configure ik8s-master-0 as the master node.

  • Join ik8s-node-0 to the cluster as a worker node.

  • Finally, return to the base node (node-1).

2 / 10

Question

Create a deployment spec file that will:

  • Launch 7 replicas of the nginx image with the label app_runtime_stage=dev

  • Deployment name: kual00201

  • Save a copy of the spec file to /opt/KUAL00201/spec_deployment.yaml (or .json)

  • After creation, clean up (delete) any Kubernetes API object you produced during this task.

Which of the following satisfies all these requirements?

3 / 10

Question:

You are asked to create a new namespace called development and deploy a pod named nginx using the nginx image in this namespace.
Which of the following command sets will correctly accomplish this?

4 / 10

Question

Create a Pod named nginx using the nginx image, and then list the Pod using kubectl with different levels of verbosity.

5 / 10

Question

Create and configure a service named front-end-service:

  • It should be of type NodePort.

  • It should route traffic to an existing pod named front-end.

Which of the following command sets will accomplish this correctly?

6 / 10

Question:
Create a deployment spec file that will:

  • Launch 7 replicas of the nginx image with the label app_runtime_stage=dev

  • Deployment name: kual00201
    Save a copy of this spec file to /opt/KUAL00201/spec_deployment.yaml (or /opt/KUAL00201/spec_deployment.json).
    When done, clean up (delete) any new Kubernetes API objects created during this task.

Which of the following deployment specs is correct?

7 / 10

Question:

You need to list all persistent volumes sorted by capacity using kubectl, and save the full kubectl output to /opt/KUCC00102/volume_list.
You must use only kubectl‘s built-in features for sorting and not process the output further.

Which of the following commands correctly achieves this?

8 / 10

Question

Print the Pod name and its start time to the file /opt/pod-status.

Which of the following options will correctly perform this task?

9 / 10

Question:
You need to create a BusyBox pod that runs the sleep 3600 command to keep the container running for an hour. Which of the following kubectl commands will correctly create such a pod?

10 / 10

Question:

You have two nodes: ik8s-master-0 and ik8s-node-0. You need to set up a Kubernetes cluster using kubeadm.

  • Configure ik8s-master-0 as the master node.

  • Join ik8s-node-0 to the cluster as a worker node.

  • Use the --ignore-preflight-errors=all option with all kubeadm commands.

  • Perform all tasks by SSH’ing into the respective nodes.

  • After completing, return to the base node (node-1).

Which sequence of commands and steps below correctly accomplishes this?

Your score is

0%