A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?
A.
iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
B.
iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
C.
iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
D.
iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT
iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
When trying to log in remotely to a server, a user receives the following message:
Which of the following is causing the issue?
A.
The wrong permissions are on the user’s home directory.
B.
The account was locked out due to three failed logins.
C.
The user entered the wrong password.
D.
The user has the wrong shell assigned to the account.
The user has the wrong shell assigned to the account.
Which of the following enables administrators to configure and enforce MFA on a Linux system?
A.
Kerberos
B.
SELinux
C.
PAM
D.
PKI
Kerberos
Which of the following technologies provides load balancing, encryption, and observability in containerized environments?
A.
Virtual private network
B.
Sidecar pod
C.
Overlay network
D.
Service mesh
Service mesh
Explanation: "A service mesh controls the delivery of service requests in an application. Common features provided by a service mesh include service discovery, load balancing, encryption and failure recovery."
https://www.techtarget.com/searchitoperations/definition/service-mesh
A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?
A.
rpm -qf /etc/httpd/conf/httpd.conf
B.
rpm -ql /etc/httpd/conf/httpd.conf
C.
rpm —query /etc/httpd/conf/httpd.conf
D.
rpm -q /etc/httpd/conf/httpd.conf
rpm -qf /etc/httpd/conf/httpd.conf
A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?
A.
systemctl status systemd-resolved.service
B.
systemctl enable systemd-resolved.service
C.
systemctl mask systemd-resolved.service
D.
systemctl show systemd-resolved.service
systemctl status systemd-resolved.service
Users have been unable to save documents to /home/tmp/temp and have been receiving the following error:
A junior technician checks the locations and sees that /home/tmp/tempa was accidentally created instead of /home/tmp/temp. Which of the following commands should the technician use to fix this issue?
A.
cp /home/tmp/tempa /home/tmp/temp
B.
mv /home/tmp/tempa /home/tmp/temp
C.
cd /temp/tmp/tempa
D.
ls /home/tmp/tempa
mv /home/tmp/tempa /home/tmp/temp
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
docker cp container_id/deployment.yaml deployment.yaml
A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?
A.
Sync the mount units.
B.
Mount the filesystem manually.
C.
Create a mount unit and enable it to be started at boot.
D.
Remount all the missing filesystems
Create a mount unit and enable it to be started at boot.
A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?
A.
/etc/sysctl
B.
/etc/filesystems
C.
/etc/fstab
D.
/etc/nfsmount.conf
/etc/fstab
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)
A.
wget
B.
ssh-keygen
C.
ssh-keyscan
D.
ssh-copy-id
E.
ftpd
F.
scp
ssh-copy-id
scp
A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?
A.
scp -p /data remote:/backup/data
B.
ssh -i /remote:/backup/ /data
C.
rsync -a /data remote:/backup/
D.
cp -r /data /remote/backup/
rsync -a /data remote:/backup/
Page 4 out of 31 Pages |
Previous |