ExamGecko
Home / Docker / DCA / List of questions
Ask Question

Docker DCA Practice Test - Questions Answers, Page 6

Add to Whishlist

List of questions

Question 51

Report Export Collapse

Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?

Solution: 'docker run --add-volume /data /mydata -read-only ubuntu'

Become a Premium Member for full access
  Unlock Premium Member

Question 52

Report Export Collapse

Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?

Solution: 'docker run -v /data:/mydata --mode readonly ubuntu'

Become a Premium Member for full access
  Unlock Premium Member

Question 53

Report Export Collapse

Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?

Solution: 'docker run --volume /data:/mydata:ro ubuntu'

Become a Premium Member for full access
  Unlock Premium Member

Question 54

Report Export Collapse

The following Docker Compose file is deployed as a stack:

Docker DCA image Question 54 125540 11082024190025000000

Is this statement correct about this health check definition?

Solution: Health checks test for app health ten seconds apart. Three failed health checks transition the container into ''unhealthy'' status.

Become a Premium Member for full access
  Unlock Premium Member

Question 55

Report Export Collapse

The following Docker Compose file is deployed as a stack:

Docker DCA image Question 55 125541 11082024190025000000

Is this statement correct about this health check definition?

Solution: Health checks test for app health ten seconds apart. If the test fails, the container will be restarted three times before it gets rescheduled.

Become a Premium Member for full access
  Unlock Premium Member

Question 56

Report Export Collapse

Will a DTR security scan detect this?

Solution: licenses for known third party binary components

Become a Premium Member for full access
  Unlock Premium Member

Question 57

Report Export Collapse

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods -I env=development'

Become a Premium Member for full access
  Unlock Premium Member

Question 58

Report Export Collapse

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods --all-namespaces -label env=development'

Become a Premium Member for full access
  Unlock Premium Member

Question 59

Report Export Collapse

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods --all-namespaces -I env=development'

Become a Premium Member for full access
  Unlock Premium Member

Question 60

Report Export Collapse

Will this command display a list of volumes for a specific container?

Solution: 'docker container inspect nginx'

Become a Premium Member for full access
  Unlock Premium Member
Total 183 questions
Go to page: of 19
Search

Related questions