Skip to content

Security Questions

Practice questions for Security topic in CompTIA Linux+. 18 questions covering this domain.

18 questions4 easy9 medium5 hard
Q1
hard

An administrator suspects unauthorized modifications to `/etc/passwd` and needs to query the audit daemon logs for all recorded events related to that...

Q2
medium

An administrator needs to encrypt the file `/etc/app/config.conf` using GPG symmetric encryption so it can be decrypted by anyone with the shared pass...

Q3
hard

An administrator sets SELinux to permissive mode using `setenforce 0` to troubleshoot an Apache web server that cannot read files in `/srv/www`. What ...

Q4
easy

Which command displays whether SELinux is currently in Enforcing, Permissive, or Disabled mode?

Q5
medium

An administrator manages a Ubuntu server using UFW and needs to allow incoming TCP traffic specifically on port 443. Which command adds this rule?

Q6
easy

Which firewall management tool uses zones to group interfaces and apply different trust levels, and is the default firewall manager on RHEL and Fedora...

Q7
medium

An administrator hardens an SSH server to prevent the root account from logging in directly via SSH while allowing other users to authenticate. Which ...

Q8
medium

An administrator needs to allow a junior administrator to run only the command `systemctl restart apache2` as root using sudo, without granting broade...

Q9
medium

An administrator needs to enforce a minimum password length of 12 characters using PAM on a Linux system. Which PAM module and configuration location ...

Q10
easy

Which file is the primary configuration file for the SSH server daemon (`sshd`) on a Linux system?

Q11
medium

An administrator configures AppArmor on Ubuntu to test a new application profile before enforcing it. Which AppArmor mode logs violations without bloc...

Q12
medium

An administrator needs to generate a SHA-512 password hash from the command line to use in `/etc/shadow` or an Ansible playbook. Which command generat...

Q13
easy

An administrator needs to generate a new RSA SSH key pair for use with SSH public key authentication. Which command creates the key pair?

Q14
hard

An administrator needs to create a self-signed TLS certificate and private key for a test HTTPS server using a single OpenSSL command. Which command i...

Q15
hard

An administrator needs to configure a Linux workstation for Kerberos-based single sign-on to a corporate Active Directory domain. Which file is the pr...

Q16
hard

An administrator implements account lockout using `pam_faillock` to lock accounts after 3 failed login attempts. During testing, root can still log in...

Q17
medium

An administrator uses firewalld and needs to permanently allow the `http` service in the `public` zone. Which command adds this rule persistently?

Q18
medium

An administrator uses nftables and needs to make firewall rules persist across reboots on a RHEL 9 system. Which approach ensures nftables rules are a...

Sign in to see all 18 questions

Create a free account to browse all questions — completely free during our launch phase.