CompTIA Linux+ XK005 (171Q).

Descrição

Recurso de estudio para certificación CompTIA Linux + XK005.
Sc Con
Quiz por Sc Con, atualizado more than 1 year ago
Sc Con
Criado por Sc Con quase 2 anos atrás
2023
2

Resumo de Recurso

Questão 1

Questão
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?
Responda
  • fg
  • su
  • bg
  • ed

Questão 2

Questão
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).
Responda
  • parted
  • df
  • mount
  • du
  • fdisk
  • dd
  • ls

Questão 3

Questão
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?
Responda
  • 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.

Questão 4

Questão
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?
Responda
  • 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.

Questão 5

Questão
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?
Responda
  • 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

Questão 6

Questão
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?
Responda
  • 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

Questão 7

Questão
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?
Responda
  • /etc/ssh/sshd_config
  • /etc/ssh/moduli
  • ~/.ssh/config
  • ~/.ssh/authorized_keys

Questão 8

Questão
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?
Responda
  • dmidecode -s system-version
  • Iscpu
  • sysctl-a
  • cat /sys/device/system/cpu/possible

Questão 9

Questão
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?
Responda
  • docker run -ti app /bin/sh
  • podman exec -ti app /bin/sh
  • podman run -d app /bin/sh
  • docker exec -d app /bin/bash

Questão 10

Questão
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?
Responda
  • 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

Questão 11

Questão
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?
Responda
  • chown web:web /home/web
  • chmod -R 400 /home/web
  • echo "umask 377" >> /home/web/.bashrc
  • setfacl read /home/web

Questão 12

Questão
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?
Responda
  • TRIGGERS=mariadb.service
  • ONFAILURE=mariadb.service
  • WANTEDBY=mariadb.service
  • REQUIRES=mariadb.service

Questão 13

Questão
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).
Responda
  • free -h
  • nc -v 127.0.0.1 3306
  • renice -15 $(pidof mysql)
  • lsblk
  • killall -15
  • vmstat -a 1 4

Questão 14

Questão
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?
Responda
  • restorecon .ssh/authorized_keys
  • ssh_keygen -t rsa -o .ssh/authorized_keys
  • chown root:root .ssh/authorized keys
  • chmod 600 .ssh/authorized_keys

Questão 15

Questão
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?
Responda
  • docker pull nginx
  • docker attach ngninx
  • docker commit nginx
  • docker import nginx

Questão 16

Questão
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).
Responda
  • wget
  • ssh-keygen
  • ssh-keyscan
  • ssh-copy-id
  • ftpd
  • scp

Questão 17

Questão
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?
Responda
  • chown -s 755 devops
  • chown 1755 devops
  • chmod -s 755 devops
  • chmod 1755 devops

Questão 18

Questão
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?
Responda
  • rpm -qa | grep kernel, uname -a
  • yun -y update; shutdown -r now
  • cat /etc/centos-release; rpm -Uvh --nodeps
  • telinit 1; restorecon -Rv /boot

Questão 19

Questão
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?
Responda
  • The system is running out of swap space.
  • The CPU is overloaded.
  • The memory is exhausted.
  • The processes are paging.

Questão 20

Questão
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?
Responda
  • chmod 4744 dev_team.txt
  • chmod 744 --seduid dev_team.txt
  • chmod -c 744 dev_team.txt
  • chmod -v 4744 --suid dev_team.txt

Questão 21

Questão
Which of the following commands will display the operating system?
Responda
  • uname -n
  • uname -s
  • uname -o
  • uname -m

Questão 22

Questão
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?
Responda
  • grub-install /dev/hda
  • grub-install /dev/sda
  • grub-install /dev/sr0
  • grub-install /dev/hd0,0

Questão 23

Questão
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?
Responda
  • 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

Questão 24

Questão
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?
Responda
  • Docker
  • On-premises systems
  • Cloud-based systems
  • Kubernetes

Questão 25

Questão
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?
Responda
  • dnf list and dnf remove last
  • dnf remove and dnf check
  • dnf info and dnf upgrade
  • dnf history and dnf history undo last

Questão 26

Questão
Which of the following enables administrators to configure and enforce MFA on a Linux system?
Responda
  • Kerberos
  • SELinux
  • PAM
  • PKI

Questão 27

Questão
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?
Responda
  • ifconfig hw eth1
  • netstat -r eth1
  • ss -ti eth1
  • ip link show eth1

Questão 28

Questão
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?
Responda
  • apt-get upgrade
  • rpm -a
  • yum updateinfo
  • dnf update
  • yum check-update

Questão 29

Questão
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?
Responda
  • mount /dev/sdb1 /media/usb
  • mount /dev/sdb0 /media/usb
  • mount /dev/sdb /media/usb
  • mount -t usb /dev/sdb1 /media/usb

Questão 30

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

Questão 31

Questão
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?
Responda
  • 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.

Questão 32

Questão
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?
Responda
  • visudo -c
  • test -f /etc/sudoers
  • sudo vi check
  • cat /etc/sudoers | tee test

Questão 33

Questão
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?
Responda
  • ~/.ssh/authkeys
  • ~/.ssh/keys
  • ~/.ssh/authorized_keys
  • ~/.ssh/keyauth

Questão 34

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

Questão 35

Questão
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?
Responda
  • systemctl isolate multi-user.target
  • systemctl isolate graphical.target
  • systemctl isolate network.target
  • systectl isolate basic.target

Questão 36

Questão
When trying to log in remotely to a server, a user receives the following message: [image] Which of the following is causing the issue?
Responda
  • 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.

Questão 37

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

Questão 38

Questão
At what point is the Internal Certificate Authority (ICA) created?
Responda
  • 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.

Questão 39

Questão
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?
Responda
  • docker images prune -a
  • docker push images -a
  • docker rmi -a images
  • docker images rmi --all

Questão 40

Questão
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?
Responda
  • Puppet
  • Git
  • Ansible
  • Terraform

Questão 41

Questão
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?
Responda
  • chattr +i file
  • chown it:finance file
  • chmod 666 file
  • setfacl -m g:finance:rw file

Questão 42

Questão
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?
Responda
  • Markdown
  • XML
  • YAML
  • JSON

Questão 43

Questão
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]
Responda
  • 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.

Questão 44

Questão
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]
Responda
  • 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.

Questão 45

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

Questão 46

Questão
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?
Responda
  • 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

Questão 47

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

Questão 48

Questão
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?
Responda
  • scp ~/.ssh/id_rsa user@server:~/
  • rsync ~/.ssh/ user@server:~/
  • ssh-add user server
  • ssh-copy-id user@server

Questão 49

Questão
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?
Responda
  • docker image load java: 7
  • docker image pull java:7
  • docker image import java:7
  • docker image build java:7

Questão 50

Questão
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]
Responda
  • 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.

Questão 51

Questão
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?
Responda
  • /etc/yum.conf
  • /etc/ssh/sshd.conf
  • /etc/yum.repos.d/db.repo
  • /etc/resolv.conf

Questão 52

Questão
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?
Responda
  • 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

Questão 53

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

Questão 54

Questão
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?
Responda
  • ls | cpio -iv > cloud.epio
  • ls | cpio -iv < cloud.epio
  • ls | cpio -ov > cloud.cpio
  • ls cpio -ov < cloud.cpio

Questão 55

Questão
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?
Responda
  • sudo fdisk /dev/sda
  • sudo fdisk -s /dev/sda
  • sudo fdisk -l
  • sudo fdisk -h

Questão 56

Questão
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?
Responda
  • telinit 0
  • systemctl reboot
  • systenctl get-default
  • systemctl emergency

Questão 57

Questão
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).
Responda
  • 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

Questão 58

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

Questão 59

Questão
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?
Responda
  • chmod 775
  • umask 002
  • chattr -Rv
  • chown -cf

Questão 60

Questão
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?
Responda
  • chgrp reet files
  • chacl -R 644 files
  • chown users files
  • chmod -t files

Questão 61

Questão
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?
Responda
  • 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.

Questão 62

Questão
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?
Responda
  • chgrp system accountname
  • passwd -s accountname
  • chmod -G system account name
  • change -E -1 accountname

Questão 63

Questão
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).
Responda
  • 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

Questão 64

Questão
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?
Responda
  • 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

Questão 65

Questão
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?
Responda
  • gedit & disown
  • kill 9 %1
  • fg %1
  • bg %1 job name

Questão 66

Questão
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?
Responda
  • pull _> push _> add _> checkout
  • pull _> add _> commit _> push
  • checkout _> push _> add _> pull
  • pull _> add _> push _> commit

Questão 67

Questão
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?
Responda
  • 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.

Questão 68

Questão
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?
Responda
  • echo 1 > /proc/sys/net/ipv4/ipv_forward
  • sysctl -w net.ipv4.ip_forward=1
  • firewall-cmd --enable ipv4_forwarding
  • systemctl start ipv4_forwarding

Questão 69

Questão
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?
Responda
  • 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

Questão 70

Questão
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?
Responda
  • 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

Questão 71

Questão
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?
Responda
  • 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

Questão 72

Questão
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
Responda
  • restorecon -rv .ssh/authorized_key
  • mv .ssh/authorized_key .ssh/authorized_keys
  • systemctl restart sshd.service
  • chmod 600 mv .ssh/authorized_key

Questão 73

Questão
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?
Responda
  • 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

Questão 74

Questão
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?
Responda
  • 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

Questão 75

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

Questão 76

Questão
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?
Responda
  • id_dsa.pem
  • id_rsa
  • id_ecdsa
  • id_rsa.pub

Questão 77

Questão
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?
Responda
  • 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

Questão 78

Questão
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?
Responda
  • 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.

Questão 79

Questão
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?
Responda
  • firewalld query-service-http
  • firewall-cmd --check-service http
  • firewall-cmd --query-service http
  • firewall --check-service http

Questão 80

Questão
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?
Responda
  • rpm -i wget
  • rpm -qf wget
  • rpm -F wget
  • rpm -V wget

Questão 81

Questão
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?
Responda
  • top -p 8321
  • kill -9 8321
  • renice -10 8321
  • free 8321

Questão 82

Questão
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?
Responda
  • docker export <container_id>
  • docker info <container_id>
  • docker start <container_id>
  • docker inspect <container_id>

Questão 83

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

Questão 84

Questão
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?
Responda
  • 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.

Questão 85

Questão
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?
Responda
  • 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

Questão 86

Questão
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?
Responda
  • 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.

Questão 87

Questão
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?
Responda
  • useradd -d /comptia/projects user02
  • useradd -m /comptia/projects user02
  • useradd -b /comptia/projects user02
  • useradd -s /comptia/projects user02

Questão 88

Questão
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?
Responda
  • 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

Questão 89

Questão
Which of the following commands is used to configure the default permissions for new files?
Responda
  • setenforce
  • sudo
  • umask
  • chmod

Questão 90

Questão
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?
Responda
  • 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

Questão 91

Questão
An administrator needs to make some changes in the laC declaration templates. Which of the following commands would maintain version control?
Responda
  • 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>

Questão 92

Questão
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?
Responda
  • /etc/login.defs
  • /etc/security/limits.conf
  • /etc/default/useradd
  • /etc/profile

Questão 93

Questão
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?
Responda
  • if [-f "$filename"]; then
  • if [-d "$filename"]; then
  • if [-f "$filename"] then
  • if [-f "$filename"]; while

Questão 94

Questão
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?
Responda
  • 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.

Questão 95

Questão
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?
Responda
  • 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

Questão 96

Questão
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
Responda
  • 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.

Questão 97

Questão
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?
Responda
  • chattr +a /opt/app/logs
  • chattr +d /opt/app/logs
  • chattr +i /opt/app/logs
  • chattr +c /opt/app/logs

Questão 98

Questão
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?
Responda
  • 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

Questão 99

Questão
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?
Responda
  • 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

Questão 100

Questão
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?
Responda
  • dnf remove packagename
  • apt-get remove packagename
  • rpm -i packagename
  • apt remove packagename

Questão 101

Questão
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?
Responda
  • systemctl cancel nginx
  • systemctl disable ngninx
  • systemctl mask nginx
  • systemctl stop nginx

Questão 102

Questão
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?
Responda
  • 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.

Questão 103

Questão
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?
Responda
  • df -i /oracle1
  • fdisk -1 /dev/sdb1
  • lsblk /dev/sdb1
  • du -sh /oracle1

Questão 104

Questão
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--.?
Responda
  • chmod 755 filename.log
  • chmod 640 filename.log
  • chmod 740 filename.log
  • chmod 744 filename.log

Questão 105

Questão
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
Responda
  • mount disk by device-id
  • fsck -A
  • mount disk by-label
  • mount disk by-blkid

Questão 106

Questão
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?
Responda
  • 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

Questão 107

Questão
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?
Responda
  • chgrp -R 755 data/
  • chmod -R 777 data/
  • chattr -R -i data/
  • chown -R data/

Questão 108

Questão
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?
Responda
  • source ~/.bashrc
  • read ~./bashrc
  • touch ~./bashrc
  • echo ~./bashrc

Questão 109

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

Questão 110

Questão
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?
Responda
  • 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

Questão 111

Questão
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?
Responda
  • git reflog
  • git pull
  • git status
  • git push

Questão 112

Questão
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?
Responda
  • 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.

Questão 113

Questão
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?
Responda
  • Ansible
  • Puppet
  • Chef
  • Terraform

Questão 114

Questão
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?
Responda
  • 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

Questão 115

Questão
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?
Responda
  • pam_login.so
  • pam_access.so
  • pam_logindef.so
  • pam_nologin.so

Questão 116

Questão
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?
Responda
  • ss -plnt
  • tcpdump -nL
  • netstat -pn
  • lsof -lt

Questão 117

Questão
What is the main objective when using Application Control?
Responda
  • 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.

Questão 118

Questão
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?
Responda
  • lsblk
  • fdisk
  • df -h
  • du -ah

Questão 119

Questão
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?
Responda
  • /etc/host.conf
  • /etc/hostname
  • /etc/services
  • /etc/ssh/sshd_config

Questão 120

Questão
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?
Responda
  • $RHOST
  • SETENV
  • $SHELL
  • $DISPLAY

Questão 121

Questão
Which of the following technologies can be used as a central repository of Linux users and groups?
Responda
  • LDAP
  • MFA
  • SSO
  • PAM

Questão 122

Questão
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?
Responda
  • 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

Questão 123

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

Questão 124

Questão
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?
Responda
  • scp -p /data remote:/backup/data
  • ssh -i /remote:/backup/ /data
  • rsync -a /data remote:/backup/
  • cp -r /data/remote/backup

Questão 125

Questão
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?
Responda
  • vmstat
  • strace
  • htop
  • lsof

Questão 126

Questão
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?
Responda
  • renice -n -20 6295
  • pstree -p 6295
  • iostat -cy 1 5
  • kill -9 6295

Questão 127

Questão
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.)
Responda
  • 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

Questão 128

Questão
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?
Responda
  • 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.

Questão 129

Questão
Which of the following tools is commonly used for creating CI/CD pipelines?
Responda
  • Chef
  • Puppet
  • Jenkins
  • Ansible

Questão 130

Questão
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?
Responda
  • vgs
  • lvs
  • fdisk -1
  • pvs

Questão 131

Questão
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?
Responda
  • 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

Questão 132

Questão
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?
Responda
  • fsck.ext4 /dev/sda1
  • partprobe /dev/sda1
  • fdisk /dev/sda1
  • mkfs.ext4 /dev/sda1

Questão 133

Questão
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?
Responda
  • 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.

Questão 134

Questão
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?
Responda
  • 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

Questão 135

Questão
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?
Responda
  • systemctl status systemd-resolved.service
  • systemctl enable systemd-resolved.service
  • systemctl mask systemd-resolved.service
  • systemctl show system

Questão 136

Questão
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?
Responda
  • partprobe vpcreate lvextend
  • lvcreate fdisk partprobe
  • fdisk partprobe mkfs
  • fdisk pvcreate vgextend

Questão 137

Questão
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).
Responda
  • 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.

Questão 138

Questão
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
Responda
  • 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

Questão 139

Questão
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).
Responda
  • rsyslog
  • cp
  • rsync
  • reposync
  • scp
  • ssh

Questão 140

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

Questão 141

Questão
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.
Responda
  • egrep
  • "$log.[1-6]$"
  • "log.[1-6]$"
  • for
  • while
  • repeat
  • xz
  • in
  • then
  • /tmp/tempfile
  • /var/log
  • filename
  • gzip
  • rar
  • tar
  • awk
  • done
  • until

