exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 98 discussion

Actual exam question from CompTIA's XK0-005
Question #: 98
Topic #: 1
[All XK0-005 Questions]

A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?

  • A. docker cp container_id/deployment.yaml deployment.yaml
  • B. docker cp container_id:/deployment.yaml deployment.yaml
  • C. docker cp deployment.yaml local://deployment.yaml
  • D. docker cp container_id/deployment.yaml local://deployment.yaml
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
linux_admin
8 months, 3 weeks ago
B. docker cp container_id:/deployment.yaml deployment.yam
upvoted 2 times
...
Ckl22
10 months, 2 weeks ago
Selected Answer: B
Given answer appears correct(B) The file is being copied from the container (SRC) to the host (DST) docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago