[2026年01月24日] 365日更新、有効なXK0-005日本語知能問題集 [Q323-Q345]

Share

[2026年01月24日] 365日更新、有効なXK0-005日本語知能問題集

ベスト品質のXK0-005日本語試験問題集でCompTIAテスト高得点を目指そう

質問 # 323
Linux管理者は、最終的な設定情報を入力するのにデスクトップWebブラウザを使用する必要があるWebアプリケーションをサーバー上で実行する必要があります。管理者は、サーバーがマルチユーザーモードで実行されていることを確認します。管理者は、サーバーにWebブラウザとディスプレイマネージャがインストールされていることを確認済みです。管理者がサーバー上のWebブラウザを一時的に使用するには、次のコマンドのうちどれが最も適切でしょうか?

  • A. sudo systemctl isolate グラフィカル.ターゲット
  • B. sudo systemctl set-default runlevel5.target
  • C. sudo systemctl --no-wall レスキュー
  • D. sudo systemctl gdm を再起動します

正解:A

解説:
The systemctl isolate graphical.target command switches the system to graphical mode (runlevel
5). This will start the display manager and allow the administrator to use a graphical environment, including a web browser. The switch is temporary, and the system will revert to multi-user mode after reboot unless explicitly changed.


質問 # 324
管理者は、監視システムによって報告されたデータベースサービスの停止をトラブルシューティングしています。次のような出力があります。

停止の原因は次のどれですか?

  • A. データベースはストレージに何も書き込めません
  • B. 管理者がデータベースにkill信号を送信しました
  • C. サーバーの物理メモリが不足しています
  • D. サーバーにDMAバスがありません

正解:C

解説:
The oom-killer was invoked because the system ran out of memory, and as a result, it killed the mysqld process to free memory. This is a clear indication that the server did not have enough physical memory to run the MariaDB service, leading to the process being terminated.


質問 # 325
Linuxシステム管理者は、/etc/httpd/にあるWebアプリケーションサーバーの設定ファイルに対してソースコード管理を実装しようとしています。管理者が最初に実行すべき手順は以下のどれですか?

  • A. `git commit' を使用してリモートの変更を取得します。
  • B. `git clone' を使用してリモートリポジトリをクローンします。
  • C. `git init' を使用して新しいリポジトリを作成します
  • D. `git config' を使用して git のディレクトリを設定します

正解:C

解説:
git-init - Create an empty Git repository or reinitialize an existing one git-config - Get and set repository or global options


質問 # 326
ユーザーのジョーはサーバーにログインできず、システム管理者に問題の調査を依頼しました。管理者は/etc/passwdファイルを調べ、以下のエントリを発見しました。
ジョー:x:505:505::/home/ジョー:/bin/false
問題を解決するために管理者が実行する必要があるコマンドはどれですか?

  • A. useradd -s /bin/bash joe
  • B. usermod -s /bin/bash joe
  • C. chage -E -1 joe
  • D. passwd -u joe

正解:B

解説:
The clue here is "/bin/false" this will disable the user, what you need to do here is change
/'bin/false, to' /'bin/bash". You can do this by typing "chsh -s /bin/bash username" or "usermod -s
/bin/bash username"


質問 # 327
ユーザーから、Webサーバーへの安全な接続時に問題が発生したという報告がありました。システム管理者は次のような出力を受け取ります。

この問題を解決するには、次のどのアクションを実行すればよいでしょうか?

  • A. Webアプリケーションを起動しています
  • B. ファイアウォール サービスを再起動します
  • C. ファイアウォールポート443を開きます
  • D. Webアプリケーションを再起動します

正解:C

解説:
The service is already listening on port 443, but the firewall zone does not include HTTPS.
Opening port 443 (for example, firewall-cmd --add-service=https --permanentand firewall-cmd --reload) will allow secure web traffic through.


質問 # 328
システム管理者が単純なパッケージをインストールしたところ、Linuxシステムから次のエラーが返されました: rpmdb 。RPMデータベースに問題があるかどうかを確認するために、システム管理者は次のコマンドを実行します: open fails

