Machine-translated by Google. Questions are authored in English.
Top

Containers and Orchestration Questions and Answers

21.

Arrange the stages of a rolling update in order.
1. new pods pass their readiness probes
2. the desired image in the Deployment is changed
3. old pods are terminated
4. the controller creates pods with the new image

Answer: A

Termination waits for readiness so that capacity is never lost during the update. A readiness probe that always passes defeats the protection entirely. Capacity is preserved throughout. Old pods wait for the new to be ready.

Please log in or register to report this question.

22.

Assertion (A): A rolling update depends on the readiness probe being meaningful.
Reason (R): Old pods are removed only once new ones report ready, so a probe that always passes removes the protection.

Answer: B

Correct answer: Both A and R are true, and R is the correct explanation of A

Both are true and the reason gives the dependency. A rolling update advances only as new pods report ready, so the readiness probe is what stops a broken version from replacing a working one. A probe that returns success unconditionally - a bare TCP check on a port the framework opens before it can serve, for instance - lets the rollout proceed through every replica and take the service down.

Please log in or register to report this question.

Answer: C

A privileged container has essentially the access of the host and undoes the isolation entirely. The other three are three of the standard hardening measures. Privilege undoes the isolation. Hardening is layered rather than single.

Please log in or register to report this question.

24.

State whether the following is true or false.
Running a container as root inside the container is entirely safe because of namespace isolation.

Answer: D

Root in the container maps to a privileged context that makes an escape considerably more damaging. Running as an unprivileged user, or using user namespaces, is standard practice. Namespaces are not a security boundary alone.

Please log in or register to report this question.

Answer: A

Images are pushed to it and pulled from it by the nodes that run them. Access control and vulnerability scanning at the registry are part of a supply chain security posture. Nodes pull from it. The registry is part of the supply chain.

Please log in or register to report this question.

26.

Consider the following statements about container image provenance.
1. Images should be scanned for known vulnerabilities before use.
2. Pinning to a digest rather than a mutable tag improves reproducibility.
3. A tag such as latest guarantees a specific image version.

Answer: B

Correct answer: 1 and 2 only

Statements 1 and 2 are sound practice: scanning catches known vulnerabilities before deployment, and pinning to an immutable digest guarantees that the same bytes are deployed every time. Statement 3 is the misconception the second addresses - a tag is a mutable pointer, and latest in particular is whatever was pushed most recently, so the same manifest can yield different images on different days.

Please log in or register to report this question.

27.

Assertion (A): Deployments should pin images by digest rather than by a mutable tag.
Reason (R): A tag can be repointed at a different image without any change to the configuration.

Answer: C

Both are true and the reason gives the risk, and reproducibility of a deployment depends entirely on the reference identifying one image and only one. Tags may be repointed. Reproducibility requires an exact reference.

Please log in or register to report this question.

Answer: D

Resource requests, node selectors, taints and affinity rules all enter the filtering stage. Scoring then prefers among the feasible nodes on spread and utilisation. Filtering comes before scoring. Requests and constraints both enter the first stage.

Please log in or register to report this question.

29.

State whether the following is true or false.
A pod without resource requests may be scheduled onto a node that cannot actually run it well.

Answer: A

Correct answer: True

The scheduler places pods according to their declared requests, so a pod requesting nothing appears to fit anywhere. It will be scheduled onto a node with little real capacity left, and then contends with its neighbours for CPU and memory - and under memory pressure a pod with no request is the first candidate for eviction. Requests are how the scheduler is told what the workload actually needs.

Please log in or register to report this question.

Loading…
Tags: Containers and Orchestration Questions and Answers || Containers and Orchestration MCQ Questions and Answers || Containers and Orchestration GK Questions and Answers || Containers and Orchestration GK MCQ Questions || Containers and Orchestration Multiple Choice Questions and Answers || Containers and Orchestration GK || GK on Containers and Orchestration || Cloud Computing Questions and Answers || Cloud Computing MCQ Questions and Answers || Cloud Computing GK Questions and Answers || GK on Cloud Computing