Timedora
Free Practice Quiz Question List

Building and Publishing Container Images Online Quiz Questions

Use this free practice quiz with 10 questions to review Building and Publishing Container Images, test your knowledge, and prepare for your next test or exam.

10 questions
01
Choose one
1 point

What is a container image?

  1. A

    A running container and its current process state

  2. B

    A packaged filesystem and configuration used to create containers

  3. C

    A registry account with permission to publish software

  4. D

    A list of files excluded from a build

02
Choose one
1 point

In an image build, what does the build context refer to?

  1. A

    The files made available to the builder

  2. B

    The registry where the finished image is stored

  3. C

    The running container created from an image

  4. D

    The command used to authenticate to a registry

03
Choose one
1 point

Which sequence matches the typical workflow for building and publishing a container image?

  1. A

    Build, push, test, prepare a context, then log in

  2. B

    Prepare a context, log in, push, build, then test

  3. C

    Prepare a context, build, test, assign a registry-ready name, log in, then push

  4. D

    Prepare a context, test, push, then assign a registry-ready name

04
Choose one
1 point

Which command builds myapp:1.4.0 using the current directory as its build context?

  1. A

    docker build -t myapp:1.4.0 registry.example.com

  2. B

    docker build -t myapp:1.4.0 .

  3. C

    docker push myapp:1.4.0 .

  4. D

    docker run --rm myapp:1.4.0 .

05
Choose one
1 point

Which command in the example is used to run the image for testing?

  1. A

    docker run --rm myapp:1.4.0

  2. B

    docker tag myapp:1.4.0 registry.example.com/team/myapp:1.4.0

  3. C

    docker login registry.example.com

  4. D

    docker push registry.example.com/team/myapp:1.4.0

06
Choose one
1 point

Which Docker command assigns an image a registry-ready name?

  1. A

    docker build

  2. B

    docker run

  3. C

    docker tag

  4. D

    docker login

07
Choose one
1 point

In the example workflow, which command authenticates to registry.example.com before the image is pushed?

  1. A

    docker tag registry.example.com

  2. B

    docker login registry.example.com

  3. C

    docker build registry.example.com

  4. D

    docker run registry.example.com

08
Choose one
1 point

Which command pushes the registry-tagged image in the example?

  1. A

    docker run --rm registry.example.com/team/myapp:1.4.0

  2. B

    docker tag registry.example.com/team/myapp:1.4.0

  3. C

    docker login registry.example.com/team/myapp:1.4.0

  4. D

    docker push registry.example.com/team/myapp:1.4.0

09
Choose one
1 point

What is a stated benefit of reusing image layers across builds and sharing them through registries?

  1. A

    They can improve build and deployment efficiency through reuse and sharing.

  2. B

    They eliminate the need for build instructions.

  3. C

    They automatically authenticate users to registries.

  4. D

    They make the build context unnecessary.

10
Choose one
1 point

What are the two main inputs described for building a container image?

  1. A

    A registry login and a running container

  2. B

    Build instructions and a build context

  3. C

    A registry-ready name and a push command only

  4. D

    A running container and its process state