Skip to content
devopsbymuh_

EX200 practice questions and answers

All 60 questions from Full Practice Test 1 for Red Hat Certified System Administrator (RHCSA) exam, with the correct answer and a full explanation for each — including why the other options are wrong. Free to read, no signup.

What this set covers

Questions are weighted to match the official EX200 exam guide. The real exam is Hands-on practical tasks (count not published by Red Hat; commonly 15-20, unofficial) questions in 150 minutes with a pass mark of 210 / 300 (70%) - not published on current Red Hat pages.

  • Understand and use essential tools6 q · 10%
  • Manage software6 q · 10%
  • Create simple shell scripts6 q · 10%
  • Operate running systems6 q · 10%
  • Configure local storage6 q · 10%
  • Create and configure file systems6 q · 10%
  • Deploy, configure, and maintain systems6 q · 10%
  • Manage basic networking6 q · 10%
  • Manage users and groups6 q · 10%
  • Manage security6 q · 10%
Question 1Manage users and groups

Which directory's contents are copied into a new user's home directory at creation time?

  • A/etc/skel
  • B/etc/default
  • C/usr/share/defaults
  • D/root

Correct answer: A /etc/skel

useradd populates a new home directory from /etc/skel, which is how default dotfiles are distributed. /etc/default holds tool defaults, the other paths are not used for this purpose.

man useradd
Question 2Operate running systemsSelect 2

Which two commands identify the process consuming the most CPU right now? (Select TWO.)

  • Atop
  • Bps aux --sort=-%cpu | head
  • Cdf -h
  • Dlsblk
  • Eblkid

Correct answer: A, B top · ps aux --sort=-%cpu | head

top gives a live ordered view and the sorted ps output gives a snapshot, both ranked by CPU usage. df, lsblk, and blkid all report storage information.

man ps
Question 3Manage security

Which command reports the current SELinux mode and policy?

  • Asestatus
  • Bsetenforce 0
  • Crestorecon -R /var/www
  • Dsemanage login -l

Correct answer: A sestatus

sestatus prints whether SELinux is enabled, the current and configured modes, and the loaded policy. setenforce changes the mode, restorecon fixes file contexts, and semanage login lists login mappings.

man sestatus
Question 4Operate running systems

Which command reboots the system into the rescue target without editing the bootloader permanently?

  • Asystemctl rescue
  • Bsystemctl poweroff
  • Csystemctl set-default rescue.target
  • Dsystemctl mask rescue.target

Correct answer: A systemctl rescue

systemctl rescue switches the running system into rescue mode for the current session only. poweroff shuts the machine down, set-default makes the change permanent, and masking prevents the target from being used at all.

man systemctl
Question 5Understand and use essential tools

Which redirection appends a command's standard output to a file without truncating it?

  • Acommand >> file
  • Bcommand > file
  • Ccommand 2> file
  • Dcommand < file

Correct answer: A command >> file

The double angle bracket appends, while a single one truncates the file first. 2> redirects standard error, and the left angle bracket reads the file as standard input.

Bash — Redirections
Question 6Deploy, configure, and maintain systems

Which command makes the systemd journal persist across reboots?

  • ASet Storage=persistent in /etc/systemd/journald.conf and restart systemd-journald
  • BRun journalctl --vacuum-time=1s
  • CDelete /var/log/journal
  • DSet Storage=none in journald.conf

Correct answer: A Set Storage=persistent in /etc/systemd/journald.conf and restart systemd-journald

Persistent storage writes the journal under /var/log/journal so previous boots remain queryable. Vacuuming deletes old entries, removing the journal directory reverts to volatile storage, and Storage=none disables journal storage entirely.

man journald.conf
Question 7Configure local storage

Which fstab option ensures a filesystem is mounted automatically at boot?

  • Adefaults, which includes auto
  • Bnoauto
  • Cuser
  • Dloop

Correct answer: A defaults, which includes auto

The defaults option set includes auto, so the filesystem is mounted during boot and by mount -a. noauto explicitly prevents that, user allows non-root mounting, and loop is for mounting an image file.

man fstab
Question 8Operate running systems

Which command adjusts the scheduling priority of an already running process with PID 1234 to be less favourable?

  • Arenice 10 -p 1234
  • Bnice -n 10 1234
  • Ckill -TERM 1234
  • Dtaskset -p 1234

Correct answer: A renice 10 -p 1234

renice changes the nice value of an existing process, and a higher value means lower priority. nice sets the value when starting a new command, kill sends a signal, and taskset manages CPU affinity.

man renice
Question 9Configure local storage

Which command creates a Stratis pool from a block device on RHEL?

  • Astratis pool create mypool /dev/sdb
  • Bvgcreate mypool /dev/sdb
  • Cmkfs.stratis /dev/sdb
  • Dparted /dev/sdb mklabel stratis

Correct answer: A stratis pool create mypool /dev/sdb

The stratis command manages pools and filesystems in the Stratis local storage management layer. vgcreate belongs to LVM, there is no mkfs.stratis, and Stratis is not a partition table label.

RHEL — Managing storage with Stratis
Question 10Manage software

Which command reverses the most recent dnf transaction?

  • Adnf history undo last
  • Bdnf remove --all
  • Crpm --rebuilddb
  • Ddnf makecache

Correct answer: A dnf history undo last

dnf keeps a transaction history and undo reverses the selected transaction. There is no remove --all in this sense, rebuilddb repairs the rpm database, and makecache refreshes repository metadata.

man dnf — history
Question 11Deploy, configure, and maintain systemsSelect 2

Which two steps configure a system to send its logs to a central rsyslog server? (Select TWO.)

  • AAdd a forwarding rule such as *.* @@logserver:514 to the rsyslog configuration
  • BRestart or reload the rsyslog service so the change takes effect
  • CAdd the server to /etc/fstab
  • DDisable the journal entirely
  • ESet SELinux to permissive mode

Correct answer: A, B Add a forwarding rule such as *.* @@logserver:514 to the rsyslog configuration · Restart or reload the rsyslog service so the change takes effect

A forwarding action in the configuration plus a service reload is all that is needed on the client side. fstab describes filesystems, disabling the journal removes local logging, and relaxing SELinux is not a configuration step for log forwarding.

RHEL — Configuring a remote logging solution
Question 12Manage security

A web server cannot read files moved into /var/www/html from a user's home directory. What is the most likely cause and fix?

  • AThe files carry the wrong SELinux context; run restorecon -Rv /var/www/html
  • BThe web server needs to run as root
  • CSELinux must be disabled permanently
  • DThe firewall is blocking file reads

Correct answer: A The files carry the wrong SELinux context; run restorecon -Rv /var/www/html

Moving a file preserves its original context, so restorecon relabels it to the type the web server is allowed to read. Running as root is unnecessary and unsafe, disabling SELinux removes a protection rather than fixing the label, and firewalls do not affect local file access.

RHEL — Using SELinux
Question 13Manage security

Which command permanently allows the httpd service to make outbound network connections under SELinux?

  • Asetsebool -P httpd_can_network_connect on
  • Bsetsebool httpd_can_network_connect on
  • Csetenforce 0
  • Dchcon -t httpd_sys_content_t /var/www

Correct answer: A setsebool -P httpd_can_network_connect on

The -P flag writes the boolean to policy so it survives a reboot. Without it the change is runtime only, setenforce disables enforcement entirely, and chcon relabels files rather than toggling a boolean.

man setsebool
Question 14Create simple shell scripts

In a bash script, which variable holds the exit status of the previously executed command?

  • A$?
  • B$!
  • C$#
  • D$0

Correct answer: A $?

$? is the exit status of the last command, with zero meaning success. $! holds the last background PID, $# the argument count, and $0 the script name.

Question 15Create simple shell scriptsSelect 2

