Linux CKA
Q: 1
SIMULATION
Score: 7%
Task
Reconfigure the existing deployment front-end and add a port specification named http exposing
port 80/tcp of the existing container nginx.
Create a new service named front-end-svc exposing the container port http.
Configure the new service to also expose the individual Pods via a NodePort on the nodes on which
they are scheduled.
Task
Reconfigure the existing deployment front-end and add a port specification named http exposing
port 80/tcp of the existing container nginx.
Create a new service named front-end-svc exposing the container port http.
Configure the new service to also expose the individual Pods via a NodePort on the nodes on which
they are scheduled.Your Answer
Q: 2
SIMULATION
Create a pod with image nginx called nginx and allow traffic on port 80
Your Answer
Q: 3
SIMULATION
Schedule a pod as follows:
Name: nginx-kusc00101
Image: nginx
Node selector: disk=ssd
Your Answer
Q: 4
SIMULATION
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.
Your Answer
Q: 5
SIMULATION
List the nginx pod with custom columns POD_NAME and POD_STATUS
Your Answer
Q: 6
SIMULATION
Monitor the logs of pod foo and:
Extract log lines corresponding to error
unable-to-access-website
Write them to/opt/KULM00201/foo


Your Answer
Q: 7
SIMULATION
Score: 5%
Task
Monitor the logs of pod bar and:
• Extract log lines corresponding to error file-not-found
• Write them to /opt/KUTR00101/bar
Task
Monitor the logs of pod bar and:
• Extract log lines corresponding to error file-not-found
• Write them to /opt/KUTR00101/barYour Answer
Q: 8
SIMULATION
Create a deployment spec file that will:
Launch 7 replicas of the nginx Image with the labelapp_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.
Your Answer
Q: 9
SIMULATION Score:7%
Context An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement. Task Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command: /bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container. 
Your Answer
Q: 10
SIMULATION
Get IP address of the pod – “nginx-dev”
Your Answer
Question 1 of 10