Free CompTIA XK0-006 Exam Questions (page: 2)

HOTSPOT (Drag and Drop is not supported)

A new drive was recently added to a Linux system. Using the environment and tokens provided, complete the following tasks:

Create an appropriate device label.
Format and create an ext4 file system on the new partition.

The current working directory is /.

INSTRUCTIONS

Use the drop-down menus to select the proper objects to complete these tasks.

Some commands are partially complete.

Not all objects will be used, and some may be used more than once.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




mklabel gpt initializes the new disk /dev/sdc with a GPT partition table.

mkpart primary ext4 1 10G creates a primary partition using the ext4 type between 1MB and 10GB on /dev/sdc.

mkfs.ext4 /dev/sdc1 formats the newly created partition /dev/sdc1 with the ext4 filesystem, completing the setup.



SIMULATION

A junior system administrator removed an LVM volume by mistake.

INSTRUCTIONS

Part 1

Review the output and select the appropriate command to begin the recovery process.

Part2

Review the output and select the appropriate command to continue the recovery process.

Part 3

Review the output and select the appropriate command to complete the recovery process and access the underlying data.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.





  1. See Explanation section for answer.

Answer(s): A

Explanation:



Restoring the Volume Group (VG) configuration from the LVM archive begins the recovery process after the VG metadata was lost.



After restoring the VG metadata, the logical volume must be reactivated (-ay) so it becomes accessible to the system.



Once the LV is active, mounting it to the /important_data directory makes the filesystem accessible, completing the recovery process.



SIMULATION

You are a systems administrator and have created an uncompressed backup of the application directory. Several hours later, you must restore the application from backup.

INSTRUCTIONS

Within each tab, click on an object to form the appropriate command used to create the backup and restore the application.

Command objects may only be used once, but the spacebar object may be used multiple times. Not all objects will be used. Click the arrow to remove any unwanted objects from your command.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.



  1. See Explanation section for answer.

Answer(s): A

Explanation:





-cvf creates (-c) a verbose (-v) archive file (-f) named /backups/application.tar.

-C /opt/ application changes to /opt/ so only the relative application directory is saved, avoiding absolute paths.

-xvf extracts (-x) the same archive, and -C /opt/ restores the contents back into the original location.



Which of the following Ansible components contains a list of hosts and host groups?

  1. Fact
  2. Inventory
  3. Playbook
  4. Collection

Answer(s): B

Explanation:

In Ansible, the inventory defines the list of managed nodes (hosts) and groups of hosts. It is the source from which Ansible knows what systems to configure or manage.



Which of the following filesystems contains non-persistent or volatile data?

  1. /boot
  2. /usr
  3. /proc
  4. /var

Answer(s): C

Explanation:

The /proc filesystem is a virtual filesystem that provides process and kernel information. It is non-persistent and volatile, meaning its contents exist only in memory and are regenerated at each system boot.



Viewing page 2 of 16
Viewing questions 6 - 10 out of 71 questions



Post your Comments and Discuss CompTIA XK0-006 exam prep with other Community members:

XK0-006 Exam Discussions & Posts