Which two lines make a script fail fast rather than continuing after an error? (Select TWO.)

  • Aset -e
  • Bset -o pipefail
  • Cset +e
  • Dtrap '' ERR
  • Eexec 2>/dev/null

Correct answer: A, B set -e · set -o pipefail

set -e exits on an unhandled non-zero status and pipefail makes a pipeline fail if any stage fails. set +e disables the behaviour, ignoring the ERR trap suppresses handling, and discarding standard error only hides messages.

Question 16Configure local storageSelect 2

Which two commands display information about existing LVM objects? (Select TWO.)

  • Apvs
  • Blvs
  • Cmkswap
  • Dfsck
  • Esync

Correct answer: A, B pvs · lvs

pvs and lvs summarise physical and logical volumes respectively, with vgs covering volume groups. mkswap formats swap, fsck checks filesystems, and sync flushes buffers.

man lvs
Question 17Create and configure file systems

Which permission bit set on a shared directory ensures that new files inherit the directory's group?

  • AThe setgid bit, applied with chmod g+s
  • BThe setuid bit, applied with chmod u+s
  • CThe sticky bit, applied with chmod +t
  • DThe execute bit for others

Correct answer: A The setgid bit, applied with chmod g+s

setgid on a directory makes new entries take the directory's group, which is how shared project directories work. setuid on a directory has no such effect on Linux, the sticky bit restricts deletion to the owner, and the others execute bit only permits traversal.

man chmod
Question 18Manage basic networkingSelect 2

Which two commands verify the current default route and the address assigned to an interface? (Select TWO.)

  • Aip route show default
  • Bip addr show ens192
  • Cgetenforce
  • Dsemanage port -l
  • Erestorecon -R /var

Correct answer: A, B ip route show default · ip addr show ens192

ip route show default prints the gateway and ip addr show reports the interface's addresses. getenforce, semanage, and restorecon are SELinux tools.

man ip
Question 19Create simple shell scripts

