131-140 Flashcards

1
Q

A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

A.
partprobe
vgcreate
lvextend

B.
lvcreate
fdisk
partprobe

C.
fdisk
partprobe
mkfs

D.
fdisk
pvcreate
vgextend

A

D.
fdisk
pvcreate
vgextend

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following directories is the mount point in a UEFI system?

A. /sys/efi
B. /boot/efi
C. /efi
D. /etc/efi

A

B. /boot/efi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A Linux administrator copied a Git repository locally, created a feature branch, and committed some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main branch of the remote repository?

A. rebase
B. tag
C. commit
D. push

A

C. commit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?

A. vgs
B. lvs
C. fdisk -1
D. pvs

A

B. lvs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A Linux administrator is adding a new configuration file to a Git repository. Which of the following describes the correct order of Git commands to accomplish the task successfully?

A. pull -> push -> add -> checkout
B. pull -> add -> commit -> push
C. checkout -> push -> add -> pull
D. pull -> add -> push -> commit

A

B. pull -> add -> commit -> push

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/usb?

A. mount /dev/sdb1 /media/usb
B. mount /dev/sdb0 /media/usb
C. mount /dev/sdb /media/usb
D. mount -t usb /dev/sdb1 /media/usb

A

A. mount /dev/sdb1 /media/usb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

User1 is a member of the accounting group. Members of this group need to be able to execute but not make changes to a script maintained by User2. The script should not be accessible to other users or groups. Which of the following will give proper access to the script?

A. chown user2:accounting script.sh
chmod 750 script.sh
B. chown user1:accounting script.sh
chmod 777 script.sh
C. chown accounting:user1 script.sh
chmod 057 script.sh
D. chown user2:accounting script.sh
chmod u+x script.sh

A

C. chown accounting:user1 script.sh
chmod 057 script.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?

A. docker image inspect
B. docker container inspect
C. docker exec <container_name> ls
D. docker ps <container_name></container_name></container_name>

A

B. docker container inspect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A Linux administrator is reviewing changes to a configuration file that includes the following section:

tls:
certificates:
-certFile: /etc/ssl/cert.cer
keyFile: /etc/ssl/cert.ky
stores: default
-certFile: /etc/ssl/expired.cer
keyFile: /etc/ssl/expired.key
stores: expired

The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?

A. Markdown
B. XML
C. YAML
D. JSON

A

C. YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A systems administrator is investigating an issue in which one of the servers is not booting up properly. The journalctl entries show the following:

Sep 16 20:30:43 server kernel: acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND) ;
– Subject: Unit dev-mapper–centos\x2dapp.device has failed

Sep 16 20:32:15 server systemd[1]: Dependency failed for /opt/app
–Subject: Unit opt-app.mount has failed
–Unit opt-app.mount has failed

Sep 16 20:32:15 server systemd[1]: Dependency failed for Local File Systems.
–Subject: Unit local-fs.target has failed
–Unit local-fs.target has failed.

Sep 16 20:32:15 server systemd[1]: Dependency failed for Relabel all filesystem, if necessary.
–Subject: Unit rhel-autorelabel.service has failed
–Unit rhel-autorelabel.service has failed.

Which of the following will allow the administrator to boot the Linux system to normal mode quickly?

A. Comment out the /opt/app filesystem in /etc/fstab and reboot.
B. Reformat the /opt/app filesystem and reboot.
C. Perform filesystem checks on local filesystems and reboot.
D. Trigger a filesystem relabel and reboot.

A

A. Comment out the /opt/app filesystem in /etc/fstab and reboot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly