CompTIA Linux+ XK005 (171Q).

Beschreibung

Recurso de estudio para certificación CompTIA Linux + XK005.
Sc Con
Quiz von Sc Con, aktualisiert more than 1 year ago
Sc Con
Erstellt von Sc Con vor mehr als ein Jahr
1926
2

Zusammenfassung der Ressource

Frage 1

Frage
A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?
Antworten
  • fg
  • su
  • bg
  • ed

Frage 2

Frage
A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two).
Antworten
  • parted
  • df
  • mount
  • du
  • fdisk
  • dd
  • ls

Frage 3

Frage
A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command: ls -l startup file The following output is retorned ---------. root root 81k Sep 13 19:01 startupfile Which of the following is MOST likely the issue?
Antworten
  • The service does not have permissions to read write the startupfile.
  • The service startupfile size cannot be 81k.
  • The service startupfile cannot be owned by root.
  • The service startupfile should not be owned by the root group.

Frage 4

Frage
Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages. dbserver kernel: out of Memory: Killed process 1234 (mysqld) . Which of the following is causing the connection issue?
Antworten
  • The process mysqld is using too many semaphores.
  • The server is running out of file descriptors.
  • Something is starving the server resources.
  • The amount of RAM allocated to the server is too high.

Frage 5

Frage
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?
Antworten
  • docker builder -f --name web-01 httpd
  • docker load --name web-01 httpd
  • docker ps -a --name web-01 httpd
  • docker run -d --name web-01 httpd

Frage 6

Frage
A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure ther users access will be disebled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?
Antworten
  • sudo useradd -e 2021-09-30 Project_user
  • sudo useradd -c 2021-09-30 Project_user
  • sudo modinfo -F 2021-09-30 Project_user
  • sudo useradd -m -d 2021-09-30 Project_user

Frage 7

Frage
A systems administrator frequently connects to a remote host via SSH and a non-standard port. The system administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?
Antworten
  • /etc/ssh/sshd_config
  • /etc/ssh/moduli
  • ~/.ssh/config
  • ~/.ssh/authorized_keys

Frage 8

Frage
A systems administrator installed a new software program on a Linux server. When the system administrator tries to run the program, the following message appears on the screen. Hardware virtualization support is not available on this system. Either is not present or disabled in the system's BIOS. Which of the following commands will allow the system administrator to check whether the system supports virtualization?
Antworten
  • dmidecode -s system-version
  • Iscpu
  • sysctl-a
  • cat /sys/device/system/cpu/possible

Frage 9

Frage
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?
Antworten
  • docker run -ti app /bin/sh
  • podman exec -ti app /bin/sh
  • podman run -d app /bin/sh
  • docker exec -d app /bin/bash

Frage 10

Frage
A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?
Antworten
  • podman run -d -p 443:8443 httpd
  • podman run -d -p 8443:443 httpd
  • podman run -d -e 443:8443 httpd
  • podman exec -p 8443:443 httpd

Frage 11

Frage
A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?
Antworten
  • chown web:web /home/web
  • chmod -R 400 /home/web
  • echo "umask 377" >> /home/web/.bashrc
  • setfacl read /home/web

Frage 12

Frage
A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser. Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files: [image] The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?
Antworten
  • TRIGGERS=mariadb.service
  • ONFAILURE=mariadb.service
  • WANTEDBY=mariadb.service
  • REQUIRES=mariadb.service

Frage 13

Frage
A systems administrator is notified that the mysqld process stopped unexpectedly. The systems administrator issues the following command: sudo grep -i -r 'out of memory' /var/log The output of the command shows the following: kernel: Out of memory: Kill process 9112 (mysqld) score 511 or sacrifice child. Which of the following commands should the systems administrator execute NEXT to troubleshoot this issue? (Select two).
Antworten
  • free -h
  • nc -v 127.0.0.1 3306
  • renice -15 $(pidof mysql)
  • lsblk
  • killall -15
  • vmstat -a 1 4

Frage 14

Frage
An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without password. However, the SSH command still asked for the password. Given the following ouput; [image] Which of the following commands would resolve the issue?
Antworten
  • restorecon .ssh/authorized_keys
  • ssh_keygen -t rsa -o .ssh/authorized_keys
  • chown root:root .ssh/authorized keys
  • chmod 600 .ssh/authorized_keys

Frage 15

Frage
A Linux administrator is providing a new Nginx image from the registry to local cache. Which of the following commands would allow this to happen?
Antworten
  • docker pull nginx
  • docker attach ngninx
  • docker commit nginx
  • docker import nginx

Frage 16

Frage
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).
Antworten
  • wget
  • ssh-keygen
  • ssh-keyscan
  • ssh-copy-id
  • ftpd
  • scp

Frage 17

Frage
A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?
Antworten
  • chown -s 755 devops
  • chown 1755 devops
  • chmod -s 755 devops
  • chmod 1755 devops

Frage 18

Frage
An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?
Antworten
  • rpm -qa | grep kernel, uname -a
  • yun -y update; shutdown -r now
  • cat /etc/centos-release; rpm -Uvh --nodeps
  • telinit 1; restorecon -Rv /boot

Frage 19

Frage
A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following ouput: [image] Given there is a single CPU in the server, which of the following is causing the slowness?
Antworten
  • The system is running out of swap space.
  • The CPU is overloaded.
  • The memory is exhausted.
  • The processes are paging.

Frage 20

Frage
A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?
Antworten
  • chmod 4744 dev_team.txt
  • chmod 744 --seduid dev_team.txt
  • chmod -c 744 dev_team.txt
  • chmod -v 4744 --suid dev_team.txt

Frage 21

Frage
Which of the following commands will display the operating system?
Antworten
  • uname -n
  • uname -s
  • uname -o
  • uname -m

Frage 22

Frage
A system administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive. Which of the following commands will help the administrator accomplish this task?
Antworten
  • grub-install /dev/hda
  • grub-install /dev/sda
  • grub-install /dev/sr0
  • grub-install /dev/hd0,0

Frage 23

Frage
A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?
Antworten
  • route -e get to 192.168.1.40 from 10.0.2.15
  • ip route get 192.163.1.40 from 10.0.2.15
  • ip route 192.169.1.40 to 10.0.2.15
  • route -n 192.168.1.40 from 10.0.2.15

Frage 24

Frage
A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability and scalability in production. Which of the following should the Linux administrator choose for the new design?
Antworten
  • Docker
  • On-premises systems
  • Cloud-based systems
  • Kubernetes

Frage 25

Frage
A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked whit revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?
Antworten
  • dnf list and dnf remove last
  • dnf remove and dnf check
  • dnf info and dnf upgrade
  • dnf history and dnf history undo last

Frage 26

Frage
Which of the following enables administrators to configure and enforce MFA on a Linux system?
Antworten
  • Kerberos
  • SELinux
  • PAM
  • PKI

Frage 27

Frage
A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?
Antworten
  • ifconfig hw eth1
  • netstat -r eth1
  • ss -ti eth1
  • ip link show eth1

Frage 28

Frage
A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?
Antworten
  • apt-get upgrade
  • rpm -a
  • yum updateinfo
  • dnf update
  • yum check-update

Frage 29

Frage
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?
Antworten
  • mount /dev/sdb1 /media/usb
  • mount /dev/sdb0 /media/usb
  • mount /dev/sdb /media/usb
  • mount -t usb /dev/sdb1 /media/usb

Frage 30

Frage
A Linux administrator created a new file system. Which of the following files must be updated to ensure the filesystem mounts at boot time?
Antworten
  • /etc/sysctl
  • /etc/filesystems
  • /etc/fstab
  • /etc/nfsmount.conf

Frage 31

Frage
A system administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented: [image] Based on the output above, which of following is the MOST probable cause of the issue?
Antworten
  • The address ac:00:11:22:33:cd is not a valid Ethernet address.
  • The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
  • The network interface eth0 is using an old kernel module.
  • The network interface cable is not connected to a switch.

Frage 32

Frage
A system administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?
Antworten
  • visudo -c
  • test -f /etc/sudoers
  • sudo vi check
  • cat /etc/sudoers | tee test

Frage 33

Frage
A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?
Antworten
  • ~/.ssh/authkeys
  • ~/.ssh/keys
  • ~/.ssh/authorized_keys
  • ~/.ssh/keyauth

Frage 34

Frage
A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?
Antworten
  • kill -1
  • kill -3
  • kill -15
  • kill -HUP
  • kill -TERM

Frage 35

Frage
A junior Linux administrator is tasked with installing an application. The installation guide states the application should only be installed in a run level 5 environment. $systemctl get-default getty.target Which of the following commands would ensure the server is set to run level 5?
Antworten
  • systemctl isolate multi-user.target
  • systemctl isolate graphical.target
  • systemctl isolate network.target
  • systectl isolate basic.target

Frage 36

Frage
When trying to log in remotely to a server, a user receives the following message: [image] Which of the following is causing the issue?
Antworten
  • The wrong permissions are on the user's home directory.
  • The account was locked out due to three failed logins.
  • The user entered the wrong password.
  • The user has the wrong shell assigned to the account.

Frage 37

Frage
Which of the following technologies provides load balancing, encryption, and obsiervability in containerized enviroments?
Antworten
  • Virtual private network
  • Sidecar pod
  • Overlay network
  • Service mesh

Frage 38

Frage
At what point is the Internal Certificate Authority (ICA) created?
Antworten
  • During the primary Security Management Server installation process.
  • Upon creation of a certificate.
  • When an administrator decides to create one.
  • When an administrator initially logs into SmartConsole.

Frage 39

Frage
A could engineer need to remove all dangling images and delete all the images that do not have and associated container. Which of the following commands will help to accomplish this task?
Antworten
  • docker images prune -a
  • docker push images -a
  • docker rmi -a images
  • docker images rmi --all

Frage 40

Frage
A systems administrator is tasked with creating a cloud-based server with a public IP address. The code is as follows: [img] Which of the following technologies did the systems administrator use to complete this task?
Antworten
  • Puppet
  • Git
  • Ansible
  • Terraform

Frage 41

Frage
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output: [img] Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?
Antworten
  • chattr +i file
  • chown it:finance file
  • chmod 666 file
  • setfacl -m g:finance:rw file

Frage 42

Frage
A Linux administrator is reviewing changes to a configuration file that includes the following section: [img] The linux administrator is trying to select the appropiate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?
Antworten
  • Markdown
  • XML
  • YAML
  • JSON

Frage 43

Frage
A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following: [img]
Antworten
  • The checkdiskspace.timer unit should be enabled via systemctl.
  • The timers.target should be reloaded to get the new configuration.
  • The checkdiskspace.timer should be configured to allow manual starts.
  • The checkdiskspace.timer should be started using the sudo command.

Frage 44

Frage
One leg of an LVM-mirrored volume failed due the underlying physical volume, and a systems administrator is troubleshooting the issue. The following ouput has been provided: [img]
Antworten
  • Reboot the srever. The volume will automatically go back to linear mode.
  • Replace the failed drive and reconfigure the mirror.
  • Reboot the server. The volume will revert to stripe mode.
  • Recreate the logical volume.

Frage 45

Frage
A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?
Antworten
  • unzip -v
  • bzip2 -z
  • gzip
  • funzip

Frage 46

Frage
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?
Antworten
  • rpm -qf /etc/httpd/conf/httpd.conf
  • rpm -ql /etc/httpd/conf/httpd.conf
  • rpm --query /etc/httpd/conf/httpd.conf
  • rpm -q /etc/httpd/conf/httpd.conf

Frage 47

Frage
A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?
Antworten
  • Cloud-init
  • Bash
  • Docker
  • Sidecar

Frage 48

Frage
A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?
Antworten
  • scp ~/.ssh/id_rsa user@server:~/
  • rsync ~/.ssh/ user@server:~/
  • ssh-add user server
  • ssh-copy-id user@server

Frage 49

Frage
A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?
Antworten
  • docker image load java: 7
  • docker image pull java:7
  • docker image import java:7
  • docker image build java:7

Frage 50

