exam questions

Exam 300-910 All Questions

View all questions & answers for the 300-910 exam

Exam 300-910 topic 1 question 91 discussion

Actual exam question from Cisco's 300-910
Question #: 91
Topic #: 1
[All 300-910 Questions]



Refer to the exhibit. A docker-compose.yml file implements a postgres database container.

Which .gitlab-ci.yml code block checks the health status of the container and stops the pipeline if the container is unhealthy?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
wlevels
6 months, 1 week ago
Selected Answer: C
tested the output of container with health check using docker inspect. Valid
upvoted 2 times
...
andersm9
1 year, 10 months ago
i agree C - 'docker container state' is not a valid command
upvoted 1 times
...
cubic
1 year, 11 months ago
Selected Answer: D
I think the answer is "D". (C: There is no container state as healthy)
upvoted 1 times
cowcow19
1 year, 10 months ago
seems status healthy is available for some versions https://www.ashnik.com/chaos-engineering-with-docker-ee/ "sh-4.2$ docker container inspect –format='{{json .State.Health}}’ 62ad34709fb8 {“Status”:”healthy”,”FailingStreak”:1,”Log”:[{“Start”:”2018-05-"
upvoted 2 times
cubic
1 year, 10 months ago
You are right, also the container's name is postgre_data. I change my answer to "C".
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...