ExamGecko

Linux Foundation CKA Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Monitor the logs of pod foo and:

Extract log lines corresponding to error unable-to-access-website

Write them to /opt/KULM00201/foo

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

List all persistent volumes sorted by capacity, saving the full kubectl output to /opt/KUCC00102/volume_list. Use kubectl 's own functionality for sorting the output, and do not manipulate it any further.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place.

Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Perform the following tasks:

Add an init container to hungry-bear (which has been defined in spec file /opt/KUCC00108/pod-spec-KUCC00108.yaml

)

The init container should create an empty file named

/workdir/calm.txt

If /workdir/calm.txt is not detected, the pod should exit

Once the spec file has been updated with the init container definition, the pod should be created

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified):

nginx + redis + memcached.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Schedule a pod as follows:

Name: nginx-kusc00101

Image: nginx

Node selector: disk=ssd

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Create a deployment as follows:

Name: nginx-app

Using container nginx with version 1.11.10-alpine

The deployment should contain 3 replicas

Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.

Finally, rollback that update to the previous version 1.11.10-alpine.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Create and configure the service front-end-service so it's accessible through NodePort and routes to the existing pod named front-end.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Create a pod as follows:

Name: mongo

Using Image: mongo

In a new Kubernetes namespace named: my-website

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

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 you are done, clean up (delete) any new Kubernetes API object that you produced during this task.

A.
See the solution below.
A.
See the solution below.
Answers
Suggested answer: A

Explanation:

solution

Total 67 questions
Go to page: of 7