Frage
A Linux administrator is troubleshooting SSH connection issues from one of the workstations. When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message: ssh: connect to host 104.21.75.76 port 22: Connection refused. The administrator reviews the information bellow: [img]
Antworten
  • The workstation has the wrong IP settings.
  • The sshd service is disabled.
  • The server's firewall is preventing connections from being made.
  • The server has an incorrect default gateway configuration.

Frage 51

Frage
A database administrator requested the installation of a custom database on one of the server. Which of the following should the Linux administrator configure so the requested packages can be installed?
Antworten
  • /etc/yum.conf
  • /etc/ssh/sshd.conf
  • /etc/yum.repos.d/db.repo
  • /etc/resolv.conf

Frage 52

Frage
A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?
Antworten
  • ufw allow out dns
  • systemctl reload firewalld
  • iptables -A OUTPUT -p udp -m udp-dport 53 -j ACCEPT
  • firewall-cmd --zone=public --add-port=53/udp --permanent

Frage 53

Frage
A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?
Antworten
  • systemctl stop sshd
  • systemctl mask sshd
  • systemctl reload sshd
  • systemctl start sshd

Frage 54

Frage
A Linux administrator needs to create a new cloud.cpio archive containing all the files from the currently directory. Which of the following commands can help to accomplish this task?
Antworten
  • ls | cpio -iv > cloud.epio
  • ls | cpio -iv < cloud.epio
  • ls | cpio -ov > cloud.cpio
  • ls cpio -ov < cloud.cpio

Frage 55

Frage
A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?
Antworten
  • sudo fdisk /dev/sda
  • sudo fdisk -s /dev/sda
  • sudo fdisk -l
  • sudo fdisk -h

Frage 56

Frage
Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue .target mode for maintenance. Which of the following commands will restore the server to its usual target?
Antworten
  • telinit 0
  • systemctl reboot
  • systenctl get-default
  • systemctl emergency

Frage 57

Frage
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task (Choose two).
Antworten
  • df -h /data
  • mkfs.ext4 /dev/sdc1
  • fsck /dev/sdc1
  • fdisk -l /dev/sdc1
  • echo "/data/dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
  • echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab

Frage 58

Frage
Which of the following tools is BEST suited to orchestrate a large number of containers across many different servers?
Antworten
  • Kubernetes
  • Ansible
  • Podman
  • Terraform

Frage 59

Frage
A Linux engineer receives reports that files created within certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?
Antworten
  • chmod 775
  • umask 002
  • chattr -Rv
  • chown -cf

Frage 60

Frage
An administrator attempts to rename a file on a server but receives the following error. mv: cannot move 'files/readme.txt' to 'files/readme.txt.orig': Operation not permitted. The administrator then runs a few commands and obtains the following output: [img] Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?
Antworten
  • chgrp reet files
  • chacl -R 644 files
  • chown users files
  • chmod -t files

Frage 61

Frage
A Linux administrator would like to use the systemd to schedule a job to run every two hours. The administrator creates timer and services definition and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?
Antworten
  • The checkdiskspace.service is not running.
  • The checkdiskspace.service needs to be enabled.
  • The OnCalendar schedule is incorrect in the timer definition.
  • The system-daemon services need to be reloaded.

Frage 62

Frage
After listing the propierties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?
Antworten
  • chgrp system accountname
  • passwd -s accountname
  • chmod -G system account name
  • change -E -1 accountname

Frage 63

Frage
A Linux system is getting an error indicating the root filesystem is full. Which of the following commads should be used by the systems administrator to resolve this issue? (Choose three).
Antworten
  • df -h /
  • fdisk -1 /dev/sdb
  • growpart /dev/mapper/rootvg-rootlv
  • pvcreate /dev/sdb
  • lvresize -L +10G -r /dev/mapper/rootvg-rootlv
  • lsblk /dev/sda
  • parted -l /dev/mapper/rootvg-rootlv
  • vgextend /dev/rootvg /dev/sdb

Frage 64

Frage
A Linux administrator needs to create an imagen named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?
Antworten
  • dd of=/dev/sda if=/tmp/sda.img
  • dd if=/dev/sda of=/tmp/sda.img
  • dd --if=/dev/sda --of=/tmp/sda.img
  • dd --of=/dev/sda --if=/tmp/sda.img

Frage 65

Frage
A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?
Antworten
  • gedit & disown
  • kill 9 %1
  • fg %1
  • bg %1 job name

Frage 66

Frage
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?
Antworten
  • pull _> push _> add _> checkout
  • pull _> add _> commit _> push
  • checkout _> push _> add _> pull
  • pull _> add _> push _> commit

Frage 67

Frage
Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following: [img] Based on the information above, which of the following is causing the issue?
Antworten
  • The name www.comptia.org does not point to a valid IP address.
  • The server 192.168.168.53 is unreachable.
  • No default route is set on the server.
  • The network interface eth0 is dissconected.

Frage 68

Frage
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?
Antworten
  • echo 1 > /proc/sys/net/ipv4/ipv_forward
  • sysctl -w net.ipv4.ip_forward=1
  • firewall-cmd --enable ipv4_forwarding
  • systemctl start ipv4_forwarding

Frage 69

Frage
A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All logs files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?
Antworten
  • find .-type f -print | xrags grep -In denied
  • find .-type f -print | xrags grep -nv denied
  • find .-type f -print | xrags grep -wL denied
  • find .-type f -print | xrags grep -li denied

Frage 70

Frage
A Linux user reported the following error after trying to connect to the system remotely: ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable. The Linux system administrator executed the following commands in the Linux system while trying to diagnose the issue: [img] Which of the following commands will resolve this issue?
Antworten
  • firewall-cmd --zone=public --permanent --add-service=22
  • systemctl enable firewalld; systemctl restart firewalld
  • firewall-cmd --zone=public --permanent -add-service=ssh
  • firewall-cmd --zone=public --permanent --add-port=22/udp

Frage 71

Frage
A cloud enginner need to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?
Antworten
  • iptables -F INPUT -j 192.168.10.50 -m DROP
  • iptables -A INPUT -s 192.168.10.30 -j DROP
  • iptables -i INPUT --ipv4 192.168.10.50 -z DROP
  • iptables -j INPUT 192.168.10.50 -p DROP

Frage 72

Frage
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection. Given the following output: [img] Which
Antworten
  • restorecon -rv .ssh/authorized_key
  • mv .ssh/authorized_key .ssh/authorized_keys
  • systemctl restart sshd.service
  • chmod 600 mv .ssh/authorized_key

Frage 73

Frage
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?
Antworten
  • pvcreate -L1G /dev/app mkfs.xfs /dev/app mount /dev/app /opt/app
  • parted /dev/sdb --script mkpart primary xfs 1GB mkfs.xfs /dev/sdb mount /dev/sdb /opt/app
  • lvs --create 1G --name app mkfs.xfs /dev/app mount /dev/app /opt/app
  • lvcreate -L 1G -n app app_vq mkfs.xfs /dev/app_vg/app mount /dev/app_vg/app /opt/app

Frage 74

Frage
An administrator installed an application from source into/opt/operations1/ and has received numerous reports that users are not able to access the application without having to use the full path /opt/operations1/bin/*. Which of the following commands should be used to resolve this issue?
Antworten
  • echo 'exportPATH=$PATH:/opt/operations1/bin' >> /etc/profile
  • echo 'exportPATH=/opt/operations1/bin' >> /etc/profile
  • echo 'exportPATH=$PATH/opt/operations1/bin' >> /etc/profile
  • echo 'export $PATH:/operations1/bin' >> /etc/profile

Frage 75

Frage
Which of the following files holds the system configuration for journal when running systemd?
Antworten
  • /etc/systemd/journald.conf
  • /etc/systemd/systemd-journalctl.conf
  • /usr/lib/systemd/journalctl.conf
  • /etc/systemd/systemd-journald.conf

Frage 76

Frage
A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?
Antworten
  • id_dsa.pem
  • id_rsa
  • id_ecdsa
  • id_rsa.pub

Frage 77

Frage
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?
Antworten
  • grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
  • cat /etc/systemd/journald.conf | awk '(print $1, $3)'
  • sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/¨#//q' /etc/systemd/journald.conf
  • journalctl --list-boots && systemctl restart systemd-journald.service

Frage 78

Frage
A systems administrator is investigating why one of the servers has stopped connecting to the internet. [img] Which of the following is causing the issue?
Antworten
  • The DNS address has been commented out in the configuration file.
  • The search entry in the /etc/resolv.conf file is incorrect.
  • Wired connection 1 is offline.
  • No default route is defined.

Frage 79

Frage
A Linux administrator is installing a web server and needs to check whether web traffic has already been allowed through the firewall. Which of the following commands should the administrator use to accomplish this task?
Antworten
  • firewalld query-service-http
  • firewall-cmd --check-service http
  • firewall-cmd --query-service http
  • firewall --check-service http

Frage 80

Frage
A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?
Antworten
  • rpm -i wget
  • rpm -qf wget
  • rpm -F wget
  • rpm -V wget

Frage 81

Frage
A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands. [img] Which of the following commands would address the issue?
Antworten
  • top -p 8321
  • kill -9 8321
  • renice -10 8321
  • free 8321

Frage 82

Frage
A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
Antworten
  • docker export <container_id>
  • docker info <container_id>
  • docker start <container_id>
  • docker inspect <container_id>

Frage 83

Frage
Using AD Query, the security gateway connections to the Active Directory Domain Controllers using what protocol?
Antworten
  • Windows Management Instrumentation (WMI)
  • Hypertext Transfer Protocol Secure (HTTPS)
  • Lightweight Directory Access Protocol (LDAP)
  • Remote Desktop Protocol (RDP)

Frage 84

Frage
To harden one of the servers, and administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?
Antworten
  • Add the line DenyUsers root to the /etc/hosts.deny file.
  • Set PermitRootLogin to no in the /etc/ssh/sshd_config fie.
  • Add the line account required pam_nologin. so the /etc/pam.d/sshd file.
  • Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

Frage 85

Frage
Some servers in an organization have been comprised. Users are unable to access to the organization's web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules: [img] Wich of the following commands will remediate and help resolve the issue?
Antworten
  • IPtables -A FORWARD -i eth0 -p tcp --dport 80 -j ACCEPT IPtables -A FORWARD -i eth0 -p tcp --dport 22 -j ACCEPT
  • IPtables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT IPtables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
  • IPtables -A INPUT -i eth0 -p tcp --sport 80 -j ACCEPT IPtables -A INPUT -i eth0 -p tcp --sport 22 -j ACCEPT
  • IPtables -A INPUT -i eth0 -p tcp --dport :80 -j ACCEPT IPtables -A INPUT -i eth0 -p tcp --dport :22 -j ACCEPT

Frage 86

Frage
A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server. When adding the address, the following error appears: #ip address add 192.168.168.1/33 dev eth0 Error: any valid prefix is expected rather than "192.168.168.1.33". Based on the command and its output above, which of the following is the cause of the issue?
Antworten
  • The CIDR value /33 should be /32 instead.
  • There is no route to 192.168.168.1/33.
  • The interface eth0 does not exist.
  • The IP address 192.168.168.1 is already in use.

Frage 87

Frage
A Linux administrator needs to create a new user named user02. However, user02 must be in a different home directory, which is under /comptia/projects. Which of the following commands will accomplish this task?
Antworten
  • useradd -d /comptia/projects user02
  • useradd -m /comptia/projects user02
  • useradd -b /comptia/projects user02
  • useradd -s /comptia/projects user02

Frage 88

Frage
An administrator deployed a Linux server that is running a web application on port 6379/tcp. SELinux is in enforcing mode based an organization policies. The port is open on the firewall. Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied. The administrator ran some commands that resulted in the following ouput: [img] Which of the following commands should be used to resolve the issue?
Antworten
  • semanage port -d -t http_port_t -p tcp 6379
  • semanage port -a -t http_port_t -p tcp 6379
  • semanage port -a http_port_t -p top 6379
  • semanage port -I -t http_port_tcp 6379

Frage 89

Frage
Which of the following commands is used to configure the default permissions for new files?
Antworten
  • setenforce
  • sudo
  • umask
  • chmod

Frage 90

Frage
Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
Antworten
  • route -i etho -p add 10.0.213.5 10.0.5.1
  • route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
  • echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
  • ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0

Frage 91

Frage
An administrator needs to make some changes in the laC declaration templates. Which of the following commands would maintain version control?
Antworten
  • git clone https://github.com/comptia/linux+-.git git push origin
  • git clone https://github.com/comptia/linux+-.git git fetch New-Branch
  • git clone https://github.com/comptia/linux+-.git git status
  • git clone https://github.com/comptia/linux+-.git git checkout -b <new-branch>

Frage 92

Frage
Based on a organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below. [img] To which of the following configuration files will the required changes needs to be made?
Antworten
  • /etc/login.defs
  • /etc/security/limits.conf
  • /etc/default/useradd
  • /etc/profile

Frage 93

Frage
A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Give the following: [img] Which of the following commands should replace the <CONDITIONAL> string?
Antworten
  • if [-f "$filename"]; then
  • if [-d "$filename"]; then
  • if [-f "$filename"] then
  • if [-f "$filename"]; while

Frage 94

Frage
A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server. To troubleoshoot the issue, the system administrator runs netstat and receives the following output. #netstat -anp | grep appd | grep -w LISTEN tcp 0 0 127.0.0.1:9443 0:0:0:0:* LISTEN 1234/appd Based on the information above, which of the following is causing the issue?
Antworten
  • The IP address 0.0.0.0 is not valid.
  • The application is listening on the loopback interface.
  • The application is listening on port 1234.
  • The application is not running.

Frage 95

Frage
A junior administrator is setting up a new Linux server that is intended to be a used as a router at a remote site. Which of the following parameters will accomplish this goal?
Antworten
  • echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -i eth0 -j MASQUERADE
  • echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
  • echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A PREROUTING -o eth0 -j MASQUERADE

Frage 96

Frage
A Linux administrator is troubleshooting an issue in which an application service failed to start on a Linux server. The administrator runs a few commands and gets the following ouputs: [img] Based on the above ouputs, which of the following is the MOST likely action the administrator should take to resolve this issue? Based
Antworten
  • Enable the logsearch.service and restart the service.
  • Increase the TimeoutStartUSec configuration for the logsearch.service
  • Update the OnCalendar configuration to schedule the start of the logsearch.service.
  • Update the KillSignal configuration for the logsearch.service to use TERM.

Frage 97

Frage
A Linux enginner has been notified about the possible deletion of logs from the file /opt/app/logs. The enginner needs to ensure the log file can only be written into without removing previous entries. #lsattz /opt/app/logs ------------------e--- logs Which of the following commands would be BEST to use to accomplish this task?
Antworten
  • chattr +a /opt/app/logs
  • chattr +d /opt/app/logs
  • chattr +i /opt/app/logs
  • chattr +c /opt/app/logs

Frage 98

Frage
A Linux administrator needs to connect securely to a remote server in order to install application software. Which of the following commands would allow this connection?
Antworten
  • scp "ABC-key.pem" root@10.0.0.1
  • sftp root@10.0.0.1
  • telnet 10.0.0.1 80
  • ssh -i "ABC-key.perm" root@10.0.0.1
  • sftp "ABC-key.perm" root@10.0.0.1

Frage 99

Frage
A Linux systems administrator is setting up a new web server and getting 404 -NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux system administrator executes the following commands: [img] Which of the following commands will BEST resolve this issue?
Antworten
  • sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  • restorecon -R -v /var/www/html
  • setenforce 0
  • setsebool -P hhtpd_can_network_connect_db on

Frage 100

Frage
After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?
Antworten
  • dnf remove packagename
  • apt-get remove packagename
  • rpm -i packagename
  • apt remove packagename

Frage 101

Frage
A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?
Antworten
  • systemctl cancel nginx
  • systemctl disable ngninx
  • systemctl mask nginx
  • systemctl stop nginx

Frage 102

Frage
An administrator is trying to diagnose a performance issue and is reviewing the following output: [img] Based on the above ouput, which of the following BEST describes the root cause?
Antworten
  • The system has reached its maximum IOPS, causing the system to be slow.
  • The system has reached its maximum permitted throughput, therefore iowait is increasing.
  • The system is motly idle, therefore the iowait is high.
  • The system has a partitioned disk, which cuases the IOPS to be doubled.

Frage 103

Frage
Severals users reported that they were unable to write data to the /oracle1 directory. The following ouput has been provided. [img] Which of the following commands should the administrator use to diagnose the issue?
Antworten
  • df -i /oracle1
  • fdisk -1 /dev/sdb1
  • lsblk /dev/sdb1
  • du -sh /oracle1

Frage 104

Frage
A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr--r--.?
Antworten
  • chmod 755 filename.log
  • chmod 640 filename.log
  • chmod 740 filename.log
  • chmod 744 filename.log

Frage 105

Frage
A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server. Device mismatch detected. The administrator performed the commands listen below to further troubleshoot and mount the missing filesystem: [img] Which of the following should administrator use to resolve the device mismatch issue and mount the disk? Which of the following
Antworten
  • mount disk by device-id
  • fsck -A
  • mount disk by-label
  • mount disk by-blkid

Frage 106

Frage
A Linux engineer set up two local DNS server (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared: Send-mail: Cannot open mail:25 The local machine DNS settings are: [img] Which of the following commands could the engineer use to query the DNS server to get mail server information?
Antworten
  • dig@example.com 10.10.10.20 a
  • dig@10.10.10.20 example.com.mx
  • dig@example.com 10.10.10.20 ptr
  • dig@10.10.10.20 example.com ns

Frage 107

Frage
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following ouput was received: [img] Which of the following commands can be used to resolve this issue?
Antworten
  • chgrp -R 755 data/
  • chmod -R 777 data/
  • chattr -R -i data/
  • chown -R data/

Frage 108

Frage
A systems administrator made some changes in the ~/.bashrc file and added an alias command. When the administrator tried to use the alias command, it did not work. Which of the following should be executed FIRST?
Antworten
  • source ~/.bashrc
  • read ~./bashrc
  • touch ~./bashrc
  • echo ~./bashrc

Frage 109

Frage
A system administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
Antworten
  • tar -cvzf /dev/sdd1 /dev/sdc1
  • rsync /dev/sdc1 /dev/sdd1
  • dd if=/dev/sdc1 of=/dev/sdd1
  • scp /dev/sdc1 /dev/sdd1

Frage 110

Frage
A Linux engineer needs to create a custom script, cleanup.sh, to run a boot as part of the system services. Which of the following processes would accomplish this task?
Antworten
  • Create a unit file in the /etc/default/ directory. systemctl enable cleanup systemctl is-enabled cleanup
  • Create a unit file in the /etc/ske1/directory. systemctl enable cleanup systemctl is-enable cleanup
  • Create a unit file in the /etc/systemd/system/ directory. systemctl enable cleanup systemctl is-enable cleanup
  • Create a unit file in the /etc/sysctl.d/ directory. systemctl enable cleanup systemctl is-enable cleanup

Frage 111

Frage
A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?
Antworten
  • git reflog
  • git pull
  • git status
  • git push

Frage 112

Frage
A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following ouput: [img] Which of the following should the administrator do to provide the BEST solution for the reported issue?
Antworten
  • Configure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.
  • Configure a different nice value for the Java process to allow for more users and prevent the Java process from restarting during business hours.
  • Configure more CPU core to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources.
  • Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.

Frage 113

Frage
A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task: [img] Which of the following technologies is the administrator using?
Antworten
  • Ansible
  • Puppet
  • Chef
  • Terraform

Frage 114

Frage
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 propper access to the script?
Antworten
  • chown user2:accounting script.sh chmod 750 script.sh
  • chown user1:accounting script.sh chmod 777 script.sh
  • chown accounting:user1 script.sh chmod 057 script.sh
  • chown user2:accounting script.sh chmod u+x script.sh

Frage 115

Frage
A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?
Antworten
  • pam_login.so
  • pam_access.so
  • pam_logindef.so
  • pam_nologin.so

Frage 116

Frage
A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?
Antworten
  • ss -plnt
  • tcpdump -nL
  • netstat -pn
  • lsof -lt

Frage 117

Frage
What is the main objective when using Application Control?
Antworten
  • To filter out specific content.
  • To assist the firewall blade with handling traffic.
  • To see what users are doing.
  • Ensure security and privacy of information.

Frage 118

Frage
A Linux system administrator receives a notification that one of the server's filesystem is full. Which of the following commands would help the administrator to identify this filesystem?
Antworten
  • lsblk
  • fdisk
  • df -h
  • du -ah

Frage 119

Frage
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?
Antworten
  • /etc/host.conf
  • /etc/hostname
  • /etc/services
  • /etc/ssh/sshd_config

Frage 120

Frage
A developer is trying to install an application remotly that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?
Antworten
  • $RHOST
  • SETENV
  • $SHELL
  • $DISPLAY

Frage 121

Frage
Which of the following technologies can be used as a central repository of Linux users and groups?
Antworten
  • LDAP
  • MFA
  • SSO
  • PAM

Frage 122

Frage
A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?
Antworten
  • hostnamectl status --no-ask-password
  • hostnamectl set-hostname "$(perl -le "print" "A" x86)"
  • hostnamectl set-hostname Comptia-WebNode -H root@192.168.2.14
  • hostnamectl set-hostname Comptia-WebNode --transient

Frage 123

Frage
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
Antworten
  • nslookup
  • rsync
  • netstat
  • host

Frage 124

Frage
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?
Antworten
  • scp -p /data remote:/backup/data
  • ssh -i /remote:/backup/ /data
  • rsync -a /data remote:/backup/
  • cp -r /data/remote/backup

Frage 125

Frage
A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values: [img] Which of the following commands will the administrator most likely run NEXT?
Antworten
  • vmstat
  • strace
  • htop
  • lsof

Frage 126

Frage
A Linux administrator is troubleshooting the root cause of a high CPU load and average. [img] Which of the following commands will permanently resolve the issue?
Antworten
  • renice -n -20 6295
  • pstree -p 6295
  • iostat -cy 1 5
  • kill -9 6295

Frage 127

Frage
A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)
Antworten
  • sysctl net.ipv4.ip_forward
  • sysctl -w net.ipv4.ip_forward=1
  • echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
  • echo 1 > /proc/sys/net/ipv4/ip_forward
  • sysctl -p
  • echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

Frage 128

Frage
A Linux administrator is trying to remove the ACL from the file /home/user/data.txt but receives the following error message: setfacl: data.txt: operation not permitted Given the following analysis: [img] Which of the following is causing the error message?
Antworten
  • The administrator is not using a highly privileged account.
  • The filesystem is mounted with the wrong options.
  • SELinux file context is denying the ACL changes.
  • File attributes are preventing file modification.

Frage 129

Frage
Which of the following tools is commonly used for creating CI/CD pipelines?
Antworten
  • Chef
  • Puppet
  • Jenkins
  • Ansible

Frage 130

Frage
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?
Antworten
  • vgs
  • lvs
  • fdisk -1
  • pvs

Frage 131

Frage
A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?
Antworten
  • git clone https://git.company.com/admin/project.git
  • git checkout https://git.company.com/admin/project.git
  • git pull https://git.company.com/admin/project.git
  • git branch https://git.company.com/admin/project.git

Frage 132

Frage
A Linux system fails to start and delievers the following error message: [img] Which of the following commands can be used to address this issue?
Antworten
  • fsck.ext4 /dev/sda1
  • partprobe /dev/sda1
  • fdisk /dev/sda1
  • mkfs.ext4 /dev/sda1

Frage 133

Frage
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 filesystem was missing. The filesystem was not listed in /etc/fstab and might have been mounted manually by someone prior the reboot. Which of the following would prevent this issue from reoccurring in the future?
Antworten
  • Sync the mounts units.
  • Mount the filesystem manually.
  • Create a mount unit and enable it to be started at boot.
  • Remount all the missing filesystems.

Frage 134

Frage
A Linux engineer needs to download a ZIP file and wants to set the nice value to -10 for this new process. Which of the following commands will help to accomplish the task?
Antworten
  • nice -v -10 wget https://foo.com/installation.zip
  • renice -v -10 wget https://foo.com/installation.zip
  • renice -10 wget https://foo.com/installation.zip
  • nice -10 wget https://foo.com/installation.zip

Frage 135

Frage
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?
Antworten
  • systemctl status systemd-resolved.service
  • systemctl enable systemd-resolved.service
  • systemctl mask systemd-resolved.service
  • systemctl show system

Frage 136

Frage
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?
Antworten
  • partprobe vpcreate lvextend
  • lvcreate fdisk partprobe
  • fdisk partprobe mkfs
  • fdisk pvcreate vgextend

Frage 137

Frage
A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two).
Antworten
  • Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
  • Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.
  • Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.
  • Interrupt the boot process in the GRUB menu and add single=user in the kernel line.
  • Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
  • Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.

Frage 138

Frage
Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache. INSTRUCTIONS Install Apache and start the service. Verify that the Apache service is running with the defaults. Typing "help" in the terminal will show a list of relevant event commands. If any time would like to bring back the initial state of the simulation, please click the Reset All button. [blank_start]yum install httpd[blank_end] systemctl --now enable httpd systemctl status httpd netstat -tunlp | grep 80 pkill <processname> systemctl restart httpd systemctl status httpd
Antworten
  • yum install httpd
  • systemctl --now enable httpd
  • (check 1) systemctl status httpd
  • netstat -tunlp | grep 80
  • pkill <processname>
  • systemctl restart httpd
  • (check2) systemctl status httpd

Frage 139

Frage
A Linux systems administrator needs to copy files and directories from Server A to Server B. Which of the following commands can be used for this purpose? (Choose two).
Antworten
  • rsyslog
  • cp
  • rsync
  • reposync
  • scp
  • ssh

Frage 140

Frage
Rugged appliances are small appliances with ruggedized hardware and like Quantum Spark appliance they use which operating system?
Antworten
  • Centos Linux
  • Gaia embedded
  • Gaia
  • Red Hat Enterprise Linux version 5

Frage 141

Frage
As a System Administrator, to reduce disk space, you were tasked to create a shell script that does the following: Add a relevant content to /tmp/script.sh, so that it finds and compresses related files in /var/log/ without recursion. INTRUCTIONS Drag and drop snippets to fill the blanks to build a script that performs the actual compression of rotated log files. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Antworten
  • egrep
  • "$log.[1-6]$"
  • "log.[1-6]$"
  • for
  • while
  • repeat
  • xz
  • in
  • then
  • /tmp/tempfile
  • /var/log
  • filename
  • gzip
  • rar
  • tar
  • awk
  • done
  • until

Frage 142

Frage
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?
Antworten
  • docker image inspect
  • docker container inspect
  • docker exec <container_name> ls
  • docker ps <container_name>

Frage 143

Frage
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?
Antworten
  • iptables -f filter -l INPUT -p tcp --dport 4000:5000 -A ACCEPT
  • iptables -t filter -A INPUT -p tcp --dport 4000:5000 j ACCEPT
  • iptables filer -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
  • iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT

Frage 144

Frage
Which of the following data structure is written in JSON?
Antworten
  • --- name: user1 position: DevOps floor: 3
  • <table> <thbody><tr> <td>user1</td> <td>DevOps</td> <td>3</td> </tr> </tbody></table>
  • <root> <floor>3</floor> <name>user1</name> <position>DevOps</position> </root>
  • { "name": "user1", "job": "DevOps", "floor":3 }

Frage 145

Frage
Which of the following directories is the mount point in a UEFI system?
Antworten
  • /sys/efi
  • /boot/efi
  • /efi
  • /etc/efi

Frage 146

Frage
A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?
Antworten
  • rpm -s
  • rpm -d
  • rpm -q
  • rpm -e

Frage 147

Frage
In which of the following filesystems are system logs commonly stored?
Antworten
  • /var
  • /tmp
  • /etc
  • /opt

Frage 148

Frage
Which of the following is a function of a bootloader?
Antworten
  • It initializes all the devices that are required to load the OS.
  • It mounts the root filesystem that is required to load the OS.
  • It helps to load the different kernels to initiate the OS startup process.
  • It triggers the start of all the system services.

Frage 149

Frage
A Linux administrator has logged in to a server for the first time and needs to know which services are allowed through the firewall. Which of the following options will return the results for which the administrator is looking?
Antworten
  • firewall-cmd --get-services
  • firewall-cmd --check-config
  • firewall-cmd --list-services
  • systemctl status firewalld

Frage 150

Frage
A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?
Antworten
  • tail -v 20
  • tail -n 20
  • tail -c 20
  • tail -l 20

Frage 151

Frage
A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?
Antworten
  • docker image save test test:v1
  • docker image build test:vl
  • docker image tag test test:vl
  • docker image version test:v1

Frage 152

Frage
A Linux administrator copied a Git repository locally, created a feature branch, and commited some changes to the feature branch. Which of the following Git actions should the Linux administrator use to publish the changes to the main brach of the remote repository?
Antworten
  • rebase
  • tag
  • commit
  • push

Frage 153

Frage
A Linux system is failing to boot with the following error: error: no such partitions Entering rescue mode... grub rescue> Which of the following actions will resolve this issue? (Choose two).
Antworten
  • Execute grub-install --root-directory=/mnt and reboot.
  • Execute grub-install /dev/sdX and reboot.
  • Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
  • Fix the partition modifying /etc/default/grub and reboot.
  • Interrupt the boot process in the GRUB menu and add single to the kernel line.
  • Boot the system on a LiveCD/ISO.

Frage 154

Frage
A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?
Antworten
  • iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT --to-destination 192.0.2.25:3128
  • iptables -t nat -A PREROUTING -p top -dport 81 -j DNAT --to-destination 192.0.2.25:3129
  • iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT --to-destination 192.0.2.25:3129
  • iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.0.2.25:3128

Frage 155

Frage
Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?
Antworten
  • find /var/log -type d -mtime +180 -print -exec rm{}/;
  • find /var/log -type f -modified +180 -rm
  • find /var/log -type f -mtime +180 -exec rm {} /
  • find /var/log -type c -atime +180 -remove

Frage 156

Frage
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?
Antworten
  • docker cp container_id/deployment.yaml deployment.yaml
  • docker cp container_id:/deployment.yaml deployment.yaml
  • docker cp deployment.yaml local://deployment.yaml
  • docker cp container_id/deployment.yaml local://deplyment.yaml

Frage 157

Frage
A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?
Antworten
  • chmod +t /project/access2all
  • chmod +rws /project/access2all
  • chmod 2770 /project/access2all
  • chmod ugo+rwx /project/access2all

Frage 158

Frage
A systems administrator is investigating an issue in which one of the servers is not booting up properly. The journalctl entries show the following: [img] Which of the following will allow the administrator to boot the Linux system to normal mode quickly?
Antworten
  • Comment out the /opt/app filesystem in /etc/fstab and reboot.
  • Reformat the /opt/app filesystem and reboot.
  • Perform filesystem checks on local filesystems and reboot.
  • Trigger a filesystem relabel and reboot.

Frage 159

Frage
A system administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present: [img] Which of the following is the reason the firewall rules are not active?
Antworten
  • iptables is conflicting with firewalld.
  • The wrong system target is actived.
  • FIREWALL_ARGS has no value assigned.
  • The firewalld service is not enanbled.

Frage 160

Frage
A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content: TIMESTAMP=$ (date '+%Y-%m-%d %H:%M:%S') echo "helpme.service: timestamp $(Timestamp)" | systemd -cat -p info sleep 60 done The administrator tries to run the sript after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do the address this issue? (Choose two).
Antworten
  • Add #!/bin/bash to the bottom of the script.
  • Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location
  • Add #!/bin/bash to the top of the script
  • Restart the computer to enable the new service.
  • Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.
  • Shut down the computer to enable the new service.

Frage 161

Frage
A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?
Antworten
  • xargs -f cat toDelete.txt -rm
  • rm -d -r -f toDelete.txt
  • cat toDelete.txt | rm -frd
  • cat toDelete.txt | xargs rm -rf

Frage 162

Frage
After installing a new version of a package, a systems administrator notices a new version of the corresponding .service file was installed. In order to use the new version of the .service file, which of the following commands must be issued FIRST?
Antworten
  • systemctl status
  • systemctl stop
  • systemctl reinstall
  • systemctl daemon-reload

Frage 163

Frage
A Linux system is failing to boot. The following error is displayed in the serial console: [[1;33mDEPEND[Om] Dependency failed for /data. [[1;33mDEPEND[Om] Dependency failed for Local File Systems. Welcome to emergency model After logging in, type "journalctl -xb" to viewsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into default mode. Give root password for maintenance (or type Control-D to continue} Which of the following files will need to be modified for this server to be able to boot again?
Antworten
  • /etc/mtab
  • /dev/sda
  • /etc/fstab
  • /etc/grub.conf

Frage 164

Frage
A system administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output: ;;ANSWER SECTION: db.example.com. 15 IN A 192.168.20.89 The administrator runs grep db.example.com /etc/hosts and receives the following output: 192.168.20.89 db.example.com Given this scenario, which of the following should the administrator do to address this issue?
Antworten
  • Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
  • Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
  • Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
  • Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

Frage 165

Frage
A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration: [img] Which of the following is MOST likely the cause of the issue?
Antworten
  • An internal-only DNS server is configured.
  • The IP netmask is wrong for ens3.
  • Two default routes are configured.
  • The ARP table contains incorrect entries.

Frage 166

Frage
Joe, a user, is unable to log in to the Linux system. Given the following ouput: [img] Which of the following commands would resolve the issue?
Antworten
  • usermod -s /bin/bash joe
  • pam_tally2 -u joe -r
  • passwd -u joe
  • change -E 90 joe

Frage 167

Frage
In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6.5/24 to the newly added network interface enpls0f1. Which of the following commands should the administrator run to achieve the goal?
Antworten
  • ip addr add 10.0.6.5/24 dev enpls0f1
  • echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enpls0f1
  • ifconfig 10.0.6.5/24 enpsls0f1
  • nmcli conn add ipv4.address=10.0.6.5/24 if name snspls0f1

Frage 168

Frage
A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemctl isolate graphical.target and rebooted the system by running systemctl reboot, which fixed the issue?
Antworten
  • The administrator did not reboot the server properly.
  • The administrator did not set the default target to basic.target.
  • The administrator did not set the default target to graphical.target.
  • The administrator did not shut down the server properly.

Frage 169

Frage
Users have been unable to save documents to /home/tmp/temp and have been receiving the following error: Path not found A junior technician checks the locations and see 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?
Antworten
  • cp /home/tmp/tempa /home/tmp/temp
  • mv /home/tmp/tempa /home/tmp/temp
  • cd /temp/tmp/tempa
  • ls /home/tmp/tempa

Frage 170

Frage
A systems administrator is encountering performance issues. The administrator runs a command with the following output: 09:10:18 up 457 days, 32 min, 5 users, load average: 4.22 6.63 5.58 The Linux server has the following system properties: CPU4 vCPU Memory: 50GB Which of the following accurately describes this situation?
Antworten
  • The system is under CPU pressure and will requires additional vCPUs.
  • The system has been running for over a year and requires a reboot.
  • Too many users are currently logged in to the system.
  • The system requires more memory.

Frage 171

Frage
A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the contaners in an exited state?
Antworten
  • docker rm --all
  • docker rm $(docker ps -aq)
  • docker images prune*
  • docker rm --state exited
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Modul 2D FernUni Hagen Bourdieu
Anni T-Pünktchen
Chemische Grundlagen-Auffrischung
anna garcias
Kalter Krieg
Anina Hagi
Geometrie - das Rechteck
Robert Mairginter
IKA-Theoriefragen Serie 20 (15 Fragen)
IKA ON ICT GmbH
Marketing-Mix
Marion Engel
Fend - 4 Funktionen von Schule
Josephine .
WT1 Uni Due
Awash Kaul
vetie mibi Altfragen 2019
Anne Heyne
Vetie - Innere Medzin 2018
Fioras Hu