Docker Configs MCQs with answers Page - 1

You will find multiple-choice questions (MCQs) related to #Docker Configs here. Go through these questions to prepare effectively for your upcoming exams and interviews.

To view the correct answer for any question, simply click the "Show Answer" button.

Have a question to share? Click on "Add Question" to contribute!

A

Admin • 825.56K Points
Coach

Q. What is the purpose of Docker configs?

  • (A) To store encrypted passwords
  • (B) To manage application source code
  • (C) To store non-sensitive configuration data
  • (D) To log container output

A

Admin • 825.56K Points
Coach

Q. Which Docker mode is required to use Docker configs?

  • (A) Standalone mode
  • (B) Compose mode
  • (C) Swarm mode
  • (D) Bridge mode

A

Admin • 825.56K Points
Coach

Q. How do you create a Docker config?

  • (A) docker config create <name> <file>
  • (B) docker config add <name> <value>
  • (C) docker create config <name> <file>
  • (D) docker-compose config create <name> <file>

A

Admin • 825.56K Points
Coach

Q. Can Docker configs be updated after being attached to a service?

  • (A) Yes, they update automatically
  • (B) No, they are immutable
  • (C) Yes, using docker config update
  • (D) Yes, if the container is restarted

A

Admin • 825.56K Points
Coach

Q. Which command lists all Docker configs?

  • (A) docker config ls
  • (B) docker config list
  • (C) docker list configs
  • (D) docker configs show

A

Admin • 825.56K Points
Coach

Q. What is the difference between Docker secrets and Docker configs?

  • (A) Configs are for sensitive data, secrets are not
  • (B) Secrets are versioned, configs are not
  • (C) Secrets are encrypted, configs are not
  • (D) There is no difference

A

Admin • 825.56K Points
Coach

Q. Which of the following is true about configs and services?

  • (A) Configs must be manually copied into containers
  • (B) Configs are accessible via environment variables
  • (C) Configs can be mounted as files in the container
  • (D) Configs can only be used with Docker volumes

A

Admin • 825.56K Points
Coach

Q. What happens if a service is updated with a new config?

  • (A) The config is merged with the old one
  • (B) The old config is modified
  • (C) The old config is deleted
  • (D) A new config must be created and the service updated

A

Admin • 825.56K Points
Coach

Q. Which of the following file types is commonly stored in Docker configs?

  • (A) .zip
  • (B) .tar.gz
  • (C) .conf
  • (D) .pem

A

Admin • 825.56K Points
Coach

Q. What does the command `docker config inspect <config_name>` do?

  • (A) Edits the config
  • (B) Deletes the config
  • (C) Displays the config metadata and content
  • (D) Downloads the config
What's Tag

As you may know, questions are organized under broad categories. Each category can include various types of questions. For example, the "History" category might contain questions about the Revolt of 1857, Shivaji Maharaj, Ancient History, Buddhism, and more.

To further refine this organization, we've introduced tags, which act as sub-categories to group questions more specifically.

Verified users can add tags to any question. If you have any suggestions regarding this system, we'd love to hear from you. Contact Us

Learn More