Quiz: Linux Distribution Comparison¶
4 questions
L0 (1 questions)¶
1. What are the key differences between the Red Hat and Debian Linux families?
Show answer
Red Hat (RHEL, Fedora, Alma, Rocky): dnf/rpm packages, SELinux, firewalld, NetworkManager/nmcli. Debian (Debian, Ubuntu): apt/dpkg packages, AppArmor, ufw, Netplan (Ubuntu) or ifupdown (Debian). Both use systemd. Log locations differ: /var/log/messages vs /var/log/syslog.L1 (2 questions)¶
1. When should you choose Ubuntu LTS vs RHEL for production servers?
Show answer
RHEL: enterprise/regulated environments, vendor support SLAs, compliance (FIPS, STIG), certified hardware. Ubuntu LTS: cloud-native workloads (default AWS AMI), developer-friendly, wide software support, cost-sensitive (free or cheap ESM). Both offer 10+ year support. Choice often depends on existing ecosystem and compliance requirements.2. How do you handle mixed Debian/RHEL fleets in Ansible automation?
Show answer
Use ansible_os_family fact for conditionals: when: ansible_os_family == 'Debian'. Use ansible.builtin.package (generic) instead of apt/dnf. Use variables for package names (httpd vs apache2). Separate group_vars per distro family. Best practice: standardize on ONE distro per environment role. *Common mistake:* Common mistake: hardcoding dnf or apt module — breaks on the other family. Use the generic 'package' module or conditional blocks.L2 (1 questions)¶
1. What is the difference between rolling release and fixed release distributions, and when to use each?