Question 1010
An RHEL 10 firewall is active on gateway-09. The administrator must persistently allow ssh service through reboots. Which command is appropriate?
- firewall-cmd --add-service=ssh
- firewall-cmd --permanent --add-service=ssh
- firewall-cmd --reload
- firewall-cmd --list-all
Explanation
Correct Answer
B:--permanent writes the configured rule to persistent firewalld configuration That satisfies the specified firewall verification or persistence. This matches the stated requirement to persistently allow ssh service through reboots. By contrast, the plausible alternative `firewall-cmd --add-service=ssh` has the effect: Without --permanent, firewall-cmd changes runtime rules immediately It is a different runtime/permanent configuration or inspection action; that operation would not achieve the requested result.
Incorrect Answers
A:Without --permanent, firewall-cmd changes runtime rules immediately It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots. Instead, `firewall-cmd --permanent --add-service=ssh` is the relevant alternative because --permanent writes the configured rule to persistent firewalld configuration That satisfies the specified firewall verification or persistence. A separate comparison is `firewall-cmd --reload`: --reload replaces the runtime firewalld configuration with permanent settings It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots.
C:--reload replaces the runtime firewalld configuration with permanent settings It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots. Instead, `firewall-cmd --permanent --add-service=ssh` is the relevant alternative because --permanent writes the configured rule to persistent firewalld configuration That satisfies the specified firewall verification or persistence. A separate comparison is `firewall-cmd --add-service=ssh`: Without --permanent, firewall-cmd changes runtime rules immediately It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots.
D:--list-all displays current zone services, ports, interfaces and policies It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots. Instead, `firewall-cmd --permanent --add-service=ssh` is the relevant alternative because --permanent writes the configured rule to persistent firewalld configuration That satisfies the specified firewall verification or persistence. A separate comparison is `firewall-cmd --add-service=ssh`: Without --permanent, firewall-cmd changes runtime rules immediately It is a different runtime/permanent configuration or inspection action. The stated task is to persistently allow ssh service through reboots.
Question 1011
On a RHEL 10 machine, account worker00 and group project00 are in scope. The administrator must change the user’s primary group. Which command is appropriate?
- id -nG worker00
- groupdel project00
- usermod -g project00 worker00
- groupadd project00
Explanation
Correct Answer
C:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `groupdel project00` has the effect: groupdel removes the local group record, subject to system consistency restrictions; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project00 worker00` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project00 worker00` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project00 worker00` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1012
On a RHEL 10 machine, account worker01 and group project01 are in scope. The administrator must delete the named local group. Which command is appropriate?
- groupadd project01
- usermod -aG project01 worker01
- usermod -g project01 worker01
- groupdel project01
Explanation
Correct Answer
D:groupdel removes the local group record, subject to system consistency restrictions. This matches the stated requirement to delete the named local group. By contrast, the plausible alternative `usermod -aG project01 worker01` has the effect: -aG appends a supplementary group instead of replacing the group list; that operation would not achieve the requested result.
Incorrect Answers
A:groupadd creates a new local group record using the supplied name. The stated task is to delete the named local group. Instead, `groupdel project01` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
B:-aG appends a supplementary group instead of replacing the group list. The stated task is to delete the named local group. Instead, `groupdel project01` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
C:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to delete the named local group. Instead, `groupdel project01` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Question 1013
On a RHEL 10 machine, account worker02 and group project02 are in scope. The administrator must change the user’s primary group. A review considers `id -nG worker02` as an alternative. Its relevant behavior is: id -nG displays the human-readable group names for this identity. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- usermod -g project02 worker02
- id -nG worker02
- groupdel project02
- groupadd project02
Explanation
Correct Answer
A:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `groupdel project02` has the effect: groupdel removes the local group record, subject to system consistency restrictions; that operation would not achieve the requested result.
Incorrect Answers
B:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project02 worker02` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
C:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project02 worker02` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project02 worker02` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1014
On a RHEL 10 machine, account worker03 and group project03 are in scope. The administrator must create a new local group. Which command is appropriate?
- usermod -aG project03 worker03
- groupadd project03
- usermod -g project03 worker03
- id -nG worker03
Explanation
Correct Answer
B:groupadd creates a new local group record using the supplied name. This matches the stated requirement to create a new local group. By contrast, the plausible alternative `id -nG worker03` has the effect: id -nG displays the human-readable group names for this identity; that operation would not achieve the requested result.
Incorrect Answers
A:-aG appends a supplementary group instead of replacing the group list. The stated task is to create a new local group. Instead, `groupadd project03` is the relevant alternative because groupadd creates a new local group record using the supplied name.
C:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to create a new local group. Instead, `groupadd project03` is the relevant alternative because groupadd creates a new local group record using the supplied name.
D:id -nG displays the human-readable group names for this identity. The stated task is to create a new local group. Instead, `groupadd project03` is the relevant alternative because groupadd creates a new local group record using the supplied name.
Question 1015
On a RHEL 10 machine, account worker04 and group project04 are in scope. The administrator must change the user’s primary group. A review considers `groupdel project04` as an alternative. Its relevant behavior is: groupdel removes the local group record, subject to system consistency restrictions. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- id -nG worker04
- groupdel project04
- usermod -g project04 worker04
- groupadd project04
Explanation
Correct Answer
C:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `groupadd project04` has the effect: groupadd creates a new local group record using the supplied name; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project04 worker04` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project04 worker04` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project04 worker04` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1016
On a RHEL 10 machine, account worker05 and group project05 are in scope. The administrator must delete the named local group. A review considers `groupadd project05` as an alternative. Its relevant behavior is: groupadd creates a new local group record using the supplied name. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupadd project05
- usermod -aG project05 worker05
- usermod -g project05 worker05
- groupdel project05
Explanation
Correct Answer
D:groupdel removes the local group record, subject to system consistency restrictions. This matches the stated requirement to delete the named local group. By contrast, the plausible alternative `usermod -g project05 worker05` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
A:groupadd creates a new local group record using the supplied name. The stated task is to delete the named local group. Instead, `groupdel project05` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
B:-aG appends a supplementary group instead of replacing the group list. The stated task is to delete the named local group. Instead, `groupdel project05` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
C:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to delete the named local group. Instead, `groupdel project05` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Question 1017
On a RHEL 10 machine, account worker06 and group project06 are in scope. The administrator must delete the named local group. A review considers `usermod -aG project06 worker06` as an alternative. Its relevant behavior is: -aG appends a supplementary group instead of replacing the group list. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupdel project06
- groupadd project06
- usermod -aG project06 worker06
- usermod -g project06 worker06
Explanation
Correct Answer
A:groupdel removes the local group record, subject to system consistency restrictions. This matches the stated requirement to delete the named local group. By contrast, the plausible alternative `groupadd project06` has the effect: groupadd creates a new local group record using the supplied name; that operation would not achieve the requested result.
Incorrect Answers
B:groupadd creates a new local group record using the supplied name. The stated task is to delete the named local group. Instead, `groupdel project06` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
C:-aG appends a supplementary group instead of replacing the group list. The stated task is to delete the named local group. Instead, `groupdel project06` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
D:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to delete the named local group. Instead, `groupdel project06` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Question 1018
On a RHEL 10 machine, account worker07 and group project07 are in scope. The administrator must change the user’s primary group. A review considers `groupadd project07` as an alternative. Its relevant behavior is: groupadd creates a new local group record using the supplied name. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- id -nG worker07
- usermod -g project07 worker07
- groupdel project07
- groupadd project07
Explanation
Correct Answer
B:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `id -nG worker07` has the effect: id -nG displays the human-readable group names for this identity; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project07 worker07` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
C:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project07 worker07` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project07 worker07` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1019
On a RHEL 10 machine, account worker08 and group project08 are in scope. The administrator must change the user’s primary group. A review considers `id -nG worker08` as an alternative. Its relevant behavior is: id -nG displays the human-readable group names for this identity. That is a different result from the requested operation. As an additional operational boundary, `groupdel project08` must also be excluded because its documented effect is: groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. The effect above does not perform that specific task; `usermod -g project08 worker08` is the re. Which listed command satisfies the original requirement without substituting this other behavior?
- id -nG worker08
- groupdel project08
- usermod -g project08 worker08
- groupadd project08
Explanation
Correct Answer
C:-g selects a primary group, rather than modifying supplementary memberships. This matches the stated requirement to change the user’s primary group. By contrast, the plausible alternative `id -nG worker08` has the effect: id -nG displays the human-readable group names for this identity; that operation would not achieve the requested result.
Incorrect Answers
A:id -nG displays the human-readable group names for this identity. The stated task is to change the user’s primary group. Instead, `usermod -g project08 worker08` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to change the user’s primary group. Instead, `usermod -g project08 worker08` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
D:groupadd creates a new local group record using the supplied name. The stated task is to change the user’s primary group. Instead, `usermod -g project08 worker08` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1020
On a RHEL 10 machine, account worker09 and group project09 are in scope. The administrator must create a new local group. A review considers `usermod -aG project09 worker09` as an alternative. Its relevant behavior is: -aG appends a supplementary group instead of replacing the group list. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- usermod -aG project09 worker09
- usermod -g project09 worker09
- id -nG worker09
- groupadd project09
Explanation
Correct Answer
D:groupadd creates a new local group record using the supplied name. This matches the stated requirement to create a new local group. By contrast, the plausible alternative `usermod -g project09 worker09` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
A:-aG appends a supplementary group instead of replacing the group list. The stated task is to create a new local group. Instead, `groupadd project09` is the relevant alternative because groupadd creates a new local group record using the supplied name.
B:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to create a new local group. Instead, `groupadd project09` is the relevant alternative because groupadd creates a new local group record using the supplied name.
C:id -nG displays the human-readable group names for this identity. The stated task is to create a new local group. Instead, `groupadd project09` is the relevant alternative because groupadd creates a new local group record using the supplied name.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests