Docker Compose MCQ Questions & Answers

Docker Compose MCQs : This section focuses on "Compose" of Docker. These Multiple Choice Questions (MCQ) should be practiced to improve the Docker skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. Docker __________ is used to run multiple containers as a single service.

A. Hub
B. Compose
C. Cloud
D. Logging

View Answer


2. which of the following is used to check docker-compose version?

A. compose version
B. docker version
C. docker-compose version
D. None of the above

View Answer


3. version is used to specify that we want the details of the version of Docker Compose.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


4. ________is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host.

A. Docker Hub
B. Docker Swarm
C. Docker Compose
D. None of the above

View Answer


5. Docker __________ is used to run multiple containers as a single service.

A. Docker Hub
B. Docker Swarm
C. Docker Compose
D. All of the above

View Answer


6. How to use JSON instead of YAML compose file?

A. docker push myorg/img
B. /var/lib/docker/volumes
C. systemctl start/stop docker
D. docker-compose -f docker-compose.json up

View Answer


7. Which of the following is the native clustering for Docker?

A. Docker Hub
B. Docker Swarm
C. Docker Compose
D. Docker Cloud

View Answer


8. Which of the following is a text document that contains all the commands a user could call on the command line to assemble an image?

A. Docker Cloud
B. Dockerfile
C. Docker Kitematic
D. Docker Compose

View Answer


9. The image keyword is used to specify the image from dockerhub for our mysql and nginx containers

A. TRUE
B. FALSE
C. Can be true or false
D. None of the above

View Answer


10. The database and web keyword are used to define two separate services.

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer





Discussion



* You must be logged in to add comment.

pHqghUme
555

pHqghUme
555

pHqghUme
555

pHqghUme
-1 OR 2+767-767-1=0+0+0+1 --

pHqghUme
-1 OR 3+767-767-1=0+0+0+1 --

pHqghUme
-1 OR 3*2<(0+5+767-767) --

pHqghUme
-1 OR 3*2>(0+5+767-767) --

pHqghUme
-1 OR 2+867-867-1=0+0+0+1

pHqghUme
-1 OR 3+867-867-1=0+0+0+1

pHqghUme
-1 OR 3*2<(0+5+867-867)

pHqghUme
-1 OR 3*2>(0+5+867-867)

pHqghUme
-1' OR 2+536-536-1=0+0+0+1 --

pHqghUme
-1' OR 3+536-536-1=0+0+0+1 --

pHqghUme
-1' OR 3*2<(0+5+536-536) --

pHqghUme
-1' OR 3*2>(0+5+536-536) --

pHqghUme
-1' OR 2+822-822-1=0+0+0+1 or 'qtg7QJGP'='

pHqghUme
-1' OR 3+822-822-1=0+0+0+1 or 'qtg7QJGP'='

pHqghUme
-1' OR 3*2<(0+5+822-822) or 'qtg7QJGP'='

pHqghUme
-1' OR 3*2>(0+5+822-822) or 'qtg7QJGP'='

pHqghUme
-1" OR 2+601-601-1=0+0+0+1 --

pHqghUme
-1" OR 3+601-601-1=0+0+0+1 --

pHqghUme
-1" OR 3*2<(0+5+601-601) --

pHqghUme
-1" OR 3*2>(0+5+601-601) --

pHqghUme
if(now()=sysdate(),sleep(15),0)

pHqghUme
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z

pHqghUme
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z

pHqghUme
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

pHqghUme
-1; waitfor delay '0:0:15' --

pHqghUme
-1); waitfor delay '0:0:15' --

pHqghUme
1 waitfor delay '0:0:15' --

pHqghUme
JtQWAM8g'; waitfor delay '0:0:15' --

pHqghUme
-5 OR 436=(SELECT 436 FROM PG_SLEEP(15))--

pHqghUme
-5) OR 439=(SELECT 439 FROM PG_SLEEP(15))--

pHqghUme
-1)) OR 179=(SELECT 179 FROM PG_SLEEP(15))--

pHqghUme
dBbRiLHz' OR 870=(SELECT 870 FROM PG_SLEEP(15))--

pHqghUme
ZrfUAjuo') OR 575=(SELECT 575 FROM PG_SLEEP(15))--

pHqghUme
GcHF7uni')) OR 377=(SELECT 377 FROM PG_SLEEP(15))--

pHqghUme
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

pHqghUme
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

pHqghUme
1'"

pHqghUme

pHqghUme
@@XlwpA

pHqghUme
555

pHqghUme
555

pHqghUme
555