Comptia (XK0-004) Exam Questions And Answers page 43
An administrator has written the following Bash script:
All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
The script is not executable.
The formatting of the file is incorrect.
Nslookup is not installed.
Command Line Interface
Scripting and Automation
An association of companies has defined a data model for sharing inventory and pricing information.
Which of the following best describes where this model would fit in the Architecture Continuum?
Which of the following best describes where this model would fit in the Architecture Continuum?
Foundation Architecture
Common Systems Architecture
Industry Architecture
Organization Specific Architecture
Product Line Architecture
Networking Fundamentals
When logging in, an administrator must use a temporary six-digit code that is displayed on a key fob.
Which of the following has been implemented?
Which of the following has been implemented?
Biometrics
HOTP
PKI
Software token
Command Line Interface
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
A systems administrator needs to conduct maintenance on a server.
Which of the following commands will place the administrator in the appropriate runlevel?
Which of the following commands will place the administrator in the appropriate runlevel?
init 0
telinit 1
init 3
telinit 6
Command Line Interface
Administrative Tasks
What are the differences between YAML and JSON?
Single Choice
Which of the following is a difference between YAML and JSON?
Users can comment in YAML but not in JSON
JSON only uses curly brackets, while YAML only uses square brackets
JSON is used in web development, while YAML is used solely in back-end systems.
YAML has been deprecated for JSON.
Scripting and Automation
Networking Fundamentals
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service, the site operates correctly for a few minutes before the process disappears again.
Which of the following should the administrator consider as the MOST likely possibility before troubleshooting the issue?
Which of the following should the administrator consider as the MOST likely possibility before troubleshooting the issue?
The CPU has too much load, causing it to overheat, and the kernel is automatically killing the processes to keep the CPU cool.
An external database to which the web server connects is offline, causing httpd to die due to execution errors.
Shared libraries, which were recently updated, are causing compatibility issues and httpd to die due to version mismatch.
The out-of-memory killer was activated due to low available memory, causing the kernel to kill the processes automatically.
The server is intermittently losing access to the network, causing socket errors that trigger httpd to die.
Command Line Interface
Essential System Services
A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstab file and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?
mount o remount /home
quotacheck -cg
edquota /home
quotaon /home
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Essential System Services
An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly.
Which of the following explains what is wrong with the script?
Which of the following explains what is wrong with the script?
$(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.
The for should be changed to while in the loop.
The > should be changed to 2> in the do statement.
The -ne flag should be changed to -eq in the if statement.
Command Line Interface
Networking Fundamentals
What is the purpose of a gap analysis in architecture?
Single Choice
Complete the sentence. A gap analysis will enable the architect to do all of the following except _____.
identify building blocks that have been inadvertently omitted
identify building blocks that have been intentionally eliminated
identify building blocks to be carried over
identify new building blocks that are needed
identify potential vendors to provide new building blocks
Essential System Services
Which pair of the following responses best completes the sentence? Architecture building blocks ____, where as Solution Building blocks ____
are assembled; are single function components
are single function components; are groups of architecture building blocks
are reusable; are not reusable
define the architecture; provide the existing legacy system
define functionality; define the implementation of functionality
Devices, Linux Filesystems, and Filesystem Hierarchy Standard
Networking Fundamentals
Comments