Skip to content
Sharp

Microservice Architecture · interview question

Which of the following best describes a Docker container's lifecycle in a Kubernetes environment?

Multiple choiceHardchapter-18-curatedpremiummicroservice-architecturedocker-containerization
Choose one answer
Answer and explanation

Correct answer

C. Containers are created and destroyed according to the YAML configuration.

Why

In Kubernetes, the lifecycle of a Docker container is managed by the configuration defined in YAML files. Kubernetes ensures that the desired state is maintained by creating or destroying containers as necessary to match the configuration.

Test yourself on Microservice Architecture

A free test with instant, explained results. No account needed.

Start free test
All Microservice Architecture questions →