100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CKAD Review Questions and Answers 100% Solved $12.99   Add to cart

Exam (elaborations)

CKAD Review Questions and Answers 100% Solved

 4 views  0 purchase
  • Course
  • CKAD
  • Institution
  • CKAD

Exam of 19 pages for the course CKAD at CKAD (CKAD Review)

Preview 3 out of 19  pages

  • August 7, 2024
  • 19
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CKAD
  • CKAD
avatar-seller
Dreamer252
CKAD Review

What are three URL's for YAML examples for Liveness Probes, Readiness Probes and
multi-container pods? - answerhttps://kubernetes.io/docs/tasks/configure-pod-
container/configure-liveness-readiness-startup-probes/#define-a-liveness-http-request,
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-
startup-probes/#define-readiness-probes, and https://kubernetes.io/docs/tasks/access-
application-cluster/communicate-containers-same-pod-shared-volume/#creating-a-pod-
that-runs-two-containers.

What is the command to deploy a new nginx webserver? – answer kubectl create
deployment nginx --image=nginx

What is the YAML to add a Liveness Probe on port 80? – answer apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-http
spec:
containers:
- name: liveness
image: registry.k8s.io/liveness
args:
- /server
livenessProbe:
httpGet:
path: /healthz
port: 80
httpHeaders:
- name: Custom-Header
value: Awesome
initialDelaySeconds: 3
periodSeconds: 3

What is the YAML to add a ReadinessProbe on port 8080? - answerapiVersion: v1
kind: Pod
metadata:
name: goproxy
labels:
app: goproxy
spec:

,containers:
- name: goproxy
image: registry.k8s.io/goproxy:0.1
ports:
- containerPort: 8080
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 15
periodSeconds: 20

What is the command to test LivenessProbes and Readiness Probes? - answerkubectl
describe pod & kubectl logs

What is the command to output the container logs? - answerkubectl logs

What is the command to user a YAML file to create a pod? - answerkubectl apply -f <file
containing pod info>

What is the YAML to determine resource requirements for a pod? - answerapiVersion:
v1
kind: Pod
metadata:
name: frontend
spec:
containers:
- name: app
image: images.my-company.example/app:v4
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
- name: log-aggregator
image: images.my-company.example/log-aggregator:v6
resources:
requests:
memory: "64Mi"
cpu: "250m"

, limits:
memory: "128Mi"
cpu: "500m"

What is the YAML to create pods with labels? - answerkubectl run --image= --
labels==,=,...

What is the command to delete pods with a specific selector value? - answerkubectl
delete pods -l =
Replace <selector-key> and <selector-value> with the actual key and value of the
selector you want to use. This command will delete all pods that match the specified
selector.

What is the command to create a cronjob in Kubernetes? - answerkubectl create
cronjob --image= --schedule= --

What are some approved URL's to review using persistent and ephemeral volumes? -
answerhttps://kubernetes.io/docs/concepts/storage/persistent-volumes/
https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-
storage/
https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-initialization/
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

What is the command to create deployments? - answerkubectl create deployment --
image=
Replace <deployment-name> with the desired name for your deployment, and <image-
name> with the name of the Docker image you want to use. This command will create a
new deployment with the specified name and image.

What is the command to update deployments? - answerkubectl set image deployment/
=
Replace <deployment-name> with the name of the deployment you want to update,
<container-name> with the name of the container you want to update, and <new-
image> with the name of the new Docker image you want to use. This command will
update the specified container's image in the specified deployment.

What is the command to troubleshoot deployments? - answerkubectl command kubectl
describe deployment <deployment-name>

What are URL's for YAML examples to create a ConfigMap in Kubernetes? -
answerhttps://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-
configmap/

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Dreamer252. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79879 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart