Comptia (XK0-004) Exam Questions And Answers page 46
An operator finds a user is having issues with opening certain files.
Which of the following commands would allow the security administrator to list and check the SELinux context?
Which of the following commands would allow the security administrator to list and check the SELinux context?
ls a
ls Z
ls -l
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Security
A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free inodes.
Which of the following commands should the user attempt NEXT to diagnose the situation?
Which of the following commands should the user attempt NEXT to diagnose the situation?
df -h /mnt/storage
du -sh /mnt
fdisk -l /mnt/storage
df -i /mnt/storage
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Shells, Scripting, and Data Management
A Linux administrator has installed a web application firewall in front of a web server running on HTTP port 8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:
Output of sysctl -a command:
Output of iptables -L command:
Output of netstat nltop | grep "8080":
Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?
Output of sysctl -a command:
Output of iptables -L command:
Output of netstat nltop | grep "8080":
Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?
sysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable the change
Edit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/sysctl.conf to enable the change
Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j then restart httpd daemon
Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 j ACCEPT then restart httpd daemon
Command Line Interface
Networking Fundamentals
Which one of the following does TOGAF Part VII recommend in order to implement an Enterprise Architecture Capability?
Develop an Architecture Roadmap
Populate the Architecture Repository
Populate the Enterprise Continuum
Use the Architecture Development Method
Use the Implementation Governance Phase
System Configuration and Management
Administrative Tasks
A Linux server needs to be accessed, but the root password is not available.
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
Boot into single-user mode and reset the password via the passwd command.
Boot into single-user mode and reset the password by editing the /etc/passwd file.
Boot into single-user mode and reset the password by editing the /etc/shadow file.
Boot into single-user mode and reset the password via the chage command.
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb open fails. To verify if there is a problem in the RPM database, the systems administrator runs the following command:
Which of the following commands should the systems administrator run NEXT to resolve this issue?
Which of the following commands should the systems administrator run NEXT to resolve this issue?
cd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all
cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all
Command Line Interface
Essential System Services
Which part of TOGAF describes taxonomies for categorizing the outputs of architecture activity in terms of reuse?
ADM Guidelines and Techniques
Architecture Capability Framework
Architecture Development Method
Enterprise Continuum & Tools
Scripting and Automation
Shells, Scripting, and Data Management
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?
Which of the following commands would be BEST to complete this task?
lspci
lsusb
cat /proc/USB
modprobe - usb
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Networking Fundamentals
According to TOGAF, Which of the following terms describes people who have key roles in, or concerns about, a system?
consumer
CxOs
lead architect
sponsor
stakeholder
System Configuration and Management
User Interfaces and Desktops
What is the key purpose of Gap Analysis?
Single Choice
Complete the sentence. The key purpose of Gap Analysis is to _____
establish quality parameters for the architecture
identify potential missing or overlapping functions
validate nonfunctional requirements
identify commercial building blocks to be purchased
determine the required service levels for the architecture
System Configuration and Management
Administrative Tasks
Comments