A spam filter is being designed to classify emails. The model needs to consider the presence of certain words in the email (e.g., "sale," "discount") and their likelihood to indicate spam. Which classifier is more suited for this kind of problem?

  • K-Means Clustering
  • Naive Bayes
  • Random Forest
  • Support Vector Machine (SVM)
Naive Bayes is effective for text classification tasks, such as spam filtering, as it models the likelihood of words (e.g., "sale," "discount") indicating spam or non-spam, considering word presence.

One advanced technique used in time series forecasting with deep learning is the ________ neural network, known for its ability to remember sequences over time.

  • Recurrent
  • Convolutional
  • Randomized
  • Decision
The recurrent neural network (RNN) is well-known for its ability to remember sequences over time, making it a valuable tool for time series forecasting.

Your organization is implementing a policy to disable root login via SSH. Which configuration file and parameter should you modify?

  • /etc/ssh/sshd_config, PermitRootLogin
  • /etc/ssh/sshd_config, AllowRoot
  • /etc/ssh/ssh_config, DenyRoot
  • /etc/ssh/ssh_config, RootLogin
To disable root login via SSH, you should modify the /etc/ssh/sshd_config file and set the PermitRootLogin parameter to no. This enhances security by preventing direct root logins, encouraging users to log in as a regular user and then use sudo for administrative tasks.

In Bash, the ________ construct allows you to execute a specific block of code repeatedly as long as a certain condition is true.

  • while
  • until
  • for
  • if
In Bash, the while construct allows you to execute a specific block of code repeatedly as long as a certain condition is true. It's commonly used for creating loops in Bash scripts.

Which command can be used in a shell script to introduce a delay, often used for debugging or to pause the execution?

  • sleep
  • wait
  • pause
  • delay
The sleep command is used in a shell script to introduce a delay. You specify the number of seconds to pause the script's execution. It's commonly used for debugging to observe intermediate results or to add pauses for various purposes.

To execute a script in Bash, you often need to make it executable and then use the ________ symbol before the script name.

  • ./
  • &
  • ~
  • $
To execute a script in Bash, you often need to make it executable by running chmod +x script_name, and then you use the ./ symbol before the script name to specify the current directory. This tells the shell to execute the script from the current directory.

Which command is used to view the list of scheduled tasks for the system?

  • cronlist
  • crontab -l
  • schedulelist
  • tasks
The command "crontab -l" is used to view the list of scheduled tasks (cron jobs) for the system. It lists the cron entries for the currently logged-in user. Scheduled tasks are used to automate various processes at specific times or intervals in a Linux system.

To restrict users from logging in via SSH, you would modify the ________ file.

  • /etc/ssh/sshd_config
  • /etc/ssh/ssh_config
  • /etc/sshd/ssh_config
  • /etc/ssh/sshd
To restrict users from logging in via SSH, you would modify the /etc/ssh/sshd_config file. This file contains configuration options for the SSH server, and you can specify access restrictions and settings here.

Which tool enforces mandatory access controls at the kernel level in Linux?

  • SELinux
  • AppArmor
  • UAC
  • sudo
SELinux (Security-Enhanced Linux) enforces mandatory access controls at the kernel level in Linux. It provides a powerful and flexible security framework that allows administrators to define fine-grained access policies for processes, files, and resources on a system.

The ___________ distribution is known for its advanced package management system called "pacman."

  • Arch
  • CentOS
  • Fedora
  • Ubuntu
The Arch distribution is known for its advanced package management system called "pacman." Arch Linux uses a rolling release model and the pacman package manager for installing, updating, and managing software packages.