Courseiva
Automation, Orchestration, and ScriptinghardMultiple SelectObjective-mapped

XK0-006 Automation, Orchestration, and Scripting Practice Question

An administrator needs to deploy an application stack that includes a web server and a database. The containers must be able to communicate with each other and be easily managed together. Which TWO tools or methods can accomplish this? (Select TWO.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Docker Compose

Docker Compose allows defining multi-container applications in a single file and manages networking and dependencies. Kubernetes orchestrates containers across a cluster. Both can manage a stack of containers with networking.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Ansible playbook with docker_container module

    Why it's wrong here

    While Ansible can manage containers, it does not provide built-in container networking and orchestration like Compose or K8s.

  • Docker Compose

    Why this is correct

    Docker Compose is designed for multi-container applications.

  • Podman pods

    Why it's wrong here

    Podman pods group containers, but the question asks for tools that can manage a stack together; Podman pods are more low-level.

  • Docker run with --link

    Why it's wrong here

    --link is deprecated and not recommended for container communication.

  • Kubernetes

    Why this is correct

    Kubernetes orchestrates containers and provides service discovery.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.