Comptia (XK0-004) Exam Questions And Answers page 48
A Linux administrator receives the following while attempting to remove a file:
Which of the following commands will resolve the issue?
Which of the following commands will resolve the issue?
setfacl -m u:root:x test.txt
chmod -0775 test.txt
chcon -u system_u test.txt
Command Line Interface
Shells, Scripting, and Data Management
Which ADM Phase includes obtaining approval for the Statement of Architecture Work?
Preliminary Phase
Phase A: Architecture Vision
Phase B: Business Architecture
Phase F: Migration Planning
Phase G: Implementation Governance
Shells, Scripting, and Data Management
User Interfaces and Desktops
A systems administrator is investigating low performance a server. After executing some diagnostic commands, the administrator analyzes the data:
Which of the following is the cause of low performance on the server?
Which of the following is the cause of low performance on the server?
Lack of swap space
Lack of available memory
User processes have taken up all the available CPU time
High disk activity
System Configuration and Management
Networking Fundamentals
A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server s router is 192.168.1.1. The administrator reviews the output of route n:
Which of the following commands should the administrator run to correct the issue?
Which of the following commands should the administrator run to correct the issue?
route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
route add net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
route add 192.168.1.1 default 192.168.1.50 eth0
route host gw 192.168.1.1 eth0
Networking Fundamentals
Which configuration file disables Ctrl+Alt+Del in Linux?
Single Choice
Which of the following configuration files should be modified to disable Ctrl+Alt+Del in Linux?
/etc/inittab
~/.bash_profile
/etc/securetty
/etc/security/limits.conf
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Security
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system:
The administrator issues the following commands at the terminal:
Respectively, the output of these commands is as follows:
Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?
The administrator issues the following commands at the terminal:
Respectively, the output of these commands is as follows:
Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?
Update the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and run the bash_completion.sh script to update the changes.
Update the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes.
Update the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.
Update the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
System Configuration and Management
An administrator has a CSV file named hosts.csv. The contents of hosts.csv include the following:
192.168.2.57,lnx1prd.example.com,Linux,Production
192.168.2.58,lnx2prd.example.com,Linux,Production
192.168.1.4,server15.example.com,Windows,Development
The administrator needs to create a second comma-separated list of only the Linux server IP addresses. Which of the following commands would achieve this need?
192.168.2.57,lnx1prd.example.com,Linux,Production
192.168.2.58,lnx2prd.example.com,Linux,Production
192.168.1.4,server15.example.com,Windows,Development
The administrator needs to create a second comma-separated list of only the Linux server IP addresses. Which of the following commands would achieve this need?
for ip in $(grep Linux hosts.csv | cut d , f1); do echo n $ip, ; done
for ip in $( cut d , f1 hosts.csv | grep Linux ); do echo n $ip, ; done
for ip in $(grep Linux hosts.csv | sed /$1// ); do echo n $ip, ; done
for ip in $(awk F, {print $1} hosts.csv | grep Linux ); do echo n $ip, ; done
Command Line Interface
Scripting and Automation
What technique does TOGAF recommend that focuses on achieving business outcomes rather than just technical deliverables?
Business Transformation Readiness Assessment
Business Value Assessment Technique
Capability-Based Planning
Communications and Stakeholder Management
Quality Function Deployment
User Interfaces and Desktops
Administrative Tasks
The following tools help maintain consistency across different systems in an infrastructure:
SUSE Manager
Red Hat Satellite
Spacewalk
If a system file is changed, the tools roll back the file to a predefined configuration.
Which of the following concepts BEST describes this behavior?
SUSE Manager
Red Hat Satellite
Spacewalk
If a system file is changed, the tools roll back the file to a predefined configuration.
Which of the following concepts BEST describes this behavior?
Build automation
Infrastructure as code
Automated configuration management
Agentless system management
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Essential System Services
A user issues the following command:
ls l /var/log | egrep e ^d[rwx]{3}.*[rw-]{3}.*
The list of files in the system is shown below:
Which of the following results matches the command issued?
ls l /var/log | egrep e ^d[rwx]{3}.*[rw-]{3}.*
The list of files in the system is shown below:
Which of the following results matches the command issued?
drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
-rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log
-rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
-rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
-rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
-rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
Command Line Interface
Scripting and Automation
Comments