Which statement accurately describes the possible effect of a Docker hard memory limit?
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.
You want a new Docker container to run in the background. Which option does docker run use for this?
- A
--name - B
-p - C
-d - D
--mount
A Docker host’s json-file logs are growing and consuming too much disk space. What is an appropriate way to manage this?
- A
Configure log rotation or use a driver that manages log storage.
- B
Rely on the default driver because it automatically prevents unlimited log growth.
- C
Change the daemon's default logging configuration, which will also update existing containers.
- D
Stop collecting container logs so they cannot use disk space.
An application must retain its data even if its container is replaced. Which configuration choice supports that goal?
- A
An environment variable
- B
A command argument
- C
A container name
- D
A named volume
Which statement best describes how operators typically manage container workloads in Kubernetes?
- A
Operators should manually start every container and avoid managing workloads.
- B
Operators generally manage workloads, with Kubernetes running containers inside Pods.
- C
Kubernetes manages only individual images and does not track container states.
- D
A Pod is a host port mapping used to connect to a container.
A Kubernetes container is repeatedly restarting and is reported as CrashLoopBackOff. What is the best next step for diagnosing the cause?
- A
Increase the memory limit immediately, since that state proves memory exhaustion.
- B
Treat the restart state itself as the root cause and make no further checks.
- C
Inspect logs and events because several different problems can cause repeated restarts.
- D
Change the image tag first, since that is the standard fix for repeated restarts.
After changing Docker’s default logging configuration, which containers are affected by that change?
- A
It affects newly created containers, not existing ones.
- B
It immediately changes the logging driver for every existing container.
- C
It affects only containers that are currently running, not newly created ones.
- D
It changes how application output is written to standard output and standard error.
A container needs credentials to connect to a service. Which approach follows secure configuration guidance?
- A
Store credentials in environment variables because container inspection cannot reveal them.
- B
Put credentials in the container’s writable layer so they remain private.
- C
Use an image tag as a secrets-management mechanism.
- D
Use an appropriate secrets-management mechanism for credentials.
A container becomes slow after resource limits are applied. Which response best follows the recommended approach?
- A
Increase all limits whenever a workload responds slowly, without examining metrics.
- B
Set limits based on measured needs, monitor performance, and inspect metrics before adjusting them.
- C
Use the lowest possible limits because they cannot cause failures.
- D
Treat a memory reservation as a guarantee that usage will stay below that value.
In Kubernetes, what is the difference between a resource request and a resource limit?
- A
Requests constrain resource use, while limits tell the scheduler where a Pod can fit.
- B
Requests and limits both only tell the scheduler where to place a Pod.
- C
Requests help the scheduler place a Pod, while limits constrain resource use.
- D
Requests and limits have no effect on scheduling or resource use.
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Cloud Databases
Focused study of relational and nonrelational databases and service selection concepts.
12 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study toolsAWS Cloud Technology and Services: Serverless Services
Focused study of event-driven functions and serverless application concepts.
15 study tools