[2026年更新]XK0-005日本語のPDF問題完璧見込みでFast2test練習試験合格させます
質問 # 408
systemd の実行時にジャーナルのシステム構成を保持するファイルは次のどれですか?
- A. /etc/systemd/systemd-journalctl.conf
- B. /usr/lib/systemd/journalctl.conf
- C. /etc/systemd/systemd-journald.conf
- D. /etc/systemd/journald.conf
正解:D
解説:
The file that holds the system configuration for journal when running systemd is
/etc/systemd/journald.conf. This file contains various settings that control the behavior of the journald daemon, which is responsible for collecting and storing log messages from various sources. The journald.conf file can be edited to change the default values of these settings, such as the storage location, size limits, compression, and forwarding options of the journal files. The file also supports a drop-in directory /etc/systemd/journald.conf.d/ where additional configuration files can be placed to override or extend the main file.
質問 # 409
Linuxサーバーで対話型セッションが失われたという報告がユーザーから寄せられています。Linux管理者は、メンテナンスのためにサーバーがrescue.targetモードに切り替えられたことを確認しました。以下のコマンドのうち、サーバーを通常のターゲットに復元できるのはどれですか?
- A. telinit 0
- B. systemctl 再起動
- C. systemctl get-default
- D. systemctl 緊急
正解:B
質問 # 410
ネットワーク管理者がdig www.comptia.orgコマンドを発行し、NXDOMAIN応答を受信しました。管理者はまずどのファイルを確認すべきでしょうか?
- A. /etc/hosts
- B. /etc/nsswitch.conf
- C. /etc/sysconfig/network-scripts
- D. /etc/resolv.conf
正解:D
解説:
The dig command uses the DNS servers listed in the /etc/resolv.conf file to resolve domain names. If the dig command returns an NXDOMAIN response, it means the domain does not exist according to the DNS servers used. Therefore, the administrator should check the /etc/resolv.conf file first.
質問 # 411
システム管理者はサーバーのメンテナンスを行う必要があります。
管理者を適切なランレベルに配置するコマンドはどれですか?
- A. 初期化0
- B. telinit 6
- C. telinit 1
- D. 初期化3
正解:C
解説:
Runlevel 1 is a single-user mode, which is used for maintenance or administrative tasks. You may also see this mode referred to as runlevel S (the S stands for single-user).
How to change the current runlevel?
You can change the current runlevel of your system using the "telinit" command. For example, to change to runlevel 3 on CentOS, you would type: $ telinit 3
https://likegeeks.com/linux-runlevels/
質問 # 412
管理者は、以下のコマンドを使用して、HISTSIZE 変数が 50 であることに気付きました。
ヒストサイズ=50
HISTSIZEをエクスポート
管理者は echo HISTSIZE を使用して HISTSIZE 値を再確認しましたが、値は取得されません。
管理者は値を取得するために次のコマンドのどれを使用する必要がありますか?
- A. grep $HISTSIZE
- B. echo HISTSIZE
- C. printf HISTSIZE
- D. printenv | grep $HISTSIZE
正解:D
質問 # 413
Linux システム管理者は、RSA 認証を使用して SSH 経由でシステムにリモートでアクセスできるようにしたいと考えています。このアクセスを許可するには、次のどのファイルに RSA トークンを追加する必要がありますか?
- A. 承認済みキー
- B. 既知のホスト
- C. id_rsa.pub
- D. ~/.ssh/ssh_config
正解:A
解説:
The authorized_keys file in SSH specifies the SSH keys that can be used for logging into the user account for which the file is configured. It is a highly important configuration file, as it configures permanent access using SSH keys and needs proper management.
The default configuration in most SSH implementations allows users to deploy new authorized keys for themselves and anyone they like. Such access is permanent, and may bypass privileged access management systems.
https://www.ssh.com/ssh/authorized_keys/
質問 # 414
Linux管理者がサーバーを起動したところ、GUI非対応のターミナルが表示されました。管理者はコマンド systemctl isolate graphical.target を実行し、systemctl reboot を実行してシステムを再起動しました。これにより問題は解決しました。しかし、翌日、管理者は再びGUI非対応のターミナルを表示しました。問題となっているのは次のうちどれですか?
- A. 管理者はデフォルトのターゲットを graphical.target に設定しませんでした。
- B. 管理者がサーバーを適切に再起動しませんでした。
- C. 管理者がサーバーを適切にシャットダウンしませんでした。
- D. 管理者はデフォルトのターゲットを basic.target に設定しませんでした。
正解:A
解説:
The issue is that the administrator did not set the default target to graphical.target. A target is a unit of systemd that groups together other units by a common purpose or state. The graphical.target is a target that starts the graphical user interface (GUI) along with other services.
The administrator used the command systemct1 isolate graphical.target to switch to this target temporarily, but this does not change the default target that is activated at boot time. To make this change permanent, the administrator should have used the command systemct1 set-default graphical.target, which creates a symbolic link from /etc/systemd/system/default.target to
/usr/lib/systemd/system/graphical.target.
質問 # 415
Linuxシステム管理者は、アプリケーションを停止し、/appディレクトリ内でアプリケーションが開いているファイルを特定する必要があります。以下のコマンドのうち、最適なものはどれですか?
- A. ps -ef | grep /app
- B. lsof | grep /app
- C. ls -o /app | grep open
- D. top | grep /app
正解:B
解説:
lsof lists all open files by process, and piping through grep /appfilters to only those files under /app, showing exactly which files the application has open so you can then stop it.
質問 # 416
Linux管理者は、起動に失敗したサービスを解決する必要があります。管理者は次のコマンドを実行します。
次の出力が返されます
最も問題となる可能性が高いのは次のどれですか?
- A. サービス スタートアップ ファイルは root が所有することはできません。
- B. サービスのスタートアップファイルのサイズは 81k にできません。
- C. サービス スタートアップ ファイルはルート グループが所有してはなりません。
- D. サービスにはスタートアップファイルの読み取り/書き込み権限がありません。
正解:D
解説:
The most likely issue is that the service does not have permissions to read or write the startupfile.
The output of systemct1 status startup.service shows that the service has failed to start and the error message is "Permission denied". The output of ls -l /etc/startupfile shows that the file has the permissions -rw-r--r--, which means that only the owner (root) can read and write the file, while the group (root) and others can only read the file. The service may not run as root and may need write access to the file. The administrator should change the permissions of the file by using the chmod command and grant write access to the group or others, or change the owner or group of the file by using the chown command and assign it to the user or group that runs the service.
質問 # 417
システム管理者は、user1アカウントから/usr/local/bin/script.shを実行したいと考えています。このタスクを実行するには、次のコマンドのどれを使用しますか?
- A. sudo user1 /usr/local/bin/script.sh
- B. sudo -1 user1 /usr/local/bin/script.sh
- C. su -c user1 /usr/local/bin/script.sh
- D. su - user1 /usr/local/bin/script.sh
正解:D
解説:
The su - user1 /usr/local/bin/script.shcommand switches to the user1 account with a login shell (the -), and passes the script path so that it runs under user1's identity. The other options either misuse the -cflag or invoke sudoincorrectly.
質問 # 418
Linux管理者は、ディレクトリtestに適用されている拡張権限を確認する必要があります。このタスクを実行するために、管理者は以下のどのコマンドを使用すべきでしょうか?
- A. getenforce test/
- B. getsebool test/
- C. getfacl test/
- D. ls -al test/
正解:C
解説:
getfacl is the command used to view the Access Control List (ACL) of a file or directory, which shows extended permissions beyond the basic owner, group, and others. This is essential for checking permissions that are set using ACLs on the directory test.
質問 # 419
ネットワーク管理者がLinuxホストにWebサーバーをインストールし、tcp/80ポートを開くためのfirevalidコマンドを追加しました。Webサーバーは、1ヶ月後にカーネルのアップデートとパッチがシステムにインストールされるまで、エラーなく動作していました。現在、サービスは実行されているにもかかわらず、ユーザーはWebサーバーにアクセスできません。この問題を解決するには、次のうちどれが適切でしょうか?
- A. firevalid ゾーンをプライベートに変更し、ポート tcp/80 を開きます。
- B. 追加の firevalid コマンドを発行して、ポート tcp/443 とポート tcp/80 を開きます。
- C. ポートではなく HTTP アプリケーション サービスを開くには、firevalid コマンドを使用します。
- D. firevalid コマンドを使用して、-permanent スイッチの有無にかかわらず tcp/80 を開きます。
正解:D
質問 # 420
システム管理者はarchive.tar.xzの内容を一覧表示する必要があります。以下のコマンドのうち、どのコマンドでファイルを一覧表示できますか?
- A. tar tJf archive.tar.xz
- B. tar xzf archive.tar.xz
- C. tar jvf archive.tar.xz
- D. tar ddf アーカイブ.tar.xz
正解:A
質問 # 421
システム管理者は次のコードを使用して Web サーバーを展開しています。
管理者はこの Web サーバーを作成するために次のどのテクノロジを使用していますか?
- A. 操り人形
- B. テラフォーム
- C. アンシブル
- D. シェフ
正解:D
解説:
The code uses Chef's Ruby DSL for defining a role with name, description, run_list, and default_attributes, which are constructs specific to Chef.
質問 # 422
Linux管理者は、exam.txtというファイルに適切な権限を与える必要があります。所有者にはファイルへのフルアクセス権限が必要ですが、グループには読み取りと実行権限のみが必要で、その他のユーザーには権限は付与されません。このタスクを実行するために、管理者は以下のどのコマンドを使用すべきでしょうか?
- A. chmod 644 exam.txt
- B. chmod 650 exam.txt
- C. chmod 750 exam.txt
- D. chmod 760 exam.txt
正解:C
質問 # 423
ユーザーがノートパソコンのIPアドレスを変更する必要があります。eth0というネットワークインターフェースを設定するために使用できるファイルはどれですか?
- A. /system/networking/ifconfig
- B. /etc/sysconfig/network-scripts/ifcfg-eth0
- C. /system/config/interfaces
- D. /etc/interfaces/eth0.conf
- E. /etc/sysconfig/network/interfaces.cnf
正解:B
解説:
Interface configuration files
Every network interface has its own configuration file in the /etc/sysconfig/network-scripts directory. Each interface has a configuration file named ifcfg-<interface-name>X, where X is the number of the interface, starting with zero or 1 depending upon the naming convention in use; for example /etc/sysconfig/network-scripts/ifcfg-eth0 for the first Ethernet interface.
https://opensource.com/life/16/6/how-configure-networking-linux
質問 # 424
SSH 認証中にユーザーの公開鍵がどのように使用されるかを説明しているのはどれですか。
- A. ユーザーの公開鍵は、SSH 認証中にパスワードをハッシュするために使用されます。
- B. サーバーへのアクセスを許可するために、パスワードの代わりにユーザーの公開キーが使用されます。
- C. ユーザーの公開鍵が承認済み鍵のリストと照合されます。見つかった場合、ユーザーはログインを許可されます。
- D. ユーザーの公開鍵は、クライアントとサーバー間の通信を暗号化するために使用されます。
正解:C
質問 # 425
システム管理者が単純なパッケージをインストールしたところ、Linuxシステムから次のエラーが返されました: rpmdb 。RPMデータベースに問題があるかどうかを確認するために、システム管理者は次のコマンドを実行します: open fails
この問題を解決するために、システム管理者はどのコマンドを NEXT 実行する必要がありますか?
- A. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
- B. cd/var/lib/rpm; rpm --rebuilddb; rm -f _db*; yum clean all
- C. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all
- D. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
正解:C
解説:
https://unix.stackexchange.com/questions/198703/yum-errorrpmdb-open-failed
質問 # 426
管理者は、特定のディレクトリやファイルにアクセスする際に断続的に問題が発生しているシステムのブートログを確認しています。dmesgには以下のエラーが表示されています。
マセマティカ
コピー編集
I/Oエラー、デバイスsda1、セクター456788
デバイス sda1、論理ブロック 378994 のバッファ I/O エラー
問題を解決するために管理者が実行する必要があるアクションは次のうちどれですか?
- A. GRUBリカバリでfsck /dev/sda1を使用する
- B. リカバリディスクを起動し、マウントされていないドライブでfsckを実行します。
- C. ddを使用してディスクをコピーして再フォーマットします
- D. gddrescueを使用してディスクをコピーし、/etc/fstabを編集し、ディスクを交換します
正解:B
質問 # 427
顧客のワークステーションに新しいビデオカードが追加されました。新しいビデオカードを正常に動作させるには、システム管理者がLinuxワークステーションからnouveauビデオドライバーのサポートを削除する必要があります。
このタスクを達成するには、次のどれが適していますか?
- A. modprobe -R nouveau を使用します。
- B. /etc/modprobe.d/blacklist.conf にブラックリスト nouveau を追加します。
- C. /etc/modprobe.conf にブラックリスト nouveau を追加します。
- D. rmmod -f nouveau を使用します。
正解:D
質問 # 428
クラウドエンジニアは、すべての未処理イメージと、関連付けられたコンテナがないすべてのイメージを削除する必要があります。このタスクを実行するのに役立つコマンドはどれですか?
- A. docker rmi -a images
- B. docker images rmi --all
- C. docker images prune -a
- D. docker push images -a
正解:C
解説:
The command docker images prune -a will help to remove all dangling images and delete all the images that do not have an associated container. The docker command is a tool for managing Docker containers and images. The images subcommand operates on images. The prune option removes unused images. The -a option removes all images, not just dangling ones. A dangling image is an image that is not tagged and is not referenced by any container.
質問 # 429
Linux エンジニアが 2 つのローカル DNS サーバー (10.10.10.10 と 10.10.10.20) を設定し、ローカル マシンで mail コマンドを使用してローカル メール サーバーへの電子メール接続をテストしていたところ、次のエラーが発生しました。
ローカル マシンの DNS 設定は次のとおりです。
エンジニアが DNS サーバーにクエリを実行してメール サーバーの情報を取得するために使用できるコマンドはどれですか。
- A. dig @10.10.10.20 example.com mx
- B. dig @example.com 10.10.10.20 ptr
- C. あなた @10.10.10.20 example.com ns
- D. dig @example.com 10.10.10.20 a
正解:A
解説:
The command dig @10.10.10.20 example.com mx will query the DNS server to get mail server information. The dig command is a tool for querying DNS servers and displaying the results. The
@ option specifies the DNS server to query, in this case 10.10.10.20. The mx option specifies the type of record to query, in this case mail exchange (MX) records, which identify the mail servers for a domain. The domain name to query is example.com. This command will show the MX records for example.com from the DNS server 10.10.10.20. This is the correct command to use to accomplish the task.
質問 # 430
Linux管理者は、仮想マシンのCPUパフォーマンス低下のトラブルシューティングを行っています。管理者は、基盤となるハイパーバイザーのリソースが不足している可能性があると考えています。管理者はtopコマンドを使用して、現在のCPU使用率を確認しました。以下のCPU指標のうち、管理者の仮説を裏付けるものはどれですか?
- A. 盗む
- B. いいですね
- C. システム
- D. ユーザー
正解:A
質問 # 431
Linux システム管理者は、サーバーのファイルシステムの 1 つがいっぱいであるという通知を受け取ります。
管理者がこのファイルシステムを識別するのに役立つコマンドはどれですか?
- A. du -ah
- B. lsblk
- C. df -h
- D. fdisk
正解:C
解説:
The df -h command can be used to identify the filesystem that is full. This command displays the disk usage of each mounted filesystem in a human-readable format, showing the total size, used space, available space, and percentage of each filesystem. The lsblk command displays information about block devices, not filesystems. The fdisk command can be used to manipulate partition tables, not check disk usage. The du -ah command displays the disk usage of each file and directory in a human- readable format, not the filesystems.
質問 # 432
......
オンライン問題傑作練習用であなたの試験を合格してみせます:https://jp.fast2test.com/XK0-005-JPN-premium-file.html