この問題を解決するために、システム管理者はどのコマンドを NEXT 実行する必要がありますか?

  • A. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all
  • B. cd/var/lib/rpm; rpm --rebuilddb; rm -f _db*; yum clean all
  • C. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
  • D. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all

正解:A

解説:
https://unix.stackexchange.com/questions/198703/yum-errorrpmdb-open-failed


質問 # 329
Linux管理者は、ログ出力ファイル群を確認し、「denyed」という単語を含むファイルを特定する必要があります。大文字または小文字のエントリを含むすべてのログファイルをリストに含める必要があります。このタスクを実行するために、管理者は以下のどのコマンドを使用すべきでしょうか?

  • A. find . -type f -print | xrags grep -wL denied
  • B. find . -type f -print | xrags grep -ln denied
  • C. find . -type f -print | xrags grep -li denied
  • D. find . -type f -print | xrags grep -nv denied

正解:C

解説:
The command find . -type f -print | xargs grep -li denied will accomplish the task of identifying files that contain any occurrence of the word denied. The find command is a tool for searching for files and directories on Linux systems. The . is the starting point of the search, which means the current directory. The -type f option specifies the type of the file, which means regular file. The - print option prints the full file name on the standard output. The | is a pipe symbol that redirects the output of one command to the input of another command. The xargs command is a tool for building and executing commands from standard input. The grep command is a tool for searching for patterns in files or input. The -li option specifies the flags that the grep command should apply.
The -l flag shows only the file names that match the pattern, instead of the matching lines. The -i flag ignores the case of the pattern, which means it matches both uppercase and lowercase letters. The denied is the pattern that the grep command should search for. The command find . - type f -print | xargs grep -li denied will find all the regular files in the current directory and its subdirectories, and then search for any occurrence of the word denied in those files, ignoring the case, and print only the file names that match the pattern. This will allow the administrator to identify files that contain any occurrence of the word denied.


質問 # 330
給与部門のユーザーは、セキュリティ上の懸念からDNSを使用するように設定されていません。ユーザーは、Linuxのジュニア管理者に、ワークステーションから192.168.204.11にある給与サーバーに「Payroll」という名前でアクセスできるように設定するよう依頼しました。この要求を満たすために、管理者は次のうちどのコマンドを実行する必要がありますか?

  • A. echo "192.168.204.11 給与計算" >> /etc/hosts
  • B. echo "ネームサーバー 192.168.204.11 #Payroll" >> /etc/resolv.conf
  • C. echo `IPADDR="192.168.204.11" #給与計算' >> /etc/network/interface
  • D. echo "net.ipv4.ip_dynaddr=192.168.204.11 給与計算" >> /etc/sysctl.conf

正解:A


質問 # 331
管理者はGitリポジトリをローカルのラップトップにクローンします。コードを検査しているときにバグに気づき、修正したいと考えています。
マスターに保存されたバージョンを更新する前に、管理者がパッチをテストするために使用する最適なコマンドは次のどれですか?

  • A. コミット
  • B. 行く
  • C. 初期化
  • D. 隠す
  • E. ブランチ

正解:C


質問 # 332
組織内の一部のサーバーが侵害を受けました。ユーザーは組織のウェブページやその他のサービスにアクセスできなくなりました。システム管理者がシステムログを確認していたところ、カーネルからファイアウォールルールに関するメッセージが出力されていることに気づきました。

次のコマンドのうちどれが問題を修正し、解決に役立ちますか?

  • A.
  • B.
  • C.
  • D.

正解:D

解説:
The command iptables -F will remediate and help resolve the issue. The issue is caused by the firewall rules that block the access to the organization's web page and other services. The output of dmesg | grep firewall shows that the kernel has dropped packets from the source IP address
192.168.1.100 to the destination port 80, which is the default port for HTTP. The command iptables - F will flush all the firewall rules and allow the traffic to pass through. This command will resolve the issue and restore the access to the web page and other services. The other options are incorrect because they either do not affect the firewall rules (ip route flush or ip addr flush) or do not exist (iptables -R).


質問 # 333
経験の浅いシステム管理者が、Red Hat ベースのシステムにインストールされたパッケージをアップグレードしています。管理者の任務は以下のとおりです。
- 新しいパッケージを更新してインストールします。
- 新しいパッケージ バージョンがインストールされていることを確認します。
これらのタスクを最も効果的に達成するには、次のうちどれを実行する必要がありますか? (2 つ選択してください。)

  • A. yum install <package name>
  • B. apt-get upgrade
  • C. rpm -e <package name>
  • D. yum upgrade
  • E. apt-get <package name>
  • F. rpm -qa

正解:D、F

解説:
Since the package is already installed on the machine, yum upgrade will be used. Then rpm -qa used for query.


質問 # 334
管理者は、ターミナルでフォアグラウンド プロセスの実行中にそのプロセスを停止する必要があります。
管理者は次のどれを使用する必要がありますか?

  • A. Ctrl+F
  • B. Ctrl+D
  • C. Ctrl+C
  • D. Ctrl+Z

正解:C

解説:
Ctrl+C sends a SIGINT (interrupt signal) to the foreground process, stopping its execution.


質問 # 335
すべてのフラッシュ、外部、内部、および SSD ドライブのリストを提供するものは次のどれですか?

  • A. lsmod
  • B. lsblk
  • C. lsusb
  • D. lspci

正解:B

解説:
ls: List files in the file system.
lsblk: List block devices (for example, the drives).
lspci: List PCI devices.
lsusb: List USB devices.
lsdev: List all devices.
https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage-devices-linux


質問 # 336
Linux管理者は、システムを強化し、再起動やシステムアップグレード後でもPostfixサービスが実行されないようにする必要があります。管理者がこの要件を満たすには、以下のコマンドのうちどれを実行すればよいでしょうか。

  • A. systemctl -n postfix.service を再起動します
  • B. systemctl で postfix.service を無効にする
  • C. systemctl stop postfix.service
  • D. systemctl マスク postfix.service

正解:D

解説:
The systemctl mask postfix.service command prevents the Postfix service from being started manually or automatically by symlinking its service file to /dev/null. This ensures that even if a system restart or upgrade occurs, the service will remain disabled and will not start.


質問 # 337
Linux管理者は、現在のディレクトリにあるすべてのファイルを含む新しいcloud.cpioアーカイブを作成する必要があります。このタスクを実行するのに役立つコマンドはどれですか?

  • A. ls | cpio -iv < cloud.epio
  • B. ls | cpio -ov > cloud.cpio
  • C. ls cpio -ov < cloud.cpio
  • D. ls | cpio -iv > cloud.epio

正解:B

解説:
The command ls | cpio -ov > cloud.cpio can help to create a new cloud.cpio archive containing all the files from the current directory. The ls command lists the files in the current directory and outputs them to the standard output. The | operator pipes the output to the next command. The cpio command is a tool for creating and extracting compressed archives. The -o option creates a new archive and the -v option shows the verbose output. The > operator redirects the output to the cloud.cpio file. This command will create a new cloud.cpio archive with all the files from the current directory.


質問 # 338
顧客のワークステーションに新しいビデオカードが追加されました。新しいビデオカードを正常に動作させるには、システム管理者がLinuxワークステーションからnouveauビデオドライバーのサポートを削除する必要があります。
このタスクを達成するには、次のどれが適していますか?

  • A. /etc/modprobe.conf にブラックリスト nouveau を追加します。
  • B. rmmod -f nouveau を使用します。
  • C. modprobe -R nouveau を使用します。
  • D. /etc/modprobe.d/blacklist.conf にブラックリスト nouveau を追加します。

正解:B


質問 # 339
Linux管理者が、/var/log/collector内のログを監視するログコレクタエージェントを設定しています。エージェントは、ディレクトリへの書き込みができないと報告しています。エージェントはloggerユーザーアカウントで実行されています。
管理者はいくつかのコマンドを実行し、次の出力を確認します。
出力1:

出力2:
* file: /var/log/collector
* owner: root
* group: root
user::rwx
group::r-x
mask::rwx
other::r-x
default:user:rwx
default:group::r-x
default:mask::rwx
default:other::r-x
Output 3:
uid=1010(logger) gid=1010(monitor) groups=1010(monitor)
この問題を解決する最善の方法は次のどれですか?

  • A. usermod -aG root logger
  • B. chown -R logger
    /var/log
  • C. chmod 644 /var/log/collector
  • D. setfacl -Rm u:logger
    /var/log/collector

正解:D

解説:
The issue is that the logger user does not have write permissions to /var/log/collector. Using setfacl (Access Control Lists) allows fine-grained control over file permissions, granting the logger user the necessary read-write access to the directory without changing the owner or group.


質問 # 340
管理者がping comptia.orgを実行します。コマンドの結果は次のようになります。
ping: comptia.org: 名前またはサービスが不明です
管理者は次のファイルのどれを検証する必要がありますか?

  • A. /etc/resolv.conf
  • B. /etc/sysctl.conf
  • C. /etc/services
  • D. /etc/ethers

正解:A

解説:
The best file to verify when the ping command returns the error "Name or service not known" is
C). /etc/resolv.conf. This file contains the configuration for the DNS resolver, which is responsible for translating domain names into IP addresses. If this file is missing, corrupted, or has incorrect entries, the ping command will not be able to resolve the domain name and will fail with the error.
To fix this issue, the administrator should check that the file exists, has proper permissions, and has valid nameserver entries.


質問 # 341
ローカル Web トラフィックを監視および記録するには、次のどの Linux サーバー ロールをインストールする必要がありますか?

  • A. HTTPサーバー
  • B. ネームサーバー
  • C. AAAサーバー
  • D. SSHサーバー
  • E. プロキシサーバー

正解:E


質問 # 342
開発者がアプリケーション構成ファイルに関するインシデントを報告しました
サーバーに存在しない /etc/httpd/conf/httpd.conf。
構成ファイルをインストールした RPM パッケージを識別するのは次のどれですか?

  • A. rpm --query /etc/httpd/conf/httpd.conf
  • B. rpm -ql /etc/httpd/conf/httpd.conf
  • C. rpm -q /etc/httpd/conf/httpd.conf
  • D. rpm -qf /etc/httpd/conf/httpd.conf

正解:D

解説:
The rpm -qf /etc/httpd/conf/httpd.conf command will identify the RPM package that installed the configuration file. This command will query the database of installed packages and display the name of the package that owns the specified file. The rpm -ql /etc/httpd/conf/httpd.conf command is invalid, as -ql is not a valid option for rpm. The rpm --query /etc/httpd/conf/httpd.conf command is incorrect, as --query requires a package name, not a file name. The rpm -q
/etc/httpd/conf/httpd.conf command is incorrect, as -q requires a package name, not a file name.


質問 # 343
Linux管理者は、大規模なアプリケーションサービスをコンテナ化されたポッドとして展開しました。Linux管理者は、アプリケーションのログファイルを会社の中央ログストアに継続的に送信する必要があります。このタスクを効率的に実行するために、Linux管理者は次のうちどれを行う必要がありますか?

  • A. ログ配布を実行するためにサイドカーを構成します。
  • B. kubectl 経由でカスタム タスク スケジューラを設定します。
  • C. docker inspect を実行し、ログ rsync レプリケーションを実行します。
  • D. コンテナ内のログにアクセスするには、docker exec を実行します。

正解:A

解説:
In Kubernetes, a sidecar container can be added to the same pod as the main application. The sidecar handles tasks like log shipping, monitoring, or updating without interrupting the primary application. This is an efficient and widely-used pattern for managing application logs in containerized environments.


質問 # 344
システム管理者は、グラフィカルインターフェースからシステムアップデートを実行するために、リモートLinuxマシンに接続する必要があります。管理者は次のうちどれを使用すべきでしょうか?

  • A. VNC
  • B. Wayland
  • C. Unity
  • D. MATE

正解:A


質問 # 345
......

注目すべき時短になるXK0-005日本語オールインワン試験ガイド:https://www.goshiken.com/CompTIA/XK0-005-JPN-mondaishu.html