最新的RedHat Red Hat Certified System Administrator - RHCSA (EX200日本語版) - EX200日本語免費考試真題

問題1
dnf-automaticをインストールし、毎日の自動更新チェックを有効にしてください。
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
dnf install -y dnf-automatic
systemctl enable --now dnf-automatic.timer
systemctl list-timers --all | grep dnf
Detailed Explanation:
* dnf-automatic provides automated update checking and installation features.
* The timer unit schedules the checks.
* RHEL 10 DNF documentation specifically documents the dnf-automatic timer units. ( Red Hat Documentation )
問題2
デフォルトのパスワードポリシーを設定します
新規作成ユーザーに対してパスワードポリシーを設定し、ユーザー作成時にパスワードがデフォルトで25日後に期限切れになるようにします。
正確答案:
Solution:
[root@node1 ~]# vim /etc/login.defs +25
Type / and search for PASS_MAX_DAYS.
Modify it to:
PASS_MAX_DAYS 25
Verify:
[root@node1 ~]# useradd user1
[root@node1 ~]# chage -l user1
問題3
毎日午前2時にbackup-now.serviceを実行するsystemdタイマーを作成します。
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
Create timer unit:
cat > /etc/systemd/system/backup-now.timer < < 'EOF'
[Unit]
Description=Daily backup timer
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
EOF
Enable it:
systemctl daemon-reload
systemctl enable --now backup-now.timer
systemctl list-timers --all | grep backup-now
Detailed Explanation:
* OnCalendar=*-*-* 02:00:00 means daily at 02:00.
* Persistent=true runs missed jobs after boot if the system was off.
* timers.target is the normal target for timer units.
* RHEL 10 documentation includes systemd timer units as a standard scheduling mechanism. ( Red Hat
Documentation )
問題4
ユーザー名「harry」を作成し、パスワードの有効期限を30日ごとに設定し、初回ログイン時にパスワードの変更を強制するようにしてください。
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
useradd harry
passwd harry
chage -M 30 -d 0 harry
chage -l harry
Detailed Explanation:
* useradd harry creates the local user.
* passwd harry sets the initial password.
* chage -M 30 sets the maximum password age to 30 days.
* chage -d 0 forces the user to change the password at next login.
* chage -l harry verifies the policy.
問題5
チューニング済みのソフトウェアをインストールして設定し、推奨プロファイルを決定して有効化します。
正確答案:
See the solution below in Explanation.
Explanation:
Solution:
dnf install -y tuned
systemctl enable --now tuned
tuned-adm recommend
tuned-adm profile virtual-guest
tuned-adm active
Detailed Explanation:
* The lab text uses yum, but on RHEL 10 dnf is the preferred package manager command. RHEL 10
documentation focuses on DNF behavior and changes.
* tuned-adm recommend shows the best-fit tuning profile.
* tuned-adm profile virtual-guest activates the profile.
* tuned-adm active confirms it.
問題6
ネットワーク設定を構成する
node1を以下のネットワーク設定で構成してください。
ホスト名: node1.domain250.example.com
IPアドレス:172.25.250.100
サブネットマスク: 255.255.255.0
ゲートウェイ: 172.25.250.254
正確答案:
Solution:
# Connect to servera via console for IP modification, then check using the ip addr command.
# After confirming no issues, SSH to servera for hostname modification. This way, you can copy the hostname to avoid typos.
[root@clear ~] nmcli con show
[root@clear ~] nmcli con mod 'network configuration name' ipv4.method manual ipv4.addresses 172.25.0.25/24 ipv4.gateway 172.25.0.254 ipv4.dns 172.25.0.254
autoconnect yes
[root@clear ~] nmcli con up 'network configuration name'
[root@clear ~] ip a
[root@clear ~] ssh [email protected]
[root@clear ~] hostnamectl set-hostname red.lab0.example.com
# Verification
[root@node1 ~] ip a //Check if the IP is correct
[root@node1 ~] hostname //Check if the hostname is correct
問題7
論理ボリュームを作成する
指定された要件に従って、新しい論理ボリュームを作成します。
- ボリュームグループ「myvg」に属する「mylv」という名前の論理ボリューム。サイズは50エクステント。
- ボリュームグループ「myvg」内の論理ボリュームのエクステントサイズは16 MiBである必要があります。
- 新しい論理ボリュームをVFATファイルシステムでフォーマットします。
- 論理ボリュームは、システム起動時に/mnt/mydataに自動的にマウントされる必要があります。
正確答案:
Solution:
# Check the disk layout
[root@node2 ~]# lsblk
# Partition the disk
[root@node2 ~]# fdisk /dev/vdb
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n # Add a new partition
Partition type
p primary (1 primary, 0 extended, 3 free) # Primary partition
e extended (container for logical partitions) # Extended partition
Select (default p): p
Partition number (2-4, default 2): # Press Enter
First sector (1026048-20971519, default 1026048): # Press Enter
***Note: The partition size must be larger than the total size, it should not be exactly equal to. It is recommended to add an extra 200M.
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-20971519, default 20971519): +1200M # Partition size
Created a new partition 2 of type 'Linux' and of size 512 MiB.
Command (m for help): w # Save and exit
The partition table has been altered.
Syncing disks.
# Create volume group and logical volume
[root@node2 ~]# vgcreate -s 16M myvg /dev/vdb4
[root@node2 ~]# lvcreate -l 50 -n mylv myvg
# Install vfat support
[root@node2 ~]# yum provides */mkfs.vfat
[root@node2 ~]# yum -y install dosfstools
# Format the logical volume with vfat filesystem
[root@node2 ~]# mkfs.vfat /dev/myvg/mylv
# Create mount point
[root@node2 ~]# mkdir /mnt/mydata
# Update /etc/fstab for automatic mounting
[root@node2 ~]# vim /etc/fstab
/dev/myvg/mylv /mnt/mydata vfat defaults 0 0
# Mount the logical volume
[root@node2 ~]# mount -a