Kubernetes Administration Using Docker Quiz Questions and Answers

Which command is used for running the images as a container?

Answer :
  • Docker run -it -d --name containername image

From the below-mentioned option, what are the essential features of Docker?

Answer :
  • A) Docker has efficient operation activity
    B) Docker has easy modeling
    C) Docker provides version control
    All of the above

Which Docker command is used to remove a base image even if that image has containers that are based on it?

Answer :
  • Docker rmi [IMAGE NAME] --force

What is the purpose of the docker image prune command?

Answer :
  • Remove unused images

What does the FROM directive do?

Answer :
  • It sets a base image that can be used as a platform to begin builds.

What are the states of Docker containers?

Answer :
  • A) Running
    B) Paused
    C) Restarting
    All of the above

Which is the false advantage of Docker?

Answer :
  • Docker provides a difficult set-up initially

What are the benefits of doing container orchestration?

Answer :
  • A) Fault-tolerance
    B) Optimal use of resources
    C) Scaling the application
    All of the above

Which components of the Kubernetes control plane is a reconciliation loop that drives the actual cluster state towards the desired cluster state?

Answer :
  • Controller manager

Which Kubernetes service helps in restricting the service within the cluster?

Answer :
  • ClusterIP