Search Header Logo

RHCSA-Final-EXAM

Authored by Sahil sasane

Other

4th Grade

Used 6+ times

RHCSA-Final-EXAM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the primary difference between firewall management in RHEL 6 and RHEL 7?

RHEL 6 uses firewalld, while RHEL 7 uses iptables

RHEL 6 uses iptables, which is static, while RHEL 7 uses firewalld, which is dynamic and flexible

RHEL 7 requires a firewall service restart to apply changes, while RHEL 6 does not

There is no difference; both use the same tools for firewall management

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which command would you use to allow incoming HTTP traffic through the firewalld service on a RHEL 7 system?

sudo firewall-cmd --zone=home --add-service=ssh --permanent

sudo firewall-cmd --zone=public --add-service=http --permanent

sudo firewall-cmd --zone=internal --add-port=80/tcp --permanent

sudo firewall-cmd --reload

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the purpose of the Sticky Bit when applied to a directory?

It allows only the owner to execute files in the directory

It allows only the file owner to delete or rename files within the directory

It sets the directory to be immutable

It allows all users to have read and write access to the directory.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Where would you typically find system-wide configuration files and shell scripts used for system boot and initialization?

/var

/etc

/tmp

/srv

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which directory contains essential binary executables required for system booting and basic functionality?

/lib

/usr

/bin

/opt

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

How do you extract the first 10 characters of each line in a file using the cut command?

cut -f 1-10 file.txt

cut -c 1-10 file.txt

cut -d 1-10 file.txt

cut -n 1-10 file.txt

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which awk command prints the second and fourth columns of a file where columns are separated by spaces?

awk '{print $1, $3}' file.txt

awk '{print $2, $4}' file.txt

awk '{print $1, $2, $4}' file.txt

awk '{print $4, $2}' file.txt

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?