Questão 142

Questão
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?
Responda
  • docker image inspect
  • docker container inspect
  • docker exec <container_name> ls
  • docker ps <container_name>

Questão 143

Questão
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?
Responda
  • 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

Questão 144

Questão
Which of the following data structure is written in JSON?
Responda
  • --- 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 }

Questão 145

Questão
Which of the following directories is the mount point in a UEFI system?
Responda
  • /sys/efi
  • /boot/efi
  • /efi
  • /etc/efi

Questão 146

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

Questão 147

Questão
In which of the following filesystems are system logs commonly stored?
Responda
  • /var
  • /tmp
  • /etc
  • /opt

Questão 148

Questão
Which of the following is a function of a bootloader?
Responda
  • 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.

Questão 149

Questão
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?
Responda
  • firewall-cmd --get-services
  • firewall-cmd --check-config
  • firewall-cmd --list-services
  • systemctl status firewalld

Questão 150

Questão
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?
Responda
  • tail -v 20
  • tail -n 20
  • tail -c 20
  • tail -l 20

Questão 151

Questão
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?
Responda
  • docker image save test test:v1
  • docker image build test:vl
  • docker image tag test test:vl
  • docker image version test:v1

Questão 152

Questão
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?
Responda
  • rebase
  • tag
  • commit
  • push

Questão 153

Questão
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).
Responda
  • 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.

Questão 154

Questão
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?
Responda
  • 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

Questão 155

Questão
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?
Responda
  • 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

Questão 156

Questão
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?
Responda
  • 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

Questão 157

Questão
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?
Responda
  • chmod +t /project/access2all
  • chmod +rws /project/access2all
  • chmod 2770 /project/access2all
  • chmod ugo+rwx /project/access2all

Questão 158

Questão
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?
Responda
  • 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.

Questão 159

Questão
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?
Responda
  • iptables is conflicting with firewalld.
  • The wrong system target is actived.
  • FIREWALL_ARGS has no value assigned.
  • The firewalld service is not enanbled.

Questão 160

Questão
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).
Responda
  • 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.

Questão 161

Questão
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?
Responda
  • xargs -f cat toDelete.txt -rm
  • rm -d -r -f toDelete.txt
  • cat toDelete.txt | rm -frd
  • cat toDelete.txt | xargs rm -rf

Questão 162

Questão
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?
Responda
  • systemctl status
  • systemctl stop
  • systemctl reinstall
  • systemctl daemon-reload

Questão 163

Questão
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?
Responda
  • /etc/mtab
  • /dev/sda
  • /etc/fstab
  • /etc/grub.conf

Questão 164

Questão
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?
Responda
  • 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.

Questão 165

Questão
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?
Responda
  • 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.

Questão 166

Questão
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?
Responda
  • usermod -s /bin/bash joe
  • pam_tally2 -u joe -r
  • passwd -u joe
  • change -E 90 joe

Questão 167

Questão
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?
Responda
  • 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

Questão 168

Questão
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?
Responda
  • 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.

Questão 169

Questão
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?
Responda
  • cp /home/tmp/tempa /home/tmp/temp
  • mv /home/tmp/tempa /home/tmp/temp
  • cd /temp/tmp/tempa
  • ls /home/tmp/tempa

Questão 170

Questão
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?
Responda
  • 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.

Questão 171

Questão
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?
Responda
  • docker rm --all
  • docker rm $(docker ps -aq)
  • docker images prune*
  • docker rm --state exited

Semelhante

Aprenda a fazer uma boa Redação em 5 passos
Alessandra S.
Quimica Inorganica
jaaziel.telles
Como estudar com eficiência
Alessandra S.
Sala de Aula Invertida
GoConqr suporte .
Mapa Mental - Como Criar um Mapa Mental
Adelaide Silva A
Estrutura das palavras e Processo de formação das palavras
Juliane Antoniel
Músculos e ossos - Nível fácil
Daniel Pereira
Tecido Epitelial
bedamorim
SIMULADÃO EA-HSG TRADIÇÕES, USOS, COSTUMES E LINGUAGEM DO MAR
isac rodrigues
Matemática 9º ano
Carlos Itapecuru
ACA - PARTE 1
Carlos Henrique Lima