Courseiva
Automation, Orchestration, and ScriptinghardMultiple SelectObjective-mapped

XK0-006 Automation, Orchestration, and Scripting Practice Question

A DevOps engineer is creating a Dockerfile for a Node.js application. Which THREE of the following instructions are valid and commonly used in a Dockerfile? (Choose THREE.)

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

COPY . /app

Common Dockerfile instructions include FROM, RUN, COPY, EXPOSE, CMD, ENTRYPOINT, etc. The valid ones here are FROM, RUN, and COPY.

Answer analysis

Option-by-option breakdown

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

  • EXECUTE node app.js

    Why it's wrong here

    No such instruction; use CMD or ENTRYPOINT.

  • COPY . /app

    Why this is correct

    COPY copies files from host to container.

  • RUN npm install

    Why this is correct

    RUN executes commands during build.

  • INSTALL package.json

    Why it's wrong here

    No such instruction; use RUN npm install.

  • FROM node:14

    Why this is correct

    FROM specifies the base image.

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.