Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


  1. The primary purpose of the journalctl command in Linux is to
    a. Manage disk partitions
    b. View and query system logs managed by systemd
    c. Compile kernel modules
    d. Install software packages
    Answer: bdigitalocean+1​
  2. journalctl is used to access logs maintained by which service?
    a. syslogd
    b. journald
    c. rsyslog
    d. logrotate
    Answer: bloggly+1​
  3. The data structure used by journalctl for storing logs is
    a. Text files
    b. XML database
    c. Binary journal files
    d. JSON objects
    Answer: clabex+1​
  4. To view logs of a specific systemd service, the correct syntax is
    a. journalctl –pid
    b. journalctl -u servicename
    c. journalctl -f pid
    d. journalctl -n 10
    Answer: beitca+2​
  5. Which command option enables journalctl to display logs in real-time output?
    a. -r
    b. -e
    c. -f
    d. -k
    Answer: cdigitalocean+1​
  6. The command journalctl -b shows logs from
    a. The entire system history
    b. The last system boot
    c. Kernel messages only
    d. All users’ activities
    Answer: bdash0+1​
  7. By default, systemd journals require root privileges because
    a. Logs are stored in /etc
    b. They contain sensitive system information
    c. They are encrypted
    d. They are read-only
    Answer: bloggly+1​
  8. Adding a user to which group grants access to journalctl logs without using sudo?
    a. syslog
    b. admin
    c. systemd-journal
    d. wheel
    Answer: cdigitalocean​
  9. To view only kernel-related messages, use which option?
    a. -u kernel
    b. -k
    c. -c kernel
    d. –kernel
    Answer: bionos+1​
  10. Which directive removes old logs based on size limit?
    a. –vacuum-time
    b. –vacuum-size
    c. –limit-size
    d. –clear-old
    Answer: bdigitalocean​
  11. To determine disk space used by the journal, use
    a. journalctl –status
    b. journalctl –disk-usage
    c. journalctl –space
    d. systemctl status
    Answer: blinux-audit+1​
  12. The main daemon responsible for managing journal logs is
    a. journald
    b. systemctl
    c. rsyslogd
    d. cron
    Answer: aloggly+1​
  13. Which option allows viewing logs in reverse order?
    a. -r
    b. -e
    c. -u
    d. -n
    Answer: alinux-audit​
  14. To show logs since a specific time, use
    a. –from
    b. –time
    c. –since
    d. -t
    Answer: clabex+1​
  15. The journal data format supports which feature not present in plain text logs?
    a. Metadata-rich entries
    b. Colorized syntax
    c. Cloud logging
    d. Encryption by default
    Answer: aeitca+1​
  16. The command journalctl -f -u ssh.service is useful for
    a. Installing SSH
    b. Real-time SSH log tracking
    c. Encrypting logs
    d. Creating SSH keys
    Answer: blast9+1​
  17. To display logs from the previous boot, the correct syntax is
    a. journalctl -b -1
    b. journalctl –boot=0
    c. journalctl –boot last
    d. journalctl -p boot
    Answer: adash0+1​
  18. The file /var/log/journal contains
    a. Network configuration
    b. Binary system logs
    c. Text authentication logs
    d. Boot scripts
    Answer: bionos+1​
  19. The –vacuum-time=7d option does what?
    a. Keeps only last 7 days of logs
    b. Deletes all logs
    c. Compresses logs weekly
    d. Archives logs older than a week
    Answer: adigitalocean​
  20. The command journalctl -n 20 does what?
    a. Shows last 20 lines of logs
    b. Deletes last 20 log entries
    c. Shows 20 newest files
    d. Lists 20 oldest logs
    Answer: alinux-audit​
  21. What happens if a user without privileges runs journalctl?
    a. All logs display normally
    b. Only user logs are shown
    c. Command fails completely
    d. Only kernel logs display
    Answer: bdigitalocean​
  22. To view system shutdown logs, combine
    a. journalctl -u shutdown.service
    b. journalctl -b -1
    c. journalctl -k
    d. journalctl -e shutdown.service
    Answer: aeitca​
  23. Filtering messages with text “Failed password” helps identify
    a. Service installation
    b. Authentication failures
    c. File corruption
    d. Boot sequence errors
    Answer: blast9+1​
  24. To export logs in JSON format, which flag is used?
    a. –json
    b. -o json
    c. -O JSON
    d. –format=json
    Answer: blinux-audit​
  25. What does journalctl –list-boots do?
    a. Lists bootable drives
    b. Lists previous boot sessions
    c. Lists boot logs only
    d. Lists users logged in
    Answer: bdash0+1​
  26. Which of the following is an advantage of using journalctl over text logs?
    a. Readability with metadata filtering
    b. Plain text search
    c. Requires fewer permissions
    d. Lower storage cost
    Answer: aeitca+1​
  27. The command systemctl status ssh internally calls
    a. rsyslog
    b. journalctl
    c. sysreport
    d. netstat
    Answer: bloggly+1​
  28. Logs stored by journald include
    a. Kernel, system, and user logs
    b. Only SSH logs
    c. Only cron jobs
    d. Only kernel logs
    Answer: aionos+1​
  29. To clear all journal entries, you can use
    a. journalctl –flush
    b. journalctl –flush-logs
    c. journalctl –vacuum-time=0
    d. journalctl –clear
    Answer: clinux-audit+1​
  30. In cybersecurity forensics, journalctl assists analysts in
    a. Real-time packet capture
    b. Log integrity and incident reconstruction
    c. Network scanning
    d. Antivirus updates
    Answer: blogdy+1​
  31. The command journalctl –verify checks
    a. Network configuration errors
    b. Integrity of journal files
    c. SSH configuration
    d. Boot sequence issues
    Answer: blinux-audit​
  32. Journald logs are compressed and stored in which format?
    a. Binary format
    b. Gzip format
    c. JSON
    d. Text
    Answer: aionos+1​
  33. To view the earliest entries in the log, use
    a. journalctl –newest
    b. journalctl –oldest
    c. journalctl –reverse
    d. journalctl –since 0
    Answer: dlinux-audit​
  34. Using journalctl -p err shows
    a. Only error priority logs
    b. All logs including warnings
    c. Only info logs
    d. Logs with priority higher than debug
    Answer: aloggly+1​
  35. The command journalctl –utc displays timestamps in
    a. Local time
    b. UTC
    c. Epoch time
    d. ISO format
    Answer: blinux-audit​
  36. Combining journalctl -k -b shows
    a. Only kernel logs from the current boot
    b. All application logs
    c. Daemon logs
    d. SSH failures
    Answer: aionos+1​
  37. To browse journalctl output with pagination, pipe it into
    a. grep
    b. less
    c. cat
    d. echo
    Answer: blinux-audit​
  38. The option –no-pager ensures
    a. Continuous scroll-free output
    b. Logs display in JSON
    c. Journals are archived
    d. Timestamps are hidden
    Answer: alinux-audit​
  39. The journalctl -e command jumps to
    a. End of journal
    b. Earliest log
    c. Error logs only
    d. Export mode
    Answer: alinux-audit​
  40. Systemd journal logging is superior to syslog for
    a. Streaming data without metadata
    b. Structured storage with indexing
    c. Manual filtering
    d. Decentralized logging
    Answer: beitca+1​
  41. To view logs since yesterday, use
    a. journalctl –since yesterday
    b. journalctl -y
    c. journalctl -s yesterday
    d. journalctl since=yesterday
    Answer: alabex+1​
  42. The journalctl retention policy can be controlled with
    a. journald.conf
    b. sysctl.conf
    c. crontab
    d. rsyslog.conf
    Answer: adigitalocean​
  43. The command journalctl -p 0..3 displays
    a. Debug logs
    b. Critical to error-level logs
    c. Info to warn logs
    d. All entries
    Answer: blinux-audit​
  44. To monitor a live security breach, analysts often use
    a. journalctl -f
    b. tail -n
    c. cat /var/log/auth.log
    d. grep ssh
    Answer: alogdy+1​
  45. Logs with the _SYSTEMD_UNIT field represent
    a. Service-specific entries
    b. Network statistics
    c. Kernel timestamps
    d. User sessions
    Answer: aeitca+1​
  46. The journalctl binary is located under
    a. /usr/bin/
    b. /etc/systemd/
    c. /var/log/
    d. /opt/bin/
    Answer: adash0​
  47. If journald logs are missing, what command can restore them from disk?
    a. journalctl –flush
    b. journalctl –reload
    c. systemctl restart systemd-journald
    d. journalctl –restore
    Answer: cdigitalocean+1​
  48. The journalctl –list-catalog displays
    a. Registered message templates
    b. Boot logs
    c. Errors only
    d. Service names
    Answer: alinux-audit​
  49. Each journal entry includes metadata like
    a. _PID, _UID, _COMM
    b. _IP, _DOMAIN
    c. _AUTH, _NAME
    d. _PASS, _PROCESS
    Answer: aeitca+1​
  50. In cybersecurity auditing, journalctl is primarily used to
    a. Filter and investigate unauthorized logins
    b. Install hardening tools
    c. Manage users
    d. Configure firewalls
    Answer: alast9+2​
  1. https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
  2. https://labex.io/tutorials/linux-linux-journalctl-command-with-practical-examples-422752
  3. https://www.loggly.com/ultimate-guide/using-journalctl/
  4. https://eitca.org/cybersecurity/eitc-is-lsa-linux-system-administration/advanced-sysadmin-in-linux/how-to-tail-linux-service-logs/examination-review-how-to-tail-linux-service-logs/what-are-the-advantages-and-disadvantages-of-using-the-journalctl-command-to-access-logs-compared-to-traditional-plain-text-log-files/
  5. https://eitca.org/cybersecurity/eitc-is-lsa-linux-system-administration/advanced-sysadmin-in-linux/how-to-tail-linux-service-logs/examination-review-how-to-tail-linux-service-logs/what-is-the-purpose-of-the-journalctl-u-unit-command-in-linux-system-administration-how-does-it-differ-from-the-default-journalctl-command/
  6. https://www.dash0.com/guides/systemd-logs-linux-journalctl
  7. https://www.ionos.com/digitalguide/server/tools/journalctl/
  8. https://linux-audit.com/cheat-sheets/journalctl/
  9. https://last9.io/blog/linux-security-logs/
  10. https://logdy.dev/article/system/optimizing-log-analysis-unleashing-the-power-of-tail-and-journalctl
  11. https://www.sanfoundry.com/1000-cyber-security-questions-answers/
  12. https://www.scribd.com/document/867200742/Network-Log-Analysis-MCQ
  13. https://www.interviewbit.com/cyber-security-mcq/
  14. https://www.studocu.com/row/document/okan-universitesi/cybersecurity/cybersecurity-mcqs-solutions-chapter-1-4-review-cs101/128047388
  15. https://www.igmguru.com/blog/cyber-security-mcqs
  16. https://www.yeahhub.com/cyber-security-ethical-hacking-mcq-questions-answers-part3/
  17. https://mcqmate.com/topic/information-cyber-security
  18. https://www.theknowledgeacademy.com/blog/cyber-security-mcq-and-answers/
  19. https://www.sanfoundry.com/cyber-security-written-test-questions-answers/
  20. https://www.youtube.com/watch?v=0dG3vUYt7Uk

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!