Why use a named volume for container data?
A named volume stores persistent data separately from a container’s writable layer, so replacing the container need not erase that data.
Study Docker and Kubernetes Operations with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.
Why use a named volume for container data?
A named volume stores persistent data separately from a container’s writable layer, so replacing the container need not erase that data.
What does docker run do, and what does -d change?
docker run creates and starts a container. It runs in the foreground by default; use -d to run it in the background.
What should you check first when diagnosing a Docker container failure?
First check all container states, including stopped containers, and inspect the container’s state and configuration before changing settings.
Where should an application normally write diagnostic output for runtime collection?
Applications should normally write diagnostic output to standard output and standard error so the runtime can collect it.
In Kubernetes, what is the difference between resource requests and limits?
In Kubernetes, requests help the scheduler decide where a Pod can fit, while limits constrain resource use.
How does Kubernetes organize containers for workload management?
Kubernetes runs containers inside Pods, and operators usually manage workloads through the orchestrator rather than manually starting individual containers.
Name three container states tracked by Kubernetes.
Kubernetes tracks container states including Waiting, Running, and Terminated.
What can happen when a container exceeds its memory limit, and what can a CPU limit constrain?
A hard memory limit can lead to a process being killed after it exceeds its allowance; a CPU limit can constrain throughput.
What determines whether a Docker container stays running?
A container stays running only while its main process runs; when that process exits, the container stops.
Why should credentials not be stored as ordinary container environment variables?
Environment variables are convenient for ordinary settings but are not a secure secret store. Use an appropriate secrets-management mechanism for credentials.
How can operators prevent Docker json-file logs from exhausting disk space?
The default json-file driver can consume substantial disk space if logs grow without rotation; configure rotation or choose a driver that manages it.
How can you keep a container image reference from unexpectedly changing?
Pin an image to a specific version, or use a digest for stronger immutability, instead of relying on a tag that may later point to a different image.
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
Focused study of relational and nonrelational databases and service selection concepts.
Focused study of instances, instance types, scaling and compute use cases.
Focused study of objects, buckets, storage classes and storage use cases.
Focused study of event-driven functions and serverless application concepts.