191-200 Flashcards

1
Q

A systems administrator intends to use a UUID to mount a new partition permanently on a Linux system. Which of the following commands can the administrator run to obtain information about the UUIDs of all disks attached to a Linux system?

A. fcstat
B. blkid
C. dmsetup
D. lescsi

A

B. blkid

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

A systems administrator creates a public key for authentication. Which of the following tools is MOST suitable to use when uploading the key to the remote servers?

A. scp
B. ssh-copy-id
C. ssh-agent
D. ssh-keyscan

A

B. ssh-copy-id

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

A systems administrator checked out the code from the repository, created a new branch, made changes to the code, and then updated the main branch. The systems administrator wants to ensure that the Terraform state files do not appear in the main branch. Which of following should the administrator use to meet this requirement?

A. clone
B. .gitignore
C. get
D. .ssh

A

B. .gitignore

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

Following the migration from a disaster recovery site, a systems administrator wants a server to require a user to change credentials at initial login. Which of the following commands should be used to ensure the aging attribute?

A. chage -d 2 user
B. chage -d 0 user
C. chage -E 0 user
D. chage -d 1 user

A

B. chage -d 0 user

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

A systems administrator wants to permit access temporarily to an application running on port 1234/TCP on a Linux server. Which of the following commands will permit this traffic?

A. firewall-cmd –new-service=l234/tcp
B. firewall-cmd –service=l234 –protocol=tcp
C. firewall-cmd –add-port=1234/tcp
D. firewall-cmd –add-whitelist-uid=l234

A

C. firewall-cmd –add-port=1234/tcp

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

An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?

A. p
B. r
C. bb
D. A
E. i

A

D. A

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

A systems administrator is adding a Linux-based server and removing a Windows-based server from a cloud-based environment. The changes need to be validated before they are applied to the cloud-based environment. Which of the following tools should be used to meet this requirement?

A. Ansible
B. git clone
C. git pull
D. terraform plan

A

D. terraform plan

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

A systems administrator wants to check for running containers. Which of the following commands can be used to show this information?

A. docker pull
B. docker stats
C. docker ps
D. docker list

A

C. docker ps

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

A Linux systems administrator is troubleshooting an I/O latency on a single CPU server. The administrator runs a top command and receives the following output:

%Cpu(s): 0.2 us, 33.1 sy, 0.0 ni, 0.0 id, 52.4 wa, 0.0 hi, 0.2 si, 0.0 st

Which of the following is correct based on the output received from the executed command?

A. The server’s CPU is taking too long to process users’ requests.
B. The server’s CPU shows a high idle-time value.
C. The server’s CPU is spending too much time waiting for data inputs.
D. The server’s CPU value for the time spent on system processes is low.

A

C. The server’s CPU is spending too much time waiting for data inputs.

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

An administrator needs to get network information from a group of statically assigned workstations before they are reconnected to the network. Which of the following should the administrator use to obtain this information?

A. ip show
B. ifcfg -a
C. ifcfg -s
D. ifname -s

A

B. ifcfg -a

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