RedHat Red Hat Certified System Administrator - RHCSA (EX200 Korean Version) - EX200 Korean Exam Practice Test

Question 1
현재 관리 중인 모든 저장소를 비활성화합니다.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
subscription-manager config --rhsm.manage_repos=0
Detailed Explanation:
* This disables repository management by Subscription Manager, exactly as shown in the lab dataset.
* Use this when a task wants system repositories disabled so custom repos can be managed manually.
Question 2
registry.access.redhat.com/ubi10/ubi 이미지를 다운로드하고, webtest라는 이름의 루트리스 컨테이너를 실행하세요.
3600을 자세요.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
podman pull registry.access.redhat.com/ubi10/ubi
podman run -d --name webtest registry.access.redhat.com/ubi10/ubi sleep 3600
podman ps
Detailed Explanation:
* podman pull downloads the image.
* podman run -d starts the container in the background.
* Rootless Podman is a normal RHEL container workflow.
* RHEL 10 container documentation continues to center on Podman for image and container
management. ( Red Hat Documentation )
Question 3
/etc 디렉터리를 압축 아카이브로 생성하고 파일 형식을 확인하십시오.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
tar -zvcf /root/etc_backup.tar.gz /etc
file /root/etc_backup.tar.gz
Detailed Explanation:
* tar creates the archive.
* -z uses gzip compression.
* -v is verbose.
* -c creates the archive.
* -f names the output file.
* file confirms the resulting archive type.
Question 4
/share/dev 디렉터리에 대한 사용자 john의 ACL 권한을 구성합니다.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
* Read-only access:
setfacl -m u:john:r-- /share/dev
* Read-write access:
setfacl -m u:john:rw- /share/dev
* Remove ACL permissions:
setfacl -m u:john:--- /share/dev
Detailed Explanation:
* setfacl -m modifies the ACL.
* u:john:r-- grants read only.
* u:john:rw- grants read and write.
* u:john:--- effectively removes access for that ACL entry.
* ACLs are used when standard owner/group/other permissions are not enough.
Question 5
시스템 모니터링 스크립트를 생성하세요
* systeminfo라는 이름의 스크립트를 생성합니다.
* 스크립트는 /usr/local/bin에 위치해야 합니다.
* 이 스크립트는 현재 시스템 프로세스에 대한 정보를 얻는 데 사용됩니다. 다음 프로세스 정보를 순서대로 출력해야 합니다.
프로세스 소유자
프로세스 PID
가상 메모리 사용량
상주(물리적) 메모리 사용량
CPU 사용률
출력 결과는 CPU 사용률 백분율 순으로 정렬되어야 하며, CPU를 가장 많이 사용하는 프로세스가 마지막에 표시되어야 합니다.
Correct Answer:
Solution:
[root@node1 ~]# vim /usr/local/bin/systeminfo
#!/bin/bash
ps -xao user,pid,vsz,rss,%cpu --sort=pcpu
Using sort:
#!/bin/bash
ps -xao user,pid,vsz,rss,%cpu | sort -fnk 5
Verify:
[root@node1 ~]# chmod +x /usr/local/bin/systeminfo
[root@node1 ~]# systeminfo
Explanation of ps -xao:
x - Display processes without a controlling terminal, and show the full path of each command
a - Display all processes associated with a terminal, except session leaders
o - User-defined output format
Question 6
호스트가 기본적으로 multi-user.target으로 부팅되도록 구성합니다.
Correct Answer:
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.
Question 7
sudo 권한 구성 추가
sysmgrs 그룹 구성원이 암호 입력 없이 sudo를 사용할 수 있도록 허용합니다.
Correct Answer:
Solution:
[root@node1 ~]# visudo
...
%wheel ALL=(ALL) NOPASSWD: ALL
%sysmgrs ALL=(ALL) NOPASSWD: ALL
# Verification (mandatory operation)
[root@node1 ~]# su - natasha
[natasha@node1 ~]# sudo cat /etc/shadow