Which construct iterates over every .conf file in /etc/myapp within a bash script?

  • Afor f in /etc/myapp/*.conf; do ...; done
  • Bif /etc/myapp/*.conf; then ...; fi
  • Ccase /etc/myapp in *.conf) ...; esac
  • Dwhile /etc/myapp/*.conf; done

Correct answer: A for f in /etc/myapp/*.conf; do ...; done

A for loop over a glob expands to each matching path in turn. if tests a command's exit status, case matches one value against patterns, and the while form shown is not valid syntax.

Question 20Manage software

Which file location holds repository definitions for dnf?

  • A/etc/yum.repos.d/ with .repo files
  • B/etc/apt/sources.list.d/
  • C/var/cache/dnf/
  • D/etc/rpm/macros

Correct answer: A /etc/yum.repos.d/ with .repo files

dnf reads .repo files from /etc/yum.repos.d, which is retained from yum for compatibility. The apt path belongs to Debian systems, the cache directory holds downloaded metadata, and rpm macros configure build and query behaviour.

man dnf.conf
Question 21Manage users and groups

Which umask value causes newly created files to have permissions 640 by default?

  • A0027
  • B0022
  • C0002
  • D0777

Correct answer: A 0027

Files are created from base 666 minus the umask, so 666 with 027 masked gives 640. A umask of 022 yields 644, 002 yields 664, and 777 would leave no permissions at all.

man umask
Question 22Understand and use essential tools

Which command searches the manual page names and descriptions for the keyword 'partition'?

  • Aman -k partition
  • Bman partition
  • Cinfo partition
  • Dls /usr/share/man

Correct answer: A man -k partition

man -k, equivalent to apropos, searches the manual page index by keyword, which is how you find a command when you do not know its name. man with a name opens one page, info reads a different documentation format, and listing the man directory does not search descriptions.

man man
Question 23Configure local storage

Which command adds a new physical volume to an existing volume group?

  • Avgextend vg0 /dev/sdc
  • Bvgreduce vg0 /dev/sdc
  • Clvextend vg0 /dev/sdc
  • Dpvremove /dev/sdc

Correct answer: A vgextend vg0 /dev/sdc

vgextend grows a volume group by adding physical volumes to it. vgreduce removes one, lvextend grows a logical volume rather than a group, and pvremove wipes LVM metadata from a device.

man vgextend
Question 24Manage users and groupsSelect 2

Which two files define a user's primary group and supplementary group memberships respectively? (Select TWO.)

  • A/etc/passwd, which records the primary group ID
  • B/etc/group, which lists supplementary members
  • C/etc/shadow
  • D/etc/sudoers
  • E/etc/skel

Correct answer: A, B /etc/passwd, which records the primary group ID · /etc/group, which lists supplementary members

The fourth field of a passwd entry is the primary GID, and group entries list additional members. shadow holds password hashes, sudoers configures privilege escalation, and skel holds the template for new home directories.

man group
Question 25Create and configure file systems

Which command grows a mounted XFS filesystem after its logical volume has been extended?

  • Axfs_growfs /mountpoint
  • Bresize2fs /dev/vg0/lv_data
  • Cxfs_repair /dev/vg0/lv_data
  • Dtune2fs -m 1 /dev/vg0/lv_data

Correct answer: A xfs_growfs /mountpoint

XFS is grown with xfs_growfs and, unlike ext4, cannot be shrunk. resize2fs and tune2fs are ext filesystem tools, and xfs_repair fixes damage rather than resizing.

man xfs_growfs
Question 26Manage security

Which command adds a permanent SELinux file context rule for a custom web root at /srv/web?

  • Asemanage fcontext -a -t httpd_sys_content_t '/srv/web(/.*)?' then restorecon -Rv /srv/web
  • Bchcon -R -t httpd_sys_content_t /srv/web only
  • Csetenforce 0
  • Dchmod -R 777 /srv/web

Correct answer: A semanage fcontext -a -t httpd_sys_content_t '/srv/web(/.*)?' then restorecon -Rv /srv/web

semanage records the rule in policy so relabelling reproduces it, and restorecon applies it now. chcon alone is lost on a full relabel, disabling enforcement is not a fix, and world-writable permissions are a serious security problem.

man semanage-fcontext
Question 27Create and configure file systems

Which service mounts remote or local filesystems on demand and unmounts them after a period of inactivity?

  • Aautofs
  • Bchronyd
  • Cfirewalld
  • Dtuned

Correct answer: A autofs

autofs mounts a filesystem when its path is accessed and unmounts it when idle, which suits home directories on NFS. chronyd synchronises time, firewalld manages the firewall, and tuned applies performance profiles.

man autofs
Question 28Manage basic networking

Which nmcli command applies a static IPv4 address to an existing connection named ens192?

  • Anmcli connection modify ens192 ipv4.method manual ipv4.addresses 10.0.0.10/24
  • Bnmcli device disconnect ens192
  • Cnmcli general status
  • Dnmcli radio wifi off

Correct answer: A nmcli connection modify ens192 ipv4.method manual ipv4.addresses 10.0.0.10/24

connection modify writes the addressing settings into the stored profile, which then needs bringing up to take effect. disconnect drops the interface, general status summarises NetworkManager, and radio controls wireless.

Question 29Manage basic networking

Which file provides static hostname to address mappings consulted before DNS on a default RHEL configuration?

  • A/etc/hosts
  • B/etc/resolv.conf
  • C/etc/hostname
  • D/etc/nsswitch.conf only

Correct answer: A /etc/hosts

hosts holds local static mappings, which nsswitch.conf normally consults before DNS. resolv.conf lists nameservers, hostname stores the system's own name, and nsswitch.conf defines the lookup order rather than the mappings themselves.

man hosts
Question 30Operate running systems

Which method resets a forgotten root password on a RHEL 9 system?

  • AInterrupt the bootloader, append rd.break to the kernel line, remount sysroot read-write, chroot, set the password, and relabel SELinux
  • BLog in as any user and run passwd root
  • CReinstall the operating system
  • DEdit /etc/shadow from a normal user session

Correct answer: A Interrupt the bootloader, append rd.break to the kernel line, remount sysroot read-write, chroot, set the password, and relabel SELinux

The documented procedure boots into the initramfs shell, remounts the root filesystem writable, changes the password in a chroot, and triggers an SELinux relabel so the shadow file's context stays correct. An unprivileged user cannot change root's password or edit shadow, and reinstalling is unnecessary.

RHEL — Resetting the root password
Question 31Deploy, configure, and maintain systems

Which command applies a tuned performance profile suited to a virtual guest?

  • Atuned-adm profile virtual-guest
  • Bsystemctl set-default virtual-guest
  • Csysctl -w virtual-guest
  • Dgrubby --update-kernel virtual-guest

Correct answer: A tuned-adm profile virtual-guest

tuned-adm selects a tuning profile that adjusts kernel and device parameters for the workload type. set-default changes the systemd boot target, sysctl -w sets an individual kernel parameter, and grubby edits bootloader entries.

Question 32Manage basic networking

Which firewalld concept groups interfaces and sources with a set of allowed services?

  • AA zone
  • BA chain
  • CA profile
  • DA context

Correct answer: A A zone

firewalld zones bind interfaces and source addresses to a trust level with its own service and port rules. Chains are an iptables concept, profiles belong to tuned or NetworkManager, and contexts are an SELinux concept.

firewalld — Zones
Question 33Manage users and groups

Which command creates a system account with no login shell, suitable for running a service?

  • Auseradd -r -s /sbin/nologin appsvc
  • Buseradd -m -s /bin/bash appsvc
  • Cadduser --interactive appsvc
  • Dusermod -s /bin/bash appsvc

Correct answer: A useradd -r -s /sbin/nologin appsvc

The -r flag creates a system account with a UID from the system range and nologin prevents interactive login. Creating a bash account with a home directory is what you do for a person, and the other options grant or restore an interactive shell.

man useradd
Question 34Manage software

Which command enables a specific module stream, for example nodejs version 20?

  • Adnf module enable nodejs:20
  • Bdnf install nodejs-20
  • Crpm -U nodejs
  • Ddnf group install nodejs

Correct answer: A dnf module enable nodejs:20

Modules let a distribution ship several versions of the same software, and enabling a stream selects which one dnf installs from. Installing a package name may not select the intended stream, rpm -U upgrades a local package file, and group install installs a package group.

RHEL — Managing modules
Question 35Deploy, configure, and maintain systems

Which service should be configured for time synchronisation on a modern RHEL system?

  • Achronyd, configured in /etc/chrony.conf
  • Bntpd, which is the RHEL 9 default
  • Ccronie
  • Drsyslog

Correct answer: A chronyd, configured in /etc/chrony.conf

chrony replaced ntpd as the default NTP implementation on RHEL and is configured through chrony.conf. cronie provides cron scheduling and rsyslog handles logging.

RHEL — Configuring time synchronization
Question 36Create simple shell scripts

Which first line makes a script execute with the bash interpreter when run directly?

  • A#!/bin/bash
  • B# bash
  • C!/bin/bash
  • D//bin/bash

Correct answer: A #!/bin/bash

The shebang must be the first two characters followed by the interpreter path. A comment, a missing hash, or a double slash are not recognised by the kernel as an interpreter directive.

man execve
Question 37Manage securitySelect 2

Which two practices harden SSH access on a RHEL server? (Select TWO.)

  • ADisable direct root login in sshd_config
  • BUse key-based authentication and disable password authentication
  • CSet PermitEmptyPasswords to yes
  • DDisable the firewall so connections are never blocked
  • EShare one account among all administrators

Correct answer: A, B Disable direct root login in sshd_config · Use key-based authentication and disable password authentication

Removing direct root login and password authentication closes the two paths attackers brute-force most. Empty passwords, a disabled firewall, and shared accounts each remove a control or destroy accountability.

man sshd_config
Question 38Manage software

Which command shows which installed package owns the file /usr/sbin/sshd?

  • Arpm -qf /usr/sbin/sshd
  • Brpm -ql openssh-server
  • Cdnf list installed
  • Dwhich sshd

Correct answer: A rpm -qf /usr/sbin/sshd

rpm -qf queries which package provides a given file path. rpm -ql lists the files in a named package, dnf list installed enumerates packages without mapping a path, and which only locates the binary.

man rpm
Question 39Manage users and groups

Which command sets a password expiry policy requiring user dave to change his password every 60 days?

  • Achage -M 60 dave
  • Bchage -l dave
  • Cpasswd -l dave
  • Dusermod -L dave

Correct answer: A chage -M 60 dave

chage -M sets the maximum password age in days. The -l option only lists current settings, and passwd -l and usermod -L both lock the account.

man chage
Question 40Deploy, configure, and maintain systems

Which crontab line runs /usr/local/bin/backup.sh every day at 02:30?

  • A30 2 * * * /usr/local/bin/backup.sh
  • B2 30 * * * /usr/local/bin/backup.sh
  • C* * 30 2 * /usr/local/bin/backup.sh
  • D30 2 * * 1 /usr/local/bin/backup.sh

Correct answer: A 30 2 * * * /usr/local/bin/backup.sh

The field order is minute, hour, day of month, month, day of week, so 30 2 means 02:30 every day. The second option reads as minute 2 of hour 30, the third sets day and month fields, and the fourth restricts to Mondays.

man 5 crontab
Question 41Manage basic networking

Which command activates a NetworkManager connection profile after modifying it?

  • Anmcli connection up ens192
  • Bnmcli connection delete ens192
  • Cnmcli connection show
  • Dsystemctl restart sshd

Correct answer: A nmcli connection up ens192

Bringing the connection up reapplies the saved profile so the new settings take effect. delete removes the profile, show lists profiles, and restarting sshd is unrelated to network configuration.

Question 42Manage software

Which command installs the httpd package and its dependencies on RHEL 9?

  • Adnf install httpd
  • Brpm -ivh httpd
  • Capt install httpd
  • Dzypper in httpd

Correct answer: A dnf install httpd

dnf resolves dependencies from configured repositories, which rpm does not do. apt and zypper belong to Debian and SUSE systems respectively.

man dnf
Question 43Manage basic networking

Which command opens TCP port 8080 permanently in the public zone?

  • Afirewall-cmd --zone=public --permanent --add-port=8080/tcp then --reload
  • Bfirewall-cmd --zone=public --add-port=8080 only
  • Ciptables -A INPUT -p tcp --dport 8080 -j ACCEPT with no persistence
  • Dsystemctl disable firewalld

Correct answer: A firewall-cmd --zone=public --permanent --add-port=8080/tcp then --reload

The permanent flag writes the rule and reload activates it, and the port must include its protocol. A runtime-only rule is lost on reload, a raw iptables rule is not persisted, and disabling the firewall removes all protection.

man firewall-cmd
Question 44Operate running systems

Which command displays kernel ring buffer messages, useful after a hardware or driver problem?

  • Admesg
  • Blast
  • Cwho
  • Did

Correct answer: A dmesg

dmesg prints kernel messages including device detection and driver errors. last shows login history, who shows current sessions, and id shows the current user's identity.

man dmesg
Question 45Manage security

Which SELinux mode logs policy violations without blocking them, useful when diagnosing a labelling problem?

  • APermissive
  • BEnforcing
  • CDisabled
  • DTargeted

Correct answer: A Permissive

Permissive mode records the denials that would have occurred so you can collect them all before returning to enforcing. Enforcing blocks and logs, disabled stops labelling entirely, and targeted is a policy type rather than a mode.

RHEL — Changing SELinux states and modes
Question 46Understand and use essential toolsSelect 2

Which two commands would you use to create and then extract a gzip-compressed tar archive? (Select TWO.)

  • Atar -czf backup.tar.gz /data
  • Btar -xzf backup.tar.gz -C /restore
  • Cgzip -d /data
  • Dcpio -o < /data
  • Ezip -r backup.tar.gz /data

Correct answer: A, B tar -czf backup.tar.gz /data · tar -xzf backup.tar.gz -C /restore

c creates and x extracts, with z applying gzip and -C choosing the extraction directory. gzip alone handles single files, cpio uses a different archive format, and zip produces a zip archive.

man tar
Question 47Create simple shell scripts

Which syntax safely uses a variable containing spaces as a single argument?

  • Acp "$src" /backup/
  • Bcp $src /backup/
  • Ccp '$src' /backup/
  • Dcp ${src /backup/

Correct answer: A cp "$src" /backup/

Double quotes prevent word splitting and glob expansion while still substituting the variable. Unquoted expansion splits on whitespace, single quotes prevent substitution entirely, and the last form is a syntax error.

Question 48Manage softwareSelect 2

Which two commands help identify and apply available security updates? (Select TWO.)

  • Adnf check-update --security
  • Bdnf update --security
  • Crpm -e --nodeps
  • Ddnf history undo last
  • Ednf clean all

Correct answer: A, B dnf check-update --security · dnf update --security

check-update lists what is available and update applies it, both filtered to security advisories. Erasing packages while ignoring dependencies is dangerous, history undo reverses a transaction, and clean all removes cached metadata.

RHEL — Managing software with dnf
Question 49Create and configure file systemsSelect 2

Which two commands would you use to add an access control list entry granting user carol read and write on /data/report.txt, and then verify it? (Select TWO.)

  • Asetfacl -m u:carol:rw /data/report.txt
  • Bgetfacl /data/report.txt
  • Cchmod 666 /data/report.txt
  • Dchown carol /data/report.txt
  • Eumask 022

Correct answer: A, B setfacl -m u:carol:rw /data/report.txt · getfacl /data/report.txt

setfacl adds the named-user entry and getfacl displays the resulting ACL. chmod would grant access to everyone, chown transfers ownership rather than adding an entry, and umask affects default permissions on newly created files.

man setfacl
Question 50Deploy, configure, and maintain systems

Which command schedules a one-off task to run at 23:00 tonight?

  • Aat 23:00
  • Bcrontab -e
  • Csystemctl enable task
  • Dnohup task &

Correct answer: A at 23:00

The at command queues a single execution at a specified time, whereas cron is for repeating schedules. Enabling a unit affects boot behaviour, and nohup runs a command immediately in the background.

Question 51Understand and use essential tools

Which command recursively copies /src to /dst while preserving ownership, permissions, and timestamps?

  • Acp -a /src /dst
  • Bcp -r /src /dst
  • Cmv /src /dst
  • Dln -s /src /dst

Correct answer: A cp -a /src /dst

The archive flag implies recursion and preserves attributes and links. Plain -r copies recursively without preserving all attributes, mv relocates rather than copies, and ln creates a link.

man cp
Question 52Configure local storage

Which sequence prepares a disk for use with LVM and creates a 10 GB logical volume?

  • Apvcreate /dev/sdb, vgcreate vg0 /dev/sdb, lvcreate -L 10G -n lv_data vg0
  • Blvcreate first, then vgcreate, then pvcreate
  • Cmkfs.xfs /dev/sdb then lvcreate
  • Dvgextend then pvremove

Correct answer: A pvcreate /dev/sdb, vgcreate vg0 /dev/sdb, lvcreate -L 10G -n lv_data vg0

LVM is layered: a physical volume, then a volume group built from it, then logical volumes carved out of the group. The reversed order is impossible, formatting the raw disk first bypasses LVM, and vgextend with pvremove modifies or removes storage rather than creating it.

RHEL — Configuring and managing logical volumes
Question 53Create and configure file systems

Which entry mounts an NFS export at boot but avoids hanging the boot if the server is unavailable?

  • AAn fstab entry with the _netdev and nofail options
  • BAn fstab entry with defaults only
  • CA manual mount command run after login
  • DAn entry in /etc/hosts

Correct answer: A An fstab entry with the _netdev and nofail options

_netdev defers the mount until networking is up and nofail prevents a failure from blocking the boot. defaults alone can stall the boot, a manual mount is not automatic, and hosts entries only resolve names.

man fstab
Question 54Manage users and groups

Which command deletes the user erin and her home directory?

  • Auserdel -r erin
  • Buserdel erin
  • Cusermod -d /dev/null erin
  • Dgroupdel erin

Correct answer: A userdel -r erin

The -r flag removes the home directory and mail spool along with the account. Plain userdel leaves the home directory behind, usermod changes the home path without deleting anything, and groupdel removes a group.

man userdel
Question 55Operate running systems

Which command sets the system time zone to Europe/London persistently?

  • Atimedatectl set-timezone Europe/London
  • Bdate -s 'Europe/London'
  • Cexport TZ=Europe/London
  • Dhwclock --systohc

Correct answer: A timedatectl set-timezone Europe/London

timedatectl updates /etc/localtime and the persistent configuration. date sets the clock rather than the zone, exporting TZ affects only the current shell, and hwclock synchronises the hardware clock.

man timedatectl
Question 56Understand and use essential tools

Which command connects to a remote host as user admin using SSH on port 2222?

  • Assh -p 2222 admin@host
  • Bssh -P 2222 admin@host
  • Cscp -p 2222 admin@host
  • Dtelnet host 2222

Correct answer: A ssh -p 2222 admin@host

ssh uses a lowercase -p for the port, whereas scp uses an uppercase -P. scp copies files rather than opening a shell, and telnet is an unencrypted protocol that should not be used.

man ssh
Question 57Create simple shell scripts

Which test expression checks that the file /var/run/app.pid exists and is a regular file?

  • A[ -f /var/run/app.pid ]
  • B[ -d /var/run/app.pid ]
  • C[ -z /var/run/app.pid ]
  • D[ -x /var/run/app.pid ]

Correct answer: A [ -f /var/run/app.pid ]

-f tests for an existing regular file. -d tests for a directory, -z tests whether a string is empty, and -x tests the execute permission.

Question 58Understand and use essential tools

Which regular expression passed to grep matches lines that begin with the word 'root'?

  • Agrep '^root' /etc/passwd
  • Bgrep 'root$' /etc/passwd
  • Cgrep 'root' /etc/passwd
  • Dgrep -v 'root' /etc/passwd

Correct answer: A grep '^root' /etc/passwd

The caret anchors the pattern to the start of the line. The dollar anchors to the end, an unanchored pattern matches anywhere, and -v inverts the match.

man grep
Question 59Configure local storage

Which tool creates a GPT partition table and a new partition on /dev/sdb interactively?

  • Aparted /dev/sdb
  • Bmkfs.xfs /dev/sdb
  • Cmount /dev/sdb /mnt
  • Dlsblk /dev/sdb

Correct answer: A parted /dev/sdb

parted creates and manipulates partition tables including GPT. mkfs formats an existing partition, mount attaches a filesystem, and lsblk only reports the layout.

man parted
Question 60Create and configure file systems

Which command creates an XFS filesystem, the RHEL default, on /dev/vg0/lv_data?

  • Amkfs.xfs /dev/vg0/lv_data
  • Bmkfs.vfat /dev/vg0/lv_data
  • Cxfs_repair /dev/vg0/lv_data
  • Dxfs_info /dev/vg0/lv_data

Correct answer: A mkfs.xfs /dev/vg0/lv_data

mkfs.xfs writes a new XFS filesystem. mkfs.vfat creates a FAT filesystem, xfs_repair repairs an existing one, and xfs_info reports geometry.

man mkfs.xfs

Ready to try it under exam conditions?

Reading answers is not the same as recalling them with a clock running. Take the same 60 questions as a timed mock exam — 150 minutes, no feedback until you submit, then a score broken down by exam domain so you know what to study.

Start the timed EX200 test →