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.
Question 1021
On a RHEL 10 machine, account worker10 and group project10 are in scope. The administrator must show group membership for the user. Which command is appropriate?
- id -nG worker10
- groupdel project10
- groupadd project10
- usermod -aG project10 worker10
Explanation
Correct Answer
A:id -nG displays the human-readable group names for this identity. This matches the stated requirement to show group membership for the user. By contrast, the plausible alternative `groupadd project10` 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:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to show group membership for the user. Instead, `id -nG worker10` is the relevant alternative because id -nG displays the human-readable group names for this identity.
C:groupadd creates a new local group record using the supplied name. The stated task is to show group membership for the user. Instead, `id -nG worker10` is the relevant alternative because id -nG displays the human-readable group names for this identity.
D:-aG appends a supplementary group instead of replacing the group list. The stated task is to show group membership for the user. Instead, `id -nG worker10` is the relevant alternative because id -nG displays the human-readable group names for this identity.
Question 1022
On a RHEL 10 machine, account worker11 and group project11 are in scope. The administrator must add an existing user to the group without losing existing supplementary groups. Which command is appropriate?
- usermod -g project11 worker11
- usermod -aG project11 worker11
- id -nG worker11
- groupdel project11
Explanation
Correct Answer
B:-aG appends a supplementary group instead of replacing the group list. This matches the stated requirement to add an existing user to the group without losing existing supplementary groups. By contrast, the plausible alternative `id -nG worker11` 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:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project11 worker11` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
C:id -nG displays the human-readable group names for this identity. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project11 worker11` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
D:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project11 worker11` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
Question 1023
On a RHEL 10 machine, account worker12 and group project12 are in scope. The administrator must change the user’s primary group. A review considers `groupdel project12` 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 worker12
- groupdel project12
- usermod -g project12 worker12
- groupadd project12
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 project12` 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 project12 worker12` 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 project12 worker12` 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 project12 worker12` is the relevant alternative because -g selects a primary group, rather than modifying supplementary memberships.
Question 1024
On a RHEL 10 machine, account worker13 and group project13 are in scope. The administrator must add an existing user to the group without losing existing supplementary groups. A review considers `usermod -g project13 worker13` as an alternative. Its relevant behavior is: -g selects a primary group, rather than modifying supplementary memberships. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- usermod -g project13 worker13
- id -nG worker13
- groupdel project13
- usermod -aG project13 worker13
Explanation
Correct Answer
D:-aG appends a supplementary group instead of replacing the group list. This matches the stated requirement to add an existing user to the group without losing existing supplementary groups. By contrast, the plausible alternative `groupdel project13` 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:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project13 worker13` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
B:id -nG displays the human-readable group names for this identity. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project13 worker13` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
C:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project13 worker13` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
Question 1025
On a RHEL 10 machine, account worker14 and group project14 are in scope. The administrator must show group membership for the user. A review considers `groupdel project14` 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 worker14
- groupdel project14
- groupadd project14
- usermod -aG project14 worker14
Explanation
Correct Answer
A:id -nG displays the human-readable group names for this identity. This matches the stated requirement to show group membership for the user. By contrast, the plausible alternative `usermod -aG project14 worker14` has the effect: -aG appends a supplementary group instead of replacing the group list; that operation would not achieve the requested result.
Incorrect Answers
B:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to show group membership for the user. Instead, `id -nG worker14` is the relevant alternative because id -nG displays the human-readable group names for this identity.
C:groupadd creates a new local group record using the supplied name. The stated task is to show group membership for the user. Instead, `id -nG worker14` is the relevant alternative because id -nG displays the human-readable group names for this identity.
D:-aG appends a supplementary group instead of replacing the group list. The stated task is to show group membership for the user. Instead, `id -nG worker14` is the relevant alternative because id -nG displays the human-readable group names for this identity.
Question 1026
On a RHEL 10 machine, account worker15 and group project15 are in scope. The administrator must add an existing user to the group without losing existing supplementary groups. A review considers `id -nG worker15` 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 project15 worker15
- usermod -aG project15 worker15
- id -nG worker15
- groupdel project15
Explanation
Correct Answer
B:-aG appends a supplementary group instead of replacing the group list. This matches the stated requirement to add an existing user to the group without losing existing supplementary groups. By contrast, the plausible alternative `usermod -g project15 worker15` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
A:-g selects a primary group, rather than modifying supplementary memberships. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project15 worker15` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
C:id -nG displays the human-readable group names for this identity. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project15 worker15` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
D:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to add an existing user to the group without losing existing supplementary groups. Instead, `usermod -aG project15 worker15` is the relevant alternative because -aG appends a supplementary group instead of replacing the group list.
Question 1027
On a RHEL 10 machine, account worker16 and group project16 are in scope. The administrator must create a new local group. A review considers `usermod -g project16 worker16` as an alternative. Its relevant behavior is: -g selects a primary group, rather than modifying supplementary memberships. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- usermod -aG project16 worker16
- usermod -g project16 worker16
- groupadd project16
- id -nG worker16
Explanation
Correct Answer
C: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 -aG project16 worker16` 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:-aG appends a supplementary group instead of replacing the group list. The stated task is to create a new local group. Instead, `groupadd project16` 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 project16` 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 project16` is the relevant alternative because groupadd creates a new local group record using the supplied name.
Question 1028
On a RHEL 10 machine, account worker17 and group project17 are in scope. The administrator must show group membership for the user. A review considers `groupadd project17` 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?
- groupdel project17
- groupadd project17
- usermod -aG project17 worker17
- id -nG worker17
Explanation
Correct Answer
D:id -nG displays the human-readable group names for this identity. This matches the stated requirement to show group membership for the user. By contrast, the plausible alternative `groupdel project17` 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:groupdel removes the local group record, subject to system consistency restrictions. The stated task is to show group membership for the user. Instead, `id -nG worker17` is the relevant alternative because id -nG displays the human-readable group names for this identity.
B:groupadd creates a new local group record using the supplied name. The stated task is to show group membership for the user. Instead, `id -nG worker17` is the relevant alternative because id -nG displays the human-readable group names for this identity.
C:-aG appends a supplementary group instead of replacing the group list. The stated task is to show group membership for the user. Instead, `id -nG worker17` is the relevant alternative because id -nG displays the human-readable group names for this identity.
Question 1029
On a RHEL 10 machine, account worker18 and group project18 are in scope. The administrator must create a new local group. A review considers `id -nG worker18` 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?
- groupadd project18
- usermod -aG project18 worker18
- usermod -g project18 worker18
- id -nG worker18
Explanation
Correct Answer
A: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 project18 worker18` has the effect: -g selects a primary group, rather than modifying supplementary memberships; that operation would not achieve the requested result.
Incorrect Answers
B:-aG appends a supplementary group instead of replacing the group list. The stated task is to create a new local group. Instead, `groupadd project18` 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 project18` 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 project18` is the relevant alternative because groupadd creates a new local group record using the supplied name.
Question 1030
On a RHEL 10 machine, account worker19 and group project19 are in scope. The administrator must delete the named local group. A review considers `usermod -g project19 worker19` as an alternative. Its relevant behavior is: -g selects a primary group, rather than modifying supplementary memberships. That is a different result from the requested operation. Which listed command satisfies the original requirement without substituting this other behavior?
- groupadd project19
- groupdel project19
- usermod -aG project19 worker19
- usermod -g project19 worker19
Explanation
Correct Answer
B: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 project19 worker19` 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 project19` 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 project19` 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 project19` is the relevant alternative because groupdel removes the local group record, subject to system consistency restrictions.
Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests