[2025年12月01日] 完全版には更新されたのはLinux+(XK0-005日本語)認定サンプル問題 [Q44-Q68]

Share

[2025年12月01日] 完全版には更新されたのはLinux+(XK0-005日本語)認定サンプル問題

最新のCompTIA XK0-005日本語リアル試験問題集PDF

質問 # 44
Linux管理者は、エンドユーザーが社内クラウドサーバーにアクセスできないというチケットを受け取りました。管理者は次のコマンドを実行します。
バッシュ
usl.com にピン留めする
結果:
ping: usl.com を解決できません: 不明なホスト
エンドユーザーが usl.com にアクセスできるようにするには、次のファイルのどれを変更する必要がありますか?

  • A. /etc/interfaces
  • B. /etc/hosts.allow
  • C. /etc/resolv.conf
  • D. /etc/hostname

正解:C


質問 # 45
システム管理者は、新しい Linux サーバーが必要になるたびに、Linux VM のコピーを複製します。
管理者は、コマンド プロンプトに常に localhost.localdomain と表示されることに気付きます。
コマンドプロンプトを localhost.localdomain ではなく Server1 として一貫してラベル付けするには、管理者は次のどれを実行する必要がありますか?

  • A. hostnamectl set-hostname Server1 --transient
  • B. hostnamectl set-hostname "Server1" --pretty
  • C. ホスト名ctl set-hostname Server1.localdomain --static
  • D. ホスト Server1
  • E. echo "127.0.0.1 Server1 Server1.localdomain" >> /etc/hosts

正解:B

解説:
command to set hostname: hostnamectl
three classes of hostname.
1. "static" host name is the traditional hostname, which can be chosen by the user, and is stored in the /etc/hostname file.
2."transient" hostname is a dynamic host name maintained by the kernel. It is initialized to the static host name by default, whose value defaults to "localhost". It can be changed by DHCP or mDNS at runtime.
3. "pretty" hostname is a free-form UTF8 host name for presentation to the user.


質問 # 46
Linux管理者が/project/access2allディレクトリを作成しました。このディレクトリを作成することで、管理者は所有者以外のユーザーによるファイルの削除や変更を回避しようとしています。この目的を達成するには、次のうちどれが適切でしょうか?

  • A. chmod +t /project/access2all
  • B. chmod 2770 /project/access2all
  • C. chmod +rws /project/access2all
  • D. chmod ugo+rwx /project/access2all

正解:A

解説:
The command that will accomplish the goal of avoiding the deletion or modification of files from non-owners is chmod +t /project/access2all. This command will set the sticky bit on the directory
/project/access2all, which is a special permission that restricts file deletion or renaming to only the file owner, directory owner, or root user. This way, even if multiple users have write permission to the directory, they cannot delete or modify each other's files. The other options are not correct commands for accomplishing the goal. The chmod +rws /project/access2all command will set both the SUID and SGID bits on the directory, which are special permissions that allow a program or a directory to run or be accessed with the permissions of its owner or group, respectively. However, this does not prevent file deletion or modification from non- owners. The chmod 2770 /project/access2all command will set only the SGID bit on the directory, which means that any new files or subdirectories created in it will inherit its group ownership. However, this does not prevent file deletion or modification from non-owners. The chmod ugo+rwx
/project/access2all command will grant read, write, and execute permissions to all users (user, group, and others) on the directory, which means that anyone can delete or modify any file in it.


質問 # 47
管理者は現在のストレージを拡張するために新しいディスクを追加しました。新しいディスクをLVMに追加するために、管理者が最初に実行する必要があるコマンドはどれですか?

  • A. pvresize
  • B. lvextend
  • C. pvcreate
  • D. vgextend

正解:C

解説:
You must first initialize the new disk as an LVM physical volume with pvcreate. Only after creating the PV can you add it to a volume group with vgextendand then resize logical volumes.


質問 # 48
Linux管理者がメモリ関連の問題をトラブルシューティングしています。コマンドの出力結果は次のとおりです。

次のどのコマンドが問題に対処しますか?

  • A. top -p 8321
  • B. kill -9 8321
  • C. free 8321
  • D. renice -10 8321

正解:B

解説:
The command that would address the memory-related issue is kill -9 8321. This command will send a SIGKILL signal to the process with the PID 8321, which is the mysqld process that is using 99.7% of the available memory according to the top output. The SIGKILL signal will terminate the process immediately and free up the memory it was using. However, this command should be used with caution as it may cause data loss or corruption if the process was performing some critical operations.


質問 # 49
ミラーサイトに repo10 という新しいパッケージリポジトリがインストールされました。Linux 管理者は、この新しいリポジトリをローカルパッケージのインストールに使用したいと考えています。管理者は、repo10 リポジトリの設定情報を以下のどの場所に保存すればよいでしょうか。

  • A. /etc/yum.reps.d/repo10
  • B. /etc/yum.conf
  • C. /etc/yum.reps.d/repo10.Repo
  • D. /etc/yum_repo.d/repo10

正解:C


質問 # 50
Linuxシステム管理者が、シングルCPUサーバーのI/Oレイテンシのトラブルシューティングを行っています。管理者はtopコマンドを実行し、以下の出力を受け取りました。

実行されたコマンドから受け取った出力に基づいて、次のうちどれが正しいですか?

  • A. サーバーの CPU がデータ入力の待機に時間がかかりすぎています。
  • B. サーバーの CPU のアイドル時間の値が高くなっています。
  • C. システム プロセスに費やされた時間に対するサーバー CPU 値が低くなっています。
  • D. サーバーの CPU がユーザーのリクエストを処理するのに時間がかかりすぎています。

正解:A

解説:
The server's CPU is spending too much time waiting for data inputs. This can be inferred from the output of the top command, which shows the percentage of CPU time spent in different states.
The wa state stands for wait, and it indicates that the CPU is idle while waiting for an I/O operation to complete. In this case, the wa state is 52.4%, which means that more than half of the CPU time is wasted on waiting for data inputs. This can cause a high I/O latency and affect the performance of the server.


質問 # 51
Linux管理者が外付けハードドライブをマウントするためのチケットを開きます。セキュリティポリシーにより、外部ストレージのカーネルモジュールは無効化されています。
外部ストレージ モジュールを有効にするために適切なカーネル モジュールを追加するための最適なコマンドは次のどれですか。

  • A. modinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
  • B. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
  • C. depmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko
  • D. rmmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb- storage.ko

正解:B

解説:
https://www.cyberciti.biz/faq/linux-how-to-load-a-kernel-module-automatically-at-boot-time/


質問 # 52
企業のサーバーセキュリティポリシーには、「パスワードハッシュが管理者以外のユーザーによって読み取られないようにする」と記載されています。管理者は、サーバーがこのポリシーを満たしていることを確認するために、次のどのファイルの権限を確認する必要がありますか?

  • A. /etc/group
  • B. /etc/passwd
  • C. /etc/shadow
  • D. /etc/security/limits.conf

正解:C

解説:
hashes are stored in the shadow files.


質問 # 53
Linux システムのデフォルト プリンタを表示するコマンドはどれですか。

  • A. lpq
  • B. lpr
  • C. lpstat
  • D. lspci

正解:A

解説:
https://superuser.com/questions/123576/show-default-linux-printer


質問 # 54
Linux管理者は、サーバーのファイアウォール上の特定のポートを閉じるためのBashスクリプトを開発しています。管理者は、インターネット メッセージ アクセス プロトコル(IMA)のデフォルト ポートがわかりません。
管理者は、デフォルト ポートを決定するために次のどのファイルをチェックする必要がありますか?

  • A. /etc/default/ufw
  • B. /etc/resolv.conf
  • C. /etc/network
  • D. /etc/services

正解:D


質問 # 55
Linux管理者がLinuxサーバーでKVMの使用を開始しようとしています。管理者がKVMモジュールと関連する依存関係をロードするには、次のコマンドのうちどれを実行すればよいでしょうか?

  • A. KVM の insmod
  • B. depmod 平方メートル
  • C. modprobe kvm
  • D. ホットプラグ平方メートル

正解:C

解説:
This command will load the KVM module as well as any related dependencies, such as kvm-intel or kvm-amd, depending on the processor type. The modprobe command is a Linux utility that reads the /etc/modules.conf file and adds or removes modules from the kernel. It also resolves any dependencies between modules, so that they are loaded in the correct order.


質問 # 56
サーバーに新しいデータベースがインストールされます。データベースベンダーの要件を満たすには、Huge Page 機能を永続的に設定する必要があります。このパラメータを設定するには、次のコマンドのどれを使用しますか?

  • A. echo "nvm.nr_hugepage=100" >> /etc/modprobe.conf
  • B. echo "vm.nr_hugepage=100" >> /etc/sysctl.conf
  • C. sysctl -a "vm.nr_hugepage=100"
  • D. echo "vm.nr_hiigepage=100" >> /etc/sysconfig/hugepage.conf

正解:B


質問 # 57
システム管理者は、コンテナ内で実行されるWebサーバーのトラブルシューティングを行っています。ログが保持された後、コンテナはログファイルへのログ出力を停止することがあります。幸い、ベンダーはアプリケーションがログファイルに再接続できるようにするカスタムシグナルを提供しています。
管理者がコンテナを実行するのに最適なのは次のうちどれですか?

  • A. キル *1 キル
  • B. *TEAM 1を倒す
  • C. *USR 1を倒す
  • D. *HUP 1 をキル

正解:D


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

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

  • A. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
  • B. cd/var/lib/rpm; rpm -qa; 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 --rebuilddb; rm -f _db*; yum clean all

正解:C

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


質問 # 59
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.


質問 # 60
Linux管理者は、RPMベースのOSに最新バージョンのパッケージをインストールするという任務を負っています。このタスクを実行するには、以下のコマンドのうちどれを使用すればよいでしょうか?

  • A. apt-get アップグレード
  • B. rpm -a
  • C. yum updateinfo
  • D. yum チェックアップデート
  • E. dnf 更新

正解:E

解説:
The dnf update command will accomplish the task of installing the most recent versions of packages on a RPM-based OS. This command will check for available updates from the enabled repositories and apply them to the system. The apt-get upgrade command is used to install updates on a Debian- based OS, not a RPM-based OS. The rpm -a command is invalid, as -a is not a valid option for rpm. The yum updateinfo command will display information about available updates, but it will not install them. The yum check-update command will check for available updates, but it will not install them.


質問 # 61
停電により予期せぬサーバー再起動が発生した後、/opt /finappディレクトリ内の一部のファイルにアクセスできないという報告がユーザーから寄せられています。Linux管理者は、以下のファイルシステムの詳細とシステムログを調べました。

ファイルシステムを修復するために管理者が実行する必要があるコマンドはどれですか?

  • A. fsck.ext4 /dev/mapper/rhel-opt_finapp
  • B. lvcreate -L900G -n opt_finapp rhel
  • C. fdisk /dev/mapper/rhel-opt_finapp
  • D. xfs_repair /dev/mapper/rhel-opt_finapp

正解:D

解説:
For repairing XFS filesystems, the appropriate command is xfs_repair. Since the /opt/finapp directory resides on an XFS filesystem (indicated in the mount output), xfs_repair is suitable for diagnosing and fixing corruption in XFS inodes and extent trees. Using fdisk or fsck.ext4 is not appropriate for XFS filesystems, as these commands are intended for partitioning and ext4 filesystems, respectively.


質問 # 62
管理者は、Webサーバー上の/var/www/html/old_reportsというディレクトリがWebからアクセスできなくなっていることに気づきました。このタスクを実行するには、次のコマンドのどれを使用しますか?

  • A. chgrp root /var/www/html/old_reports
  • B. chown apache /var/www/html/old_reports
  • C. setenforce apache /var/www/html/old_reports
  • D. chmod 000 /var/www/html/old_reports

正解:D

解説:
chmod 000 would make the file unreadable.


質問 # 63
開発者は、アプリケーション サーバー上に永続的な静的ルートを実装することを要求しました。
インターフェイス eth0 経由で 10.0.213.5/32 に送信されるパケットは、10.0.5.1 経由でルーティングされる必要があります。
この目標を達成するために管理者が実行する必要があるコマンドはどれですか?

  • A. ip route 10.0.213.5/32 を 10.0.5.1 dev eth0 経由で追加します
  • B. ルート -i etho -p 10.0.213.5 10.0.5.1 を追加します
  • C. ルート変更 eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
  • D. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route

正解:A

解説:
The command ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0 adds a static route to the routing table that sends packets destined for 10.0.213.5/32 (a single host) through the gateway 10.0.5.1 on the interface eth0. This is the correct way to achieve the goal. The other options are incorrect because they either use the wrong syntax (route -i etho -p add), the wrong command (route modify), or the wrong file (/proc/net/route).


質問 # 64
管理者は、以下のコマンドを使用して、HISTSIZE 変数が 50 であることに気付きました。
ヒストサイズ=50
HISTSIZEをエクスポート
管理者は echo HISTSIZE を使用して HISTSIZE 値を再確認しましたが、値は取得されません。
管理者は値を取得するために次のコマンドのどれを使用する必要がありますか?

  • A. printf HISTSIZE
  • B. echo HISTSIZE
  • C. grep $HISTSIZE
  • D. printenv | grep $HISTSIZE

正解:D


質問 # 65
Linux 管理者は、権限のないユーザーがリモートから Linux サーバーにログインしようとしているのではないかと疑っています。
管理者が最初に確認する必要があるのは次のうちどれですか?

  • A. /var/log/dmesg
  • B. /var/log/secure
  • C. /var/log/messages
  • D. /var/log/kern.log

正解:B

解説:
/var/log/secure
What's logged?
RedHat and CentOS based systems use this log file instead of /var/log/auth.log.
It is mainly used to track the usage of authorization systems.
It stores all security related messages including authentication failures.
It also tracks sudo logins, SSH logins and other errors logged by system security services daemon.


質問 # 66
Linux管理者は、systemdタイマーが毎晩深夜に実行されない原因を調査しています。管理者は次のようなユニットファイルを発見しました。
[ユニット]
説明=毎日深夜にバックアップを実行する
[タイマー]
オンカレンダー=--01 00:00:00
ユニット=backup.service
ランダム化遅延秒数=10800
[インストール]
WantedBy=マルチユーザー.ターゲット
管理者はユニット ファイルに対して次のどの変更を行う必要がありますか? (2 つ選択してください)。

  • A. OnCalendar=--01 00:00:00 を削除します。
  • B. OnCalendar を 00:00:00 に変更します。
  • C. WakeSystem=Midnight を追加します。
  • D. AccuracySec=1 を追加します。
  • E. RandomizedDelaySec=10800 を削除します。
  • F. 毎日 OnCalendar=--* を追加します。

正解:E

解説:
The RandomizedDelaySec parameter delays the timer by a random time within the specified seconds, which can be up to 3 hours in this case. Removing it will ensure the timer triggers at exactly midnight. Additionally, using OnCalendar=--* daily correctly schedules the timer to run every day at midnight.


質問 # 67
サーバーの空きメモリがほとんどなくなり、応答しなくなっています。
次のどのコマンド セットが問題を最も軽減しますか?

  • A. lsof、lvcreate、mdadm
  • B. fdisk、mkswap、swapon -a
  • C. df、du、rmmod
  • D. フリー、ファック、パーツプローブ

正解:B

解説:
Going through the process of creating a swap partition.


質問 # 68
......

CompTIA XK0-005日本語問題集で一発合格を目指すならこれ!:https://jp.fast2test.com/XK0-005-JPN-premium-file.html


弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어