LPI 305-300 Exam Practice Questions (P. 4)
- Full Access (55 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #16
What happens when the following command is executed twice in succession? docker run -tid -v data:/data debian bash
- AThe container resulting from the second invocation can only read the content of /data/ and cannot change it.
- BEach container is equipped with its own independent data volume, available at /data/ in the respective container.
- CBoth containers share the contents of the data volume, have full permissions to alter its content and mutually see their respective changes.
- DThe original content of the container image data is available in both containers, although changes stay local within each container.
- EThe second command invocation fails with an error stating that the volume data is already associated with a running container.
Correct Answer:
C
C
send
light_mode
delete
Question #17
What is the purpose of the kubelet service in Kubernetes?
- AProvide a command line interface to manage Kubernetes.
- BBuild a container image as specified in a Dockerfile.
- CManage permissions of users when interacting with the Kubernetes API.
- DRun containers on the worker nodes according to the Kubernetes configuration.
- EStore and replicate Kubernetes configuration data.
Correct Answer:
D
D
send
light_mode
delete
Question #18
If docker stack is to be used to run a Docker Compose file on a Docker Swarm, how are the images referenced in the Docker Compose configuration made available on the Swarm nodes?
- Adocker stack builds the images locally and copies them to only those Swarm nodes which run the service.
- Bdocker stack passes the images to the Swarm master which distributes the images to all other Swarm nodes.
- Cdocker stack instructs the Swarm nodes to pull the images from a registry, although it does not upload the images to the registry.
- Ddocker stack transfers the image from its local Docker cache to each Swarm node.
- Edocker stack triggers the build process for the images on all nodes of the Swarm.
Correct Answer:
C
C
send
light_mode
delete
Question #19
Which of the following commands executes a command in a running LXC container?
send
light_mode
delete
Question #20
Which of the following statements in a Dockerfile leads to a container which outputs hello world? (Choose two.)
- AENTRYPOINT "echo Hello World"
- BENTRYPOINT [ "echo hello world" ]
- CENTRYPOINT [ "echo", "hello", "world" ]
- DENTRYPOINT echo Hello World
- EENTRYPOINT "echo", "Hello", "World"
Correct Answer:
BC
BC
send
light_mode
delete
All Pages