Back to Red Hat Certified System Administrator EX200 questions

Scenario-based practice

Refer to the Exhibit Practice 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.

15
scenario questions
EX200
exam code
Red Hat
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the 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 1easymultiple choice
Full question →

Refer to the exhibit. The administrator wants to create a single file system that spans the entire 20 GB disk /dev/sdb. All data on the disk can be discarded. Which steps are required to create an XFS file system on the whole disk?

Exhibit

Refer to the exhibit.

# lsblk /dev/sdb
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 20G 0 disk
├─sdb1 8:17 0 2G 0 part
├─sdb2 8:18 0 2G 0 part
└─sdb3 8:19 0 16G 0 part

# blkid /dev/sdb1
/dev/sdb1: UUID="abc123" TYPE="xfs"
# blkid /dev/sdb2
/dev/sdb2: UUID="def456" TYPE="ext4"
# blkid /dev/sdb3
/dev/sdb3: UUID="ghi789" TYPE="swap"
Question 2hardmultiple 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 3mediummultiple choice
Full question →

Refer to the exhibit. The service 'example.service' is created but fails to start. The administrator runs 'systemctl start example.service' and gets no output, but 'systemctl status example.service' shows 'active (exited)'. What is the most likely cause?

Exhibit

Refer to the exhibit.

# cat /etc/systemd/system/example.service
[Unit]
Description=Example Service
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/example.sh
Restart=on-failure

[Install]
WantedBy=multi-user.target

# systemctl daemon-reload
Question 4mediummultiple choice
Full question →

Refer to the exhibit. A junior admin runs this script as root, but it always prints 'httpd is running' even when httpd is stopped. What is the most likely cause?

Network Topology
if systemctl is-activequiet $SERVICERefer to the exhibit.```bash#!/bin/bash# Script: check_service.shSERVICE="httpd"thenecho "$SERVICE is running"elsesystemctl restart $SERVICEecho "$SERVICE was restarted"fi```
Question 5hardmultiple choice
Full question →

Refer to the exhibit. A web server (httpd) is unable to serve files from a user's home directory. What is the most appropriate single command to resolve the issue?

Exhibit

Refer to the exhibit.

```
# ausearch -m avc -ts recent
----
time->Thu Mar 14 10:15:22 2024
type=AVC msg=audit(1710418522.123:456): avc:  denied  { read } for  pid=1234 comm="httpd" name="index.html" dev=sda1 ino=5678 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
```
Question 6mediummultiple choice
Full question →

Refer to the exhibit. An administrator runs 'mount -o remount,ro /data' and then 'mount' shows /data as read-only. Later, the system is rebooted. What is the state of /data after reboot?

Exhibit

# fdisk -l /dev/sdb
Disk /dev/sdb: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x12345678

Device     Boot Start      End  Sectors Size Id Type
/dev/sdb1        2048 20971519 20969472  10G 83 Linux

# blkid /dev/sdb1
/dev/sdb1: UUID="abc123" TYPE="xfs"

# cat /etc/fstab | grep sdb
UUID=abc123 /data xfs defaults 0 0

# mount | grep data
/dev/sdb1 on /data type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
Question 7mediummultiple choice
Full question →

Refer to the exhibit. An administrator attempts to mount the partition but receives an error. Which command should be run first to resolve the issue?

Exhibit

# parted /dev/sdc print
Model: VMware Virtual disk (scsi)
Disk /dev/sdc: 2147MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  2147MB  2146MB  xfs          primary

# mount /dev/sdc1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error.
Question 8hardmultiple choice
Full question →

Refer to the exhibit. The administrator wants to add an additional 5GB to the /mnt/data filesystem. There is no unpartitioned space on /dev/sdb. Which is the correct procedure?

Exhibit

Refer to the exhibit.

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   20G  0 disk
├─sda1   8:1    0    1G  0 part /boot
├─sda2   8:2    0    2G  0 part [SWAP]
└─sda3   8:3    0   17G  0 part /
sdb      8:16   0   10G  0 disk
└─sdb1   8:17   0   10G  0 part /mnt/data

# df -h /mnt/data
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       9.8G  7.5G  2.3G  77% /mnt/data
Question 9easymultiple choice
Full question →

Refer to the exhibit. Why does the 'bin' user have /sbin/nologin as its shell?

Exhibit

Refer to the exhibit.

$ cat /etc/passwd | head -3
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
Question 10mediummultiple choice
Full question →

Refer to the exhibit. Why does the /etc/shadow file have no read permissions for any user?

Exhibit

Refer to the exhibit.

$ ls -l /etc/shadow
----------. 1 root root 1234 Oct  5 14:30 /etc/shadow
Question 11mediummultiple choice
Full question →

Given the exhibit, which statement is true about the file /project/report.txt?

Exhibit

Refer to the exhibit.

[root@server ~]# id alice
uid=1002(alice) gid=1002(alice) groups=1002(alice),10(wheel),50(staff)
[root@server ~]# ls -ld /project
 drwxrws---. 2 root staff 4096 Mar 15 14:22 /project
[root@server ~]# ls -l /project
 total 0
 -rw-rw----. 1 alice staff 0 Mar 15 14:23 report.txt
Question 12mediummultiple choice
Full question →

Refer to the exhibit. A user attempts to start a new container named 'web3' but receives an error. The user wants to reuse the name 'web3'. Which command should be run first to resolve the issue?

Network Topology
$ podman inspect web1format '{{.State.ExitCode}}'$ podman run -dname web3 -p 8080:80env-file container.env registry.access.redhat.com/ubi8/nginx-118Refer to the exhibit.$ podman ps -a$ cat container.envNGINX_PORT=8080
Question 13easymultiple choice
Read the full NAT/PAT explanation →

Refer to the exhibit. A security analyst reviews the journal output for sshd.service. Which of the following best describes the observed pattern of events?

Exhibit

Refer to the exhibit.

# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2025-02-17 10:30:45 EST; 2h 15min ago
 Main PID: 1234 (sshd)
   Status: "Server listening on 0.0.0.0 port 22."
   CGroup: /system.slice/sshd.service
           └─1234 /usr/sbin/sshd -D

Feb 17 12:45:01 localhost sshd[1234]: Did not receive identification string from 192.168.1.100 port 54321
Feb 17 12:45:02 localhost sshd[1234]: Connection closed by 192.168.1.100 port 54321 [preauth]
Feb 17 12:46:10 localhost sshd[1234]: Failed password for root from 192.168.1.100 port 54322 ssh2
Feb 17 12:46:10 localhost sshd[1234]: Failed password for root from 192.168.1.100 port 54322 ssh2
Feb 17 12:46:11 localhost sshd[1234]: Failed password for root from 192.168.1.100 port 54322 ssh2
Feb 17 12:46:11 localhost sshd[1234]: Connection closed by 192.168.1.100 port 54322 [preauth]
Feb 17 12:47:05 localhost sshd[1234]: Accepted password for root from 192.168.1.100 port 54323 ssh2
Feb 17 12:47:05 localhost sshd[1234]: pam_unix(sshd:session): session opened for user root by (uid=0)
Question 14easymultiple choice
Full question →

Refer to the exhibit. An administrator is unable to write to /tmp because the filesystem is full. What is the most likely cause?

Exhibit

Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/rhel-root   50G   45G  5.2G  90% /
/dev/sda1      1014M  312M  703M  31% /boot
Question 15hardmultiple choice
Full question →

Refer to the exhibit. What effect does the value INACTIVE=-1 have on newly created user accounts?

Exhibit

# useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=yes

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.