Ckad mock exam 3, ex4

I was marked as not having achieved the following.
I do not know why.


Is the alpha container use alpine image?

Is the alpha container environment variable well configured?

Does the beta container use nginx:1.17 image?

Is the beta container expose at port 8080?

Here is my yaml:

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: cuda-pod
  name: cuda-pod
  namespace: ckad-multi-containers
spec:
  containers:
  - image: nginx:1.17
    name: beta
    ports:
    - containerPort: 8080
  - image: alpine
    name: alpha
    env:
    - name: release
      value: stable
    command: ["/bin/sh","-c","sleep 3600"]
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Always
status: {}

Could you please give me a link to the exam? I’m not finding this question as Q4 in either the regular mock exam #2 nor is it in the Ultimate Mock Exams.

oh, sorry about that. it should be Mock Exam 3.

I expect the grader is being a bit strict. The question says:

  • The first container named alpha runs alpine image and has release=stable environment variable.

  • The second container named beta runs nginx:1.17 image and is exposed at port 8080.

If you look at your YAML, you have beta first and alpha second. So this would explain the ding.

Yeah, I really didn’t think that mattered.
Is that the sort of thing I should be aware of for the exam?
It seems overly pedantic but if that’s just how it’s done then I will just live with it.

What do you think?

If they discuss ordering of containers, it’s probably safest to put them in that order. I typically do that, and if the containers are listed in a particular order, I try to preserve that. Might not matter, but you never know, really.