Courseiva
Back to Red Hat Certified System Administrator EX200 questions

Scenario-based practice

Hard Difficulty Questions

Practise Red Hat Certified System Administrator EX200 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

20
scenario questions
EX200
exam code
Red Hat
vendor

Scenario guide

How to approach hard difficulty questions

These are the questions most candidates get wrong. They require connecting multiple concepts, reading tricky output, or knowing edge-case behaviour that isn't on most study cards. Practising them trains you to operate under uncertainty — a necessary skill on the real exam.

Quick answer

Hard Difficulty Questions questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Related practice questions

Related EX200 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmulti select
Full question →

Which TWO methods are considered best practices for securing SSH access to a server? (Select exactly two.)

Question 2hardmultiple choice
Full question →

A system fails to boot with an error about a missing ext4 filesystem. From the rescue environment, which command should be run to attempt automatic repair of all filesystems?

Question 3hardmultiple choice
Full question →

Refer to the exhibit. After extending the logical volume, why does the df output still show 5.0G?

Exhibit

# df -h /data
Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv_data
                5.0G  3.9G  1.1G  79% /data

# lvextend -L +2G /dev/vg00/lv_data
  Size of logical volume vg00/lv_data changed from 5.00 GiB to 7.00 GiB.
  Logical volume vg00/lv_data successfully resized.

# df -h /data
Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv_data
                5.0G  3.9G  1.1G  79% /data

# cat /etc/fstab | grep data
/dev/mapper/vg00-lv_data /data xfs defaults 0 0
Question 4hardmultiple choice
Full question →

A storage administrator is asked to increase the size of an ext4 filesystem mounted at /data. The underlying logical volume /dev/mapper/vg01-lv01 is currently 10GB and the volume group has 5GB of free extents. After extending the logical volume by 2GB using lvextend -L +2G /dev/mapper/vg01-lv01, what command must be run to resize the filesystem?

Question 5hardmultiple choice
Full question →

The /data filesystem is at 99% capacity. The LVM setup shows that the volume group has 50GB free space, but the logical volume is only 100GB. What is the correct sequence of commands to increase the filesystem to use all available space in the volume group?

Exhibit

Refer to the exhibit.

# df -h /data
Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/vg01-data  100G   99G  1.0G  99% /data

# cat /etc/fstab
/dev/mapper/vg01-data /data xfs defaults 0 0

# lsblk /dev/sdb
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb       8:16   0  150G  0 disk
└─sdb1    8:17   0  150G  0 part
  └─vg01-data 253:1  0  100G  0 lvm  /data

# vgs
  VG   #PV #LV #SN Attr   VSize   VFree
  vg01   1   1   0 wz--n- 150.00g 50.00g
Question 6hardmultiple choice
Full question →

A production server running Red Hat Enterprise Linux 9 hosts multiple Podman containers. The system administrator wants to ensure that a critical container named 'payments' automatically starts when the host boots, even if no user is logged in. The administrator has already created a systemd service file at /etc/systemd/system/container-payments.service. The service file contains: [Unit] Description=Payments container [Service] ExecStart=/usr/bin/podman start -a payments ExecStop=/usr/bin/podman stop payments Type=forking Restart=always [Install] WantedBy=multi-user.target. After enabling the service with 'systemctl enable container-payments.service' and rebooting, the container does not start. The administrator checks 'systemctl status container-payments.service' and sees that the service is inactive (dead). What is the most likely reason and the correct fix?

Question 7hardmulti select
Full question →

Which TWO commands show detailed information about a container image, including layers and configuration? (Choose TWO.)

Question 8hardmultiple choice
Full question →

A company requires that SSH access from the external network (10.0.1.0/24) only be allowed to port 2222, and all other incoming traffic on the firewall should be dropped. Which firewalld rule should be applied to the external zone?

Question 9hardmultiple choice
Full question →

A user executes the script shown in the exhibit with './export_script.sh' and then runs 'echo $MY_VAR' in the same terminal. The output is empty. Why does this happen?

Exhibit

Refer to the exhibit.
```bash
#!/bin/bash
# Script to set environment variable
MY_VAR="hello"
export MY_VAR
```
Question 10hardmultiple choice
Full question →

Refer to the exhibit. The script produces the error shown. What is the most likely cause?

Exhibit

Refer to the exhibit.

#!/bin/bash
if [ $var = "value" ]
then
  echo "Match"
fi

Error: [: =: unary operator expected
Question 11hardmultiple choice
Full question →

A developer needs to compile software from source and install it under /opt/custom. To avoid affecting the system package manager, which approach should be used?

Question 12hardmulti select
Full question →

Which THREE options are valid when creating a new partition with the 'parted' command? (Choose three.)

Question 13hardmultiple choice
Full question →

Which of the following is the correct way to persistently mount a filesystem using its UUID?

A company policy requires that all cron jobs run by non-root users must be logged to a specific file /var/log/usercron.log. The system administrator decides to use rsyslog to capture these messages. Which configuration directive should be added to /etc/rsyslog.conf or a file in /etc/rsyslog.d/ to achieve this?

Question 15hardmulti select
Full question →

Which THREE commands can be used to monitor real-time process status and update the display every 2 seconds? (Choose three.)

Question 16hardmultiple choice
Full question →

A Red Hat Enterprise Linux 9 system has a logical volume 'lv_data' in the volume group 'vg_data' that needs to be resized from 10G to 15G. The underlying physical volumes have enough free space. Which sequence of commands correctly resizes the logical volume and the ext4 filesystem?

Question 17hardmultiple choice
Full question →

Refer to the exhibit. A web server runs as user 'apache'. The directory /var/www/html is owned by root:root with permissions 755. The administrator wants to allow the user 'webuser' to upload files to /var/www/html via SFTP. Which step is necessary to achieve this?

Exhibit

Refer to the exhibit.

[root@server ~]# getent passwd webuser
webuser:x:1001:1001:Web User:/home/webuser:/sbin/nologin
[root@server ~]# ls -ld /var/www/html
 drwxr-xr-x. 2 root root 6 Jan 10 10:00 /var/www/html
[root@server ~]# ls -lZ /var/www/html
 drwxr-xr-x. root root unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/html
[root@server ~]# id webuser
 uid=1001(webuser) gid=1001(webuser) groups=1001(webuser)
[root@server ~]# groups webuser
 webuser : webuser
Question 18hardmultiple choice
Full question →

An administrator wants to enable user disk quotas on an XFS filesystem mounted at /home. Which steps are required?

Question 19hardmultiple choice
Full question →

A system administrator notices that a RHEL 9 server's /var/log/messages is filling up the /var partition. The administrator wants to ensure log rotation runs daily and keeps 4 weeks of logs. Which configuration file should be modified?

Question 20hardmulti select
Full question →

Which THREE of the following are common steps to configure a system to automatically mount an NFS share at boot?

These EX200 practice questions are part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style EX200 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.