NPower Linux+ New Study Guide: Complete With
Correct Solutions
Q#1
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?
A. rpm -qa | grep kernel; uname -a
B. yum -y update; shutdown -r now
C. cat /etc/centos-release; rpm -Uvh --nodeps
D. telinit 1; restorecon -Rv /boot Right Ans - A. rpm -qa | grep kernel;
uname -a
Q#2
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?
A. /etc/host.conf
B. /etc/hostname
C. /etc/services
D. /etc/ssh/sshd_config Right Ans - D. /etc/ssh/sshd_config
Q#3
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?
A. git reflog
B. git pull
C. git status
D. git push Right Ans - B. git pull
Q#4
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?
A. iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT --to-destination
192.0.2.25:3128
,B. iptables -t nat -A PREROUTING -p tcp --dport 81 -j DNAT --to-destination
192.0.2.25:3129
C. iptables -t nat -I PREROUTING -p tcp --sport 80 -j DNAT --to-destination
192.0.2.25:3129
D. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination
192.0.2.25:3128 Right Ans - D. iptables -t nat -A PREROUTING -p tcp --
dport 80 -j DNAT --to-destination 192.0.2.25:3128
Q#5
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?
A. route -i etho -p add 10.0.213.5 10.0.5.1
B. route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
C. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0 Right Ans - D. ip route
add 10.0.213.5/32 via 10.0.5.1 dev eth0
Q#6
A user is asking the systems administrator for assistance with writing a script
to verify whether a file exists. Given the following:
Which of the following commands should replace the <CONDITIONAL> string?
A. if [ -f "$filename" ]; then
B. if [ -d "$filename" ]; then
C. if [ -f "$filename" ] then
D. if [ -f "$filename" ]; while Right Ans - A. if [ -f "$filename" ]; then
Q#8
A systems administrator is deploying three identical, cloud-based servers. The
administrator is using the following code to complete the task:
Which of the following technologies is the administrator using?
A. Ansible
B. Puppet
C. Chef
D. Terraform Right Ans - D. Terraform
Q#9
,Which of the following technologies can be used as a central repository of
Linux users and groups?
A. LDAP
B. MFA
C. SSO
D. PAM Right Ans - A. LDAP
Q#10
A systems 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: Based on the output above, which of following is the MOST
probable cause of the issue?
A. The address ac:00:11:22:33is not a valid Ethernet address.
B. The Ethernet broadcast address should be ac:00:11:22:33instead.
C. The network interface eth0 is using an old kernel module.
D. The network interface cable is not connected to a switch. Right Ans - D.
The network interface cable is not connected to a switch.
Q#11
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?
A. podman run -d -p 443:8443 httpd
B. podman run -d -p 8443:443 httpd
C. podman run -d -e 443:8443 httpd
D. podman exec -p 8443:443 httpd Right Ans - A. podman run -d -p
443:8443 httpd
Q#12
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?
A. docker run -ti app /bin/sh
B. podman exec -ti app /bin/sh
C. podman run -d app /bin/bash
D. docker exec -d app /bin/bash Right Ans - B. podman exec -ti app /bin/sh
, Q#13
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1.
Which of the following commands will accomplish this task?
A. tar -cvzf /dev/sdd1 /dev/sdc1
B. rsync /dev/sdc1 /dev/sdd1
C. dd if=/dev/sdc1 of=/dev/sdd1
D. scp /dev/sdc1 /dev/sdd1 Right Ans - C. dd if=/dev/sdc1 of=/dev/sdd1
Q#14
When trying to log in remotely to a server, a user receives the following
message:
The server administrator is investigating the issue on the server and receives
the following outputs:
Which of the following is causing the issue?
A. The wrong permissions are on the user's home directory.
B. The account was locked out due to three failed logins.
C. The user entered the wrong password.
D. The user has the wrong shell assigned to the account. Right Ans - D. The
user has the wrong shell assigned to the account.
Q#18
An administrator deployed a Linux server that is running a web application on
port 6379/tcp. SELinux is in enforcing mode based on 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 output:
Which of the following commands should be used to resolve the issue?
A. semanage port -d -t http_port_t -p tcp 6379
B. semanage port -a -t http_port_t -p tcp 6379
C. semanage port -a http_port_t -p top 6379
D. semanage port -l -t http_port_tcp 6379 Right Ans - B. semanage port -a -t
http_port_t -p tcp 6379
Q#19
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?
A. hostnamectl status --no-ask-password
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller LeCrae. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $26.99. You're not tied to anything after your purchase.