What is a container image?
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.
In an image build, what does the build context refer to?
- A
The files made available to the builder
- B
The registry where the finished image is stored
- C
The running container created from an image
- D
The command used to authenticate to a registry
Which sequence matches the typical workflow for building and publishing a container image?
- A
Build, push, test, prepare a context, then log in
- B
Prepare a context, log in, push, build, then test
- C
Prepare a context, build, test, assign a registry-ready name, log in, then push
- D
Prepare a context, test, push, then assign a registry-ready name
Which command builds myapp:1.4.0 using the current directory as its build context?
- A
docker build -t myapp:1.4.0 registry.example.com - B
docker build -t myapp:1.4.0 . - C
docker push myapp:1.4.0 . - D
docker run --rm myapp:1.4.0 .
Which command in the example is used to run the image for testing?
- A
docker run --rm myapp:1.4.0 - B
docker tag myapp:1.4.0 registry.example.com/team/myapp:1.4.0 - C
docker login registry.example.com - D
docker push registry.example.com/team/myapp:1.4.0
Which Docker command assigns an image a registry-ready name?
- A
docker build - B
docker run - C
docker tag - D
docker login
In the example workflow, which command authenticates to registry.example.com before the image is pushed?
- A
docker tag registry.example.com - B
docker login registry.example.com - C
docker build registry.example.com - D
docker run registry.example.com
Which command pushes the registry-tagged image in the example?
- A
docker run --rm registry.example.com/team/myapp:1.4.0 - B
docker tag registry.example.com/team/myapp:1.4.0 - C
docker login registry.example.com/team/myapp:1.4.0 - D
docker push registry.example.com/team/myapp:1.4.0
What is a stated benefit of reusing image layers across builds and sharing them through registries?
- A
They can improve build and deployment efficiency through reuse and sharing.
- B
They eliminate the need for build instructions.
- C
They automatically authenticate users to registries.
- D
They make the build context unnecessary.
What are the two main inputs described for building a container image?
- A
A registry login and a running container
- B
Build instructions and a build context
- C
A registry-ready name and a push command only
- D
A running container and its process state
Related study packs and tools
AWS Cloud Concepts
Practice cloud benefits, deployment models, scalability, elasticity and AWS Cloud concepts.
12 study toolsAWS Cloud Practitioner Practice Test
Comprehensive AWS Certified Cloud Practitioner practice covering cloud concepts, security, AWS services and pricing.
15 study toolsAWS Cloud Technology and Services: Cloud Databases
Focused study of relational and nonrelational databases and service selection concepts.
12 study toolsAWS Cloud Technology and Services: EC2 Compute
Focused study of instances, instance types, scaling and compute use cases.
12 study toolsAWS Cloud Technology and Services: S3 Storage
Focused study of objects, buckets, storage classes and storage use cases.
12 study toolsAWS Cloud Technology and Services: Serverless Services
Focused study of event-driven functions and serverless application concepts.
15 study tools