In the context of user authentication, what is a "salt" used for?

  • Adding randomness to a password before hashing
  • Encrypting user passwords
  • Verifying the user's identity
  • Generating secure tokens
In user authentication, a "salt" is used to add randomness to a password before hashing. This helps protect against common attacks like rainbow table attacks and ensures that even the same password will have different hash values due to the unique salt.

In Docker, a _________ is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software.

  • Container
  • Image
  • Virtual Machine
  • Repository
In Docker, an "image" is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software. Docker containers are created from these images, allowing you to run applications in an isolated environment.

The Linux tool __________ allows administrators to view and set system and kernel parameters at runtime.

  • sysctl
  • top
  • ls
  • nano
The Linux tool sysctl allows administrators to view and set system and kernel parameters at runtime. It's a powerful utility for fine-tuning and configuring various aspects of the Linux kernel to optimize performance and behavior.

When creating a case statement in Bash, each case is ended with the word ________.

  • esac
  • end
  • done
  • fi
When creating a case statement in Bash, each case is ended with the word esac. The esac keyword marks the end of the case statement, and it's used to close the case block.

In Bash scripting, what does the && operator signify?

  • Logical AND operator
  • Pipe operator
  • Command substitution
  • Bitwise AND operator
In Bash scripting, the && operator signifies the logical AND operator. It is used to execute the command on the right-hand side only if the command on the left-hand side succeeds (returns a zero exit status). This allows for conditional execution of commands in a script.

You are a system administrator and notice that users are able to use simple passwords. Which tool or command would you use to enforce complex password policies?

  • passwd
  • chsh
  • pam_tally2
  • passwdqc
To enforce complex password policies, you can use the passwdqc tool. passwdqc is a password complexity checking and policy enforcement tool that can help you ensure that users create strong passwords by setting specific requirements such as length, character classes, and more.

The exit status of the last command executed is stored in the _________ variable.

  • $!
  • $@
  • $?
  • $_
The exit status of the last command executed is stored in the $? variable. This value is important for checking whether a command or script ran successfully (0) or encountered an error (non-zero).

Which command is used to lock a user's account in Linux?

  • passwd -l
  • usermod -L
  • lockuser -u
  • userlock -a
The correct command to lock a user's account in Linux is passwd -l. This command will place an "!" in front of the user's password hash in the /etc/shadow file, preventing them from logging in. It's a security measure to temporarily or permanently disable a user's account.

If a classifier predicts the positive class perfectly but struggles with the negative class, the ________ might still be high due to the imbalance.

  • AUC-ROC
  • Accuracy
  • F1 Score
  • True Positive Rate
If a classifier predicts the positive class perfectly but struggles with the negative class, the Accuracy might still be high due to class imbalance. Accuracy can be misleading in imbalanced datasets because it doesn't account for the unequal distribution of classes. F1 Score and AUC-ROC are more robust metrics in such cases.

Which component of a GAN is responsible for generating new data samples?

  • Discriminator
  • Loss Function
  • Optimizer
  • Generator
The Generator component in a GAN is responsible for generating new data samples. It tries to create data indistinguishable from real data to deceive the Discriminator.