XK0-004 · Question #348
A system administrator needs to bootstrap a series of Ubuntu images for a public provider. The administrator must ensure at the images contain the exact same updates, custom. Configure files after…
The correct answer is B. Docker. Docker allows administrators to define a reproducible build process via a Dockerfile, producing Ubuntu-based images that contain identical updates and configuration files across every deployment. This guarantees consistency for all instances launched from the same image.
Question
A system administrator needs to bootstrap a series of Ubuntu images for a public provider. The administrator must ensure at the images contain the exact same updates, custom. Configure files after their first and then automatically. Which of the following tools the administrator user?
Options
- AAnsible
- BDocker
- CCloud-init
- DAnaconda
How the community answered
(63 responses)- A2% (1)
- B90% (57)
- C5% (3)
- D3% (2)
Why each option
Docker allows administrators to define a reproducible build process via a Dockerfile, producing Ubuntu-based images that contain identical updates and configuration files across every deployment. This guarantees consistency for all instances launched from the same image.
Ansible applies configuration changes to already-running systems over SSH and does not produce immutable pre-built images, meaning configuration drift can occur between playbook runs.
A Dockerfile defines every layer of an image deterministically - base OS, package updates, and configuration files - so every build from the same Dockerfile produces an identical image. When these images are pushed to a public registry and used to launch instances, each container starts with exactly the same state, eliminating configuration drift without requiring any per-instance setup steps.
Cloud-init configures individual VM instances on first boot using user-data scripts rather than baking configuration into a pre-built image, so each instance configures itself independently at runtime and results may differ.
Anaconda is a Python distribution and data science package manager unrelated to bootstrapping or building Ubuntu server images for cloud deployment.
Concept tested: Building reproducible Ubuntu images using Docker
Source: https://docs.docker.com/reference/dockerfile/
Topics
Community Discussion
No community discussion yet for this question.