exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 24 discussion

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

A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?

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

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
Nvoid
Highly Voted 11 months, 2 weeks ago
Selected Answer: D
Question should be fixed to say: mounted under "/opt/app" not "/ops/app".
upvoted 10 times
Nvoid
11 months, 2 weeks ago
Still needs to be fixed mods.
upvoted 2 times
...
...
linux_admin
Highly Voted 8 months, 3 weeks ago
Selected Answer: D
D. lvcreate -L 1G -n app app_vg mkfs.xfs /dev/app_vg/app mount /dev/app_vg/app /opt/app This creates a new logical volume of size 1GB named "app" in the volume group "app_vg", formats it with the XFS filesystem, and mounts it under the /opt/app directory.
upvoted 7 times
...
linux_admin
Most Recent 8 months, 4 weeks ago
Selected Answer: B
Answer B is a correct set of commands to create and mount a new 1GB XFS filesystem under the directory "/opt/app". The first command parted /dev/sdb --script mkpart primary xfs 1GB creates a new partition on the device "/dev/sdb" with a file system type of XFS and a size of 1GB. The second command mkfs.xfs /dev/sdb creates a XFS file system on the newly created partition "/dev/sdb". The third command mount /dev/sdb /opt/app mounts the newly created XFS file system to the directory "/opt/app". This set of commands will work if "/dev/sdb" is a valid block device and there is enough disk space available to create a new partition of 1GB. It is also important to note that these changes are only temporary and will not persist after a reboot unless they are added to the /etc/fstab file.
upvoted 2 times
linux_admin
8 months, 3 weeks ago
****Discard****
upvoted 2 times
...
...
bjornborg
1 year ago
Selected Answer: B
i get B because the others have to do with "trying" to expand a logical volume. The question says just to simply add a 1GB partition
upvoted 3 times
Veteran903
12 months ago
No, read the question again, you have to add a "file system", D is correct
upvoted 2 times
...
TheRealManish
11 months, 3 weeks ago
I tested D and it worked.
upvoted 1 times
...
TheRealManish
11 months, 2 weeks ago
B does not work -tested. the mkpart command requires an END block. if you run this command by leaving the --script out, you will get prompts.. I would prefer B as an answer, but it doesn't work. so D it is.
upvoted 2 times
...
[Removed]
9 months ago
can't be B, after running parted the partprobe command needs to be run to refresh the kernel data
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago