โ† All LCA Flashcard Decks

Web Server & Database Administration Flashcards

7 cards from real LCA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Web Server & Database Administration flashcards as text
  1. Which Apache configuration file format is used in Debian-based systems to enable or disable sites?

    Answer: Symlinks in /etc/apache2/sites-enabled/ managed by a2ensite/a2dissite

    Debian-based systems use a2ensite to create symlinks from sites-available to sites-enabled, which Apache reads at startup.

  2. What is the purpose of the PostgreSQL pg_hba.conf file?

    Answer: Controls client authentication methods and access rules

    pg_hba.conf (host-based authentication) defines which hosts can connect to which databases as which users and by what authentication method.

  3. Which Nginx directive defines a named location block for internal redirects only?

    Answer: location @name {}

    A named location prefixed with @ (e.g., location @fallback) is only accessible via internal Nginx directives like try_files or error_page, not directly by clients.

  4. When configuring MariaDB binary logging for replication, which configuration file option enables it?

    Answer: log_bin=/var/log/mysql/mysql-bin

    Setting log_bin in my.cnf with a file path enables binary logging, which is required for MySQL/MariaDB replication.

  5. Which Apache module enables URL rewriting using regular expressions?

    Answer: mod_rewrite

    mod_rewrite provides a powerful rule-based URL rewriting engine using Perl-compatible regular expressions via RewriteRule and RewriteCond directives.

  6. In MySQL, what does the binary log format 'ROW' record?

    Answer: The actual data changes for each affected row

    ROW-based binary logging records the actual before and after values for each changed row, making replication more precise and safe than STATEMENT format.

  7. Which Nginx directive sets the number of worker processes, typically matched to CPU cores?

    Answer: worker_processes

    worker_processes defines how many Nginx worker processes run; setting it to auto detects and matches the number of available CPU cores.