Timedora
Free Practice Quiz Question List

Docker and Kubernetes Container Operations Online Quiz Questions

Use this free practice quiz with 10 questions to review Docker and Kubernetes Container Operations, test your knowledge, and prepare for your next test or exam.

10 questions
01
Choose one
1 point

Which statement accurately describes the possible effect of a Docker hard memory limit?

  1. A

    A CPU limit guarantees a minimum amount of CPU capacity for the container.

  2. B

    A hard memory limit can result in a process being killed if it exceeds the allowance.

  3. C

    A softer memory reservation guarantees that memory use stays below the reserved value.

  4. D

    Limits that are too low affect resource use but cannot cause failures or slow responses.

02
Choose one
1 point

You want a new Docker container to run in the background. Which option does docker run use for this?

  1. A

    --name

  2. B

    -p

  3. C

    -d

  4. D

    --mount

03
Choose one
1 point

A Docker host’s json-file logs are growing and consuming too much disk space. What is an appropriate way to manage this?

  1. A

    Configure log rotation or use a driver that manages log storage.

  2. B

    Rely on the default driver because it automatically prevents unlimited log growth.

  3. C

    Change the daemon's default logging configuration, which will also update existing containers.

  4. D

    Stop collecting container logs so they cannot use disk space.

04
Choose one
1 point

An application must retain its data even if its container is replaced. Which configuration choice supports that goal?

  1. A

    An environment variable

  2. B

    A command argument

  3. C

    A container name

  4. D

    A named volume

05
Choose one
1 point

Which statement best describes how operators typically manage container workloads in Kubernetes?

  1. A

    Operators should manually start every container and avoid managing workloads.

  2. B

    Operators generally manage workloads, with Kubernetes running containers inside Pods.

  3. C

    Kubernetes manages only individual images and does not track container states.

  4. D

    A Pod is a host port mapping used to connect to a container.

06
Choose one
1 point

A Kubernetes container is repeatedly restarting and is reported as CrashLoopBackOff. What is the best next step for diagnosing the cause?

  1. A

    Increase the memory limit immediately, since that state proves memory exhaustion.

  2. B

    Treat the restart state itself as the root cause and make no further checks.

  3. C

    Inspect logs and events because several different problems can cause repeated restarts.

  4. D

    Change the image tag first, since that is the standard fix for repeated restarts.

07
Choose one
1 point

After changing Docker’s default logging configuration, which containers are affected by that change?

  1. A

    It affects newly created containers, not existing ones.

  2. B

    It immediately changes the logging driver for every existing container.

  3. C

    It affects only containers that are currently running, not newly created ones.

  4. D

    It changes how application output is written to standard output and standard error.

08
Choose one
1 point

A container needs credentials to connect to a service. Which approach follows secure configuration guidance?

  1. A

    Store credentials in environment variables because container inspection cannot reveal them.

  2. B

    Put credentials in the container’s writable layer so they remain private.

  3. C

    Use an image tag as a secrets-management mechanism.

  4. D

    Use an appropriate secrets-management mechanism for credentials.

09
Choose one
1 point

A container becomes slow after resource limits are applied. Which response best follows the recommended approach?

  1. A

    Increase all limits whenever a workload responds slowly, without examining metrics.

  2. B

    Set limits based on measured needs, monitor performance, and inspect metrics before adjusting them.

  3. C

    Use the lowest possible limits because they cannot cause failures.

  4. D

    Treat a memory reservation as a guarantee that usage will stay below that value.

10
Choose one
1 point

In Kubernetes, what is the difference between a resource request and a resource limit?

  1. A

    Requests constrain resource use, while limits tell the scheduler where a Pod can fit.

  2. B

    Requests and limits both only tell the scheduler where to place a Pod.

  3. C

    Requests help the scheduler place a Pod, while limits constrain resource use.

  4. D

    Requests and limits have no effect on scheduling or resource use.