Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

NPower Linux+ New Study Guide: Complete With Correct Solutions

Rating
-
Sold
-
Pages
40
Grade
A+
Uploaded on
13-10-2024
Written in
2024/2025

NPower Linux+ New Study Guide: Complete With Correct Solutions

Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
October 13, 2024
Number of pages
40
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$27.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LeCrae Harvard University
Follow You need to be logged in order to follow users or courses
Sold
2084
Member since
4 year
Number of followers
1409
Documents
22021
Last sold
9 hours ago
Valuable Notes, Secure Learning

Welcome to ScholarVault—your ultimate destination for premium study materials and academic resources designed to unlock your full potential. As a passionate student myself, I understand how critical it is to have the right tools to excel in your studies. That's why I've curated a collection of high-quality notes, guides, and exam preparation materials that are tailored to help you achieve academic success. At ScholarVault, I believe that knowledge is power, but access to the right knowledge is key. My mission is to provide you with organized, comprehensive, and easy-to-understand study resources that make your learning journey smoother and more effective. Whether you're preparing for exams, reviewing class notes, or tackling tough concepts, you can count on me to deliver valuable, well-crafted content that aligns with your academic goals. Each resource has been carefully created with the intention to simplify complex topics, boost your confidence, and save you time. I aim to provide not just notes, but tools that truly make a difference in how you approach your studies. Explore the vault and discover everything you need to succeed—whether it’s detailed notes, in-depth study guides, or concise exam tips, everything is stored here for your academic growth. Thank you for trusting ScholarVault to be part of your learning experience. I’m excited to help you unlock your academic potential and achieve the success you deserve.

Read more Read less
4.0

441 reviews

5
206
4
108
3
70
2
17
1
40

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions