nerdexam
CompTIA

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.

Scripting, Containers and Automation

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)
  • A
    2% (1)
  • B
    90% (57)
  • C
    5% (3)
  • D
    3% (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.

AAnsible

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.

BDockerCorrect

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.

CCloud-init

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.

DAnaconda

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

#cloud-init#image provisioning#automation#cloud images

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice