최신RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) - EX200 Korean무료샘플문제
문제1
지원되는 파일 시스템에 대해 주기적인 TRIM 작업을 활성화합니다.
지원되는 파일 시스템에 대해 주기적인 TRIM 작업을 활성화합니다.
정답:
See the solution below in Explanation.
Explanation:
Solution:
systemctl enable --now fstrim.timer
systemctl status fstrim.timer
Detailed Explanation:
* fstrim.timer schedules discard of unused blocks.
* This is useful on SSD-backed storage and thin-provisioned environments.
* RHEL 10 storage documentation explicitly documents enabling fstrim.timer. ( Red Hat Documentation )
Explanation:
Solution:
systemctl enable --now fstrim.timer
systemctl status fstrim.timer
Detailed Explanation:
* fstrim.timer schedules discard of unused blocks.
* This is useful on SSD-backed storage and thin-provisioned environments.
* RHEL 10 storage documentation explicitly documents enabling fstrim.timer. ( Red Hat Documentation )
문제2
호스트가 기본적으로 multi-user.target으로 부팅되도록 구성합니다.
호스트가 기본적으로 multi-user.target으로 부팅되도록 구성합니다.
정답:
See the solution below in Explanation.
Explanation:
Solution:
systemctl set-default multi-user.target
systemctl get-default
Detailed Explanation:
* set-default changes the boot target persistently.
* get-default verifies the result.
* multi-user.target is the standard non-graphical multi-user boot target.
Explanation:
Solution:
systemctl set-default multi-user.target
systemctl get-default
Detailed Explanation:
* set-default changes the boot target persistently.
* get-default verifies the result.
* multi-user.target is the standard non-graphical multi-user boot target.
문제3
Podman 이미지를 빌드하고, 사용자 alex에 대해 잔여 로그아웃을 활성화하고, 사용자 컨테이너에 대한 systemd 유닛을 생성하고 활성화합니다.
Podman 이미지를 빌드하고, 사용자 alex에 대해 잔여 로그아웃을 활성화하고, 사용자 컨테이너에 대한 systemd 유닛을 생성하고 활성화합니다.
정답:
See the solution below in Explanation.
Explanation:
Solution:
podman build -t myimage -f Containerfile .
loginctl enable-linger alex
cd ~/.config/systemd/user/
podman generate systemd --name mycontainer --files --new
systemctl --user daemon-reload
systemctl --user enable --now container-mycontainer.service
Detailed Explanation:
* podman build creates the container image.
* loginctl enable-linger alex allows user services to keep running without an active login session.
* podman generate systemd creates a systemd unit file for the container.
* systemctl --user manages the unit in the user session scope.
* On newer Podman releases, behavior and defaults have changed in RHEL 10, but the lab's workflow is
still conceptually valid.
Explanation:
Solution:
podman build -t myimage -f Containerfile .
loginctl enable-linger alex
cd ~/.config/systemd/user/
podman generate systemd --name mycontainer --files --new
systemctl --user daemon-reload
systemctl --user enable --now container-mycontainer.service
Detailed Explanation:
* podman build creates the container image.
* loginctl enable-linger alex allows user services to keep running without an active login session.
* podman generate systemd creates a systemd unit file for the container.
* systemctl --user manages the unit in the user session scope.
* On newer Podman releases, behavior and defaults have changed in RHEL 10, but the lab's workflow is
still conceptually valid.
문제4
새 파티션을 사용하여 스왑 영역을 400MB 확장하고 영구적으로 저장합니다.
새 파티션을 사용하여 스왑 영역을 400MB 확장하고 영구적으로 저장합니다.
정답:
See the solution below in Explanation.
Explanation:
Solution:
* Create the swap partition:
fdisk /dev/sdb
partprobe /dev/sdb
* Format it for swap:
mkswap /dev/sdb2
* Enable it:
swapon /dev/sdb2
* Persist it in /etc/fstab:
echo "/dev/sdb2 swap swap defaults 0 0" > > /etc/fstab
* Verify:
swapon --show
Detailed Explanation:
* mkswap prepares the partition as swap space.
* swapon activates it immediately.
* Adding an /etc/fstab entry ensures it survives reboot.
* The lab uses a partition-based swap workflow.
Explanation:
Solution:
* Create the swap partition:
fdisk /dev/sdb
partprobe /dev/sdb
* Format it for swap:
mkswap /dev/sdb2
* Enable it:
swapon /dev/sdb2
* Persist it in /etc/fstab:
echo "/dev/sdb2 swap swap defaults 0 0" > > /etc/fstab
* Verify:
swapon --show
Detailed Explanation:
* mkswap prepares the partition as swap space.
* swapon activates it immediately.
* Adding an /etc/fstab entry ensures it survives reboot.
* The lab uses a partition-based swap workflow.
문제5
시스템 호스트 이름을 구성하고 기존 NetworkManager 연결에 고정 IP 주소를 구성합니다.
시스템 호스트 이름을 구성하고 기존 NetworkManager 연결에 고정 IP 주소를 구성합니다.
정답:
See the solution below in Explanation.
Explanation:
Solution:
* Set the hostname:
hostnamectl set-hostname server1.example.com
* Configure the existing connection with a static IP:
nmcli connection modify ens160 ipv4.address 192.168.1.2/24 ipv4.gateway 192.168.1.1 ipv4.dns 1.1.1.1 ipv4.
method manual connection.autoconnect yes
* Bring the connection up:
nmcli connection up ens160
Detailed Explanation:
* hostnamectl is the correct modern command for changing the system hostname.
* nmcli is the correct tool for RHEL 10 network configuration because the old ifcfg style is removed in
RHEL 10, and NetworkManager keyfiles are the supported model.
* ipv4.method manual tells NetworkManager to use static addressing.
* connection.autoconnect yes ensures the profile activates automatically after reboot.
* nmcli connection up ens160 applies the changes immediately.
Explanation:
Solution:
* Set the hostname:
hostnamectl set-hostname server1.example.com
* Configure the existing connection with a static IP:
nmcli connection modify ens160 ipv4.address 192.168.1.2/24 ipv4.gateway 192.168.1.1 ipv4.dns 1.1.1.1 ipv4.
method manual connection.autoconnect yes
* Bring the connection up:
nmcli connection up ens160
Detailed Explanation:
* hostnamectl is the correct modern command for changing the system hostname.
* nmcli is the correct tool for RHEL 10 network configuration because the old ifcfg style is removed in
RHEL 10, and NetworkManager keyfiles are the supported model.
* ipv4.method manual tells NetworkManager to use static addressing.
* connection.autoconnect yes ensures the profile activates automatically after reboot.
* nmcli connection up ens160 applies the changes immediately.
문제6
사용자 natasha에 대해 새 파일의 umask 값을 400으로, 디렉터리의 umask 값을 500으로 제한적으로 설정하십시오.
사용자 natasha에 대해 새 파일의 umask 값을 400으로, 디렉터리의 umask 값을 500으로 제한적으로 설정하십시오.
정답:
See the solution below in Explanation.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
Explanation:
Solution:
echo "umask 0277" > > /home/natasha/.bash_profile
Detailed Explanation:
* A umask of 0277 removes group and other permissions entirely.
* New files: base 666 minus mask 277 gives 400.
* New directories: base 777 minus mask 277 gives 500.
* Putting it in .bash_profile applies it for that user's login shell.
문제7
Apache가 /webdata 디렉토리의 콘텐츠를 8080 포트에서 제공하도록 구성하고, SELinux에서 해당 포트를 허용하고, 방화벽에서도 포트를 열어주세요.
Apache가 /webdata 디렉토리의 콘텐츠를 8080 포트에서 제공하도록 구성하고, SELinux에서 해당 포트를 허용하고, 방화벽에서도 포트를 열어주세요.
정답:
See the solution below in Explanation.
Explanation:
Solution:
dnf install -y httpd policycoreutils-python-utils
mkdir -p /webdata
echo "RHEL10 Web Server" > /webdata/index.html
sed -i 's/^Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf
semanage port -a -t http_port_t -p tcp 8080
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
systemctl enable --now httpd
systemctl restart httpd
ss -tulpn | grep 8080
Detailed Explanation:
* Apache defaults to port 80, so Listen 8080 changes the service port.
* SELinux must allow Apache to bind to 8080, which is done with semanage port.
* firewall-cmd opens the port externally.
* RHEL 10 documents firewalld as the standard firewall management interface and SELinux port
labeling for confined services. ( Red Hat Documentation )
Explanation:
Solution:
dnf install -y httpd policycoreutils-python-utils
mkdir -p /webdata
echo "RHEL10 Web Server" > /webdata/index.html
sed -i 's/^Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf
semanage port -a -t http_port_t -p tcp 8080
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
systemctl enable --now httpd
systemctl restart httpd
ss -tulpn | grep 8080
Detailed Explanation:
* Apache defaults to port 80, so Listen 8080 changes the service port.
* SELinux must allow Apache to bind to 8080, which is done with semanage port.
* firewall-cmd opens the port externally.
* RHEL 10 documents firewalld as the standard firewall management interface and SELinux port
labeling for confined services. ( Red Hat Documentation )