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

Containers and Orchestration Questions and Answers

11.

Assertion (A): A Service is needed even though pods have addresses of their own.
Reason (R): Pod addresses change whenever pods are replaced, while a Service address is stable.

Answer: C

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

Both are true and the reason gives the necessity. Pods are ephemeral: rescheduling, scaling and rolling updates all replace them, and each replacement gets a new address. A Service provides a stable name and virtual address in front of whichever pods currently match its selector, so callers need not track the churn behind it.

Please log in or register to report this question.

Answer: D

Controllers observe the difference and act to close it, repeatedly and indefinitely. This is what makes the system self healing when a node or pod is lost. The loop never stops running. Failure is corrected without intervention.

Please log in or register to report this question.

13.

Assertion (A): Kubernetes recreates a pod automatically when its node fails.
Reason (R): The controller observes that the actual replica count is below the declared one and acts to correct it.

Answer: A

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

Both are true and the reason describes the control loop that makes it happen. Kubernetes is declarative: the ReplicaSet controller continuously compares the observed number of ready pods with the number declared and creates or deletes pods to close the gap. Recovery from a node failure is not a special case but simply that loop noticing a discrepancy.

Please log in or register to report this question.

14.

Consider the following statements about declarative configuration.
1. The user declares the desired state rather than the steps to reach it.
2. The controller works continuously to close any gap.
3. A declarative system executes each instruction exactly once.

Answer: B

The first two are correct. The third describes an imperative system, and the continuous reconciliation is precisely what distinguishes the declarative approach. Intent rather than steps. The gap is closed again and again.

Please log in or register to report this question.

Answer: C

The orchestrator runs what it is given and has no view of what the code does. The other three are exactly the operational concerns it exists to handle. The code is the developer's business. Operations are what it takes over.

Please log in or register to report this question.

Answer: D

Correct answer: should receive traffic

A readiness probe answers whether the pod can serve requests now; failing it removes the pod from its Service’s endpoints without restarting it, so a pod still warming its cache or waiting on a dependency stops receiving traffic and then resumes. The liveness probe is the separate one that decides whether the container should be restarted, and confusing the two produces restart loops during slow startups.

Please log in or register to report this question.

17.

Assertion (A): Liveness and readiness probes serve different purposes and should be configured separately.
Reason (R): One decides whether to restart the container and the other whether to send it traffic.

Answer: A

Both are true and the reason gives the distinction, and using the same endpoint for both is a common source of restart loops during slow startup. Separate endpoints are safer. One decides restarts and the other traffic.

Please log in or register to report this question.

Answer: B

Correct answer: identity and storage must persist

A stateless replica is interchangeable, which is what the whole scheduling model assumes. A stateful one is not: it needs a stable network identity, its own persistent volume that follows it, and often an ordered start-up and shutdown so that a cluster forms correctly. StatefulSets exist to provide those guarantees, and they are more constrained than a Deployment precisely because of them.

Please log in or register to report this question.

19.

Consider the following statements about StatefulSets.
1. They give each pod a stable identity and ordinal.
2. They associate persistent storage with each pod.
3. They make any database trivially safe to run in Kubernetes.

Answer: C

The first two are correct. The third is optimistic, since backup, failover and upgrade of a database remain hard problems whatever the orchestrator provides. The primitives help but do not solve it. Stateless services are far simpler.

Please log in or register to report this question.

20.

A Deployment declares 5 replicas and one node hosting 2 of them fails. How many pods will the controller create?

Answer: D

Correct answer: 2

The declared state is 5 replicas and 3 survive, so the controller creates the 2 that are missing - it reconciles the difference rather than recreating the whole set. Whether those 2 can actually be placed depends on capacity elsewhere in the cluster; without it they remain pending, which is why cluster autoscaling is usually paired with this behaviour.

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