Test Online Free The Linux Foundation CKAD Exam Questions and Answers

The questions for CKAD were last updated On Nov.30 2022

Get CKAD Full Access
 / 1

Question No : 1
CORRECT TEXT



Task:
A Dockerfile has been prepared at -/human-stork/build/Dockerfile



Answer:Solution:


Question No : 2
CORRECT TEXT



Task
You have rolled out a new pod to your infrastructure and now you need to allow it to communicate with the web and storage pods but nothing else. Given the running pod kdsn00201 -newpod edit it to use a network policy that will allow it to send and receive traffic only to and from the web and storage pods.






Answer:apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: internal-policy
namespace: default
spec:
podSelector:
matchLabels:
name: internal
policyTypes:
- Egress
- Ingress
ingress:
- {}
egress:
- to:
- podSelector:
matchLabels: name: mysql
ports:
- protocol: TCP port: 3306
- to:
- podSelector:
matchLabels: name: payroll ports:
- protocol: TCP port: 8080
- ports:
- port: 53 protocol: UDP
- port: 53 protocol: TCP

Question No : 3
CORRECT TEXT



Task
A Deployment named backend-deployment in namespace staging runs a web application on port 8081.



Answer:Solution:






Text
Description automatically generated


Question No : 4
CORRECT TEXT



Task:
Modify the existing Deployment named broker-deployment running in namespace quetzal so that its containers.
The broker-deployment is manifest file can be found at:



Answer:Solution:






Text
Description automatically generated


Question No : 5
CORRECT TEXT



Task:
Create a Pod named nginx resources in the existing pod resources namespace.
Specify a single container using nginx:stable image.
Specify a resource request of 300m cpus and 1G1 of memory for the Pod’s container.

Answer:Solution:






Text
Description automatically generated with medium confidence



Text
Description automatically generated



Text
Description automatically generated

Question No : 6
CORRECT TEXT



Context
Developers occasionally need to submit pods that run periodically.
Task
Follow the steps below to create a pod that will start at a predetermined time and] which runs to completion only once each time it is started:
• Create a YAML formatted Kubernetes manifest /opt/KDPD00301/periodic.yaml that runs the following shell command: date in a single busybox container. The command should run every minute and must complete within 22 seconds or be terminated oy Kubernetes. The Cronjob namp and container name should both be hello
• Create the resource in the above manifest and verify that the job executes successfully at least once

Answer:Solution:








Question No : 7
CORRECT TEXT



Task:



Answer:Solution:






Text
Description automatically generated



Text
Description automatically generated

 / 1
  TOP 50 Exam Questions
Exam