Courseiva

200-901 Application Deployment and Security Practice Question

Which TWO commands are used to view information about Docker containers? (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 logs -f

Option B, `docker logs -f`, is correct because it retrieves and follows the stdout/stderr log output of a running (or stopped) container, which is information about that container's runtime behavior. Option E, `docker ps -a`, is correct because it lists all containers, including stopped ones, showing container IDs, images, status, ports, and names. Option A, `docker build`, is wrong because it builds a new image from a Dockerfile rather than viewing container information. Option C, `docker images`, is wrong because it lists locally stored images, not containers. Option D, `docker volume ls`, is wrong because it lists Docker volumes, which are separate storage resources, not containers.

Answer analysis

Option-by-option breakdown

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

  • ✗

    docker build

    Why it's wrong here

    docker build constructs a new image from a Dockerfile; it produces an artefact rather than reporting container information. It is tempting because building is a frequent container-adjacent task, but inspection requires docker ps or docker inspect, which query existing containers instead of creating images.

  • ✓

    docker logs -f

    Why this is correct

    docker logs -f streams a container's stdout and stderr, following output continuously. It retrieves runtime information about a container's processes, satisfying the requirement to view container information, though it requires a container name or ID.

  • ✗

    docker images

    Why it's wrong here

    docker images lists locally stored image templates, not running or stopped containers. It is tempting because images and containers are closely related Docker objects and the command sits beside docker ps in everyday workflows, but it reports image layers and tags rather than container state.

  • ✗

    docker volume ls

    Why it's wrong here

    docker volume ls lists volumes, which are persistent storage objects, not containers. It is tempting because volume is a core Docker resource and the command mirrors docker container ls syntax, but it reports storage rather than container information; docker ps and docker inspect serve that purpose.

  • ✓

    docker ps -a

    Why this is correct

    docker ps -a lists all containers, including stopped ones, showing ID, image, status, and ports. This provides container information and reveals exited containers that plain docker ps omits, satisfying the requirement to view container information.

About these practice questions

This 200-901 question is part of Courseiva's 975-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 200-901 practice question is part of Courseiva's free Cisco 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 200-901 exam.