Exhibit:
Task
A Deployment named backend-deployment in namespace staging runs a web application on port 8081.
Solution:
Solution:
Text Description automatically generated
Does this meet the goal?
Correct Answer:
A
Exhibit:
Context
You are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount. Task
Please complete the following:
• Create a ConfigMap named another-config containing the key/value pair: key4/value3
• start a pod named nginx-configmap containing a single container using the
nginx image, and mount the key you just created into the pod under directory /also/a/path
Solution:
Solution:
Does this meet the goal?
Correct Answer:
A
Exhibit:
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.
Solution:
Solution:
Text Description automatically generated with medium confidence
Text Description automatically generated
Text Description automatically generated
Does this meet the goal?
Correct Answer:
A
Exhibit:
Task:
Solution:
Solution:
Text Description automatically generated
Text Description automatically generated
Does this meet the goal?
Correct Answer:
A
Exhibit:
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.
Solution:
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
Does this meet the goal?
Correct Answer:
A