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. Rsyslog is primarily used for which purpose in cybersecurity?
    a. Email filtering
    b. Log management and processing
    c. File system monitoring
    d. Network routing
    Answer: b. Log management and processinglinuxjournal+1​
  2. What is the main configuration file for rsyslog?
    a. /etc/sysconfig.conf
    b. /etc/rsyslog.conf
    c. /opt/rsyslog/main.conf
    d. /var/log/rsyslog.txt
    Answer: b. /etc/rsyslog.confredhat​
  3. Which default port does rsyslog use for UDP log messages?
    a. 8080
    b. 514
    c. 443
    d. 25
    Answer: b. 514forcepoint+1​
  4. Which module enables rsyslog to receive logs over UDP?
    a. imtcp
    b. imfile
    c. imudp
    d. omrelp
    Answer: c. imudpnewrelic+1​
  5. In rsyslog, what does “TLS” provide?
    a. Log compression
    b. Transport encryption for secure log transmission
    c. Tokenized logging
    d. Virtual endpoint management
    Answer: b. Transport encryption for secure log transmissionredhat+1​
  6. What are rsyslog templates used for?
    a. Defining log rotation
    b. Customizing log output format
    c. Compressing log files
    d. Managing user permissions
    Answer: b. Customizing log output formatrsyslog+1​
  7. Which statement correctly describes rsyslog in cybersecurity?
    a. It only collects logs locally.
    b. It can aggregate, filter, and forward logs to remote servers.
    c. It requires a GUI application to function.
    d. It is used solely for network routing.
    Answer: b. It can aggregate, filter, and forward logs to remote serverslinuxjournal+1​
  8. What is the purpose of the imtcp module in rsyslog?
    a. To optimize disk storage
    b. To receive logs over TCP
    c. To forward logs to New Relic
    d. To handle mail server logs exclusively
    Answer: b. To receive logs over TCPforcepoint+1​
  9. Which of the following best describes the “action” directive in rsyslog?
    a. Defines the log message format
    b. Specifies where messages should be forwarded or stored
    c. Encrypts the message body
    d. Adds priority tags to logs
    Answer: b. Specifies where messages should be forwarded or storedredhat+1​
  10. Where are the rsyslog module configuration files usually stored?
    a. /usr/logs/rsyslog/
    b. /etc/rsyslog.d/
    c. /opt/security/rsyslog/
    d. /var/rsyslogs/
    Answer: b. /etc/rsyslog.d/newrelic+1​
  11. What does the placeholder %HOSTNAME% represent in a rsyslog template?
    a. The IP address of the server
    b. The system’s hostname sending the log
    c. The date of the log
    d. The user account name
    Answer: b. The system’s hostname sending the logforcepoint+1​
  12. Which driver in rsyslog is used for OpenSSL encryption?
    a. gtls
    b. ossl
    c. tlsX
    d. cryptd
    Answer: b. osslrsyslog+1​
  13. Which driver in rsyslog is used for GnuTLS encryption?
    a. gtls
    b. ossl
    c. tlsX
    d. cryptd
    Answer: a. gtlsredhat​
  14. What protocol standard must rsyslog comply with when using TLS logging?
    a. ISO 9001
    b. IETF RFC 5425 (syslog over TLS)
    c. IEEE 802.11
    d. ISO 27001
    Answer: b. IETF RFC 5425 (syslog over TLS)rsyslog+1​
  15. What is the function of the omfile module in rsyslog?
    a. Monitors network packets
    b. Outputs messages to files on the local system
    c. Encrypts message contents
    d. Filters user logins
    Answer: b. Outputs messages to files on the local systemredhat+1​
  16. What is a common file extension for rsyslog configuration snippets?
    a. .log
    b. .conf
    c. .txt
    d. .cfg
    Answer: b. .confsuccess.skyhighsecurity+1​
  17. In cybersecurity monitoring, why is centralizing logs using rsyslog important?
    a. To reduce CPU temperature
    b. To simplify incident tracking and correlation
    c. To isolate file systems
    d. To increase data redundancy
    Answer: b. To simplify incident tracking and correlationexamradar+1​
  18. The rsyslog directive $ModLoad imudp indicates what?
    a. Disabling UDP logging
    b. Loading the UDP module for log collection
    c. Setting TCP as the default
    d. Loading file-based monitoring
    Answer: b. Loading the UDP module for log collectionnewrelic​
  19. What does the $ActionSendStreamDriverAuthMode x509/name line enforce?
    a. Log compression
    b. Certificate-based authentication
    c. Unencrypted transmission
    d. Anonymous logging
    Answer: b. Certificate-based authenticationrsyslog+1​
  20. What is the default logging severity in rsyslog configuration if unspecified?
    a. Critical
    b. Informational
    c. Notice
    d. Error
    Answer: b. Informationalrsyslog​
  21. Which term best describes rsyslog architecture?
    a. Client-server
    b. Peer-to-peer
    c. Star network
    d. Ring topology
    Answer: a. Client-serverredhat+1​
  22. Which component authenticates machines in TLS mutual authentication?
    a. API token
    b. X.509 certificate
    c. PKI hash function
    d. Root password
    Answer: b. X.509 certificateredhat+1​
  23. What is the default directory for rsyslog log files in most Linux distributions?
    a. /usr/rsyslog
    b. /etc/rsyslog.d
    c. /var/log
    d. /home/logs
    Answer: c. /var/loglinuxjournal+1​
  24. Which security attack is mitigated through TLS in rsyslog connections?
    a. Phishing
    b. Man-in-the-middle
    c. Brute force
    d. Rootkit injection
    Answer: b. Man-in-the-middleblogs.oracle+1​
  25. What command reloads rsyslog configuration after changes?
    a. rsyslog –start
    b. systemctl restart rsyslog
    c. sysctl rsyslog reload
    d. restart /etc/init.d/logging
    Answer: b. systemctl restart rsyslogrsyslog+1​
  26. In rsyslog filtering, what does “facility” refer to?
    a. The security level
    b. The source category of a log message
    c. The output type
    d. The transport method
    Answer: b. The source category of a log messagersyslog​
  27. What directive specifies a remote syslog server in rsyslog?
    a. @hostname
    b. &hostname
    c. +hostname
    d. $hostname
    Answer: a. @hostnameredhat+1​
  28. What does “@@hostname” specify?
    a. UDP logging
    b. TCP logging
    c. Local file only
    d. Encrypted mail alerts
    Answer: b. TCP loggingnewrelic+1​
  29. What is the function of log rotation in cybersecurity logs?
    a. Encrypts old logs
    b. Prevents disk space exhaustion
    c. Deletes all logs instantly
    d. Moves logs to cache memory
    Answer: b. Prevents disk space exhaustionexamradar+1​
  30. Why should rsyslog configurations be secured with appropriate permissions?
    a. To ensure GUI stability
    b. To prevent unauthorized modification of logging behavior
    c. To compress log data
    d. To enable automatic backups
    Answer: b. To prevent unauthorized modification of logging behaviorrsyslog+1​
  31. What is the benefit of structured logging in rsyslog?
    a. Reduces disk writes
    b. Simplifies parsing and analysis
    c. Encrypts every field automatically
    d. Converts logs into XML only
    Answer: b. Simplifies parsing and analysislinuxjournal+1​
  32. What module is used in rsyslog to read log files?
    a. imfile
    b. imudp
    c. imtcp
    d. ommail
    Answer: a. imfileredhat​
  33. Which directive is used to define templates in rsyslog?
    a. $Template
    b. Template()
    c. define_template
    d. @template
    Answer: b. Template()forcepoint+1​
  34. What type of authentication does TLS provide in rsyslog?
    a. Hash-based
    b. Mutual (two-way) authentication
    c. One-time password
    d. Unix socket
    Answer: b. Mutual (two-way) authenticationredhat+1​
  35. What does $ActionSendStreamDriverMode 1 designate?
    a. Disk buffering
    b. TLS encryption mode
    c. Input stream delay
    d. File writing control
    Answer: b. TLS encryption modenewrelic+1​
  36. What field can be used to filter messages by severity?
    a. priority
    b. level
    c. sysprio
    d. rank
    Answer: a. priorityrsyslog​
  37. What is the rsyslog feature that buffers messages in case of connection loss?
    a. Queue
    b. Blocker
    c. Pipe
    d. Cache
    Answer: a. Queuelinuxjournal+1​
  38. Which utility often works alongside rsyslog for deeper SIEM analytics?
    a. Wireshark
    b. Splunk
    c. VLC
    d. Notepad++
    Answer: b. Splunkscribd​
  39. What does the directive $DefaultNetstreamDriverCAFile specify?
    a. Location of default security certificate
    b. The default network path
    c. The local hostname file
    d. Output format
    Answer: a. Location of default security certificateforcepoint+1​
  40. What directive specifies a buffered disk queue location?
    a. $WorkDirectory
    b. $ConfigFile
    c. $DataStore
    d. $QueueDisk
    Answer: a. $WorkDirectoryrsyslog​
  41. Why is rsyslog critical for Security Information and Event Management (SIEM)?
    a. It generates new firewall rules
    b. It centralizes and normalizes logs for analysis
    c. It decrypts encrypted communication
    d. It isolates network packets
    Answer: b. It centralizes and normalizes logs for analysislinuxjournal+1​
  42. What security model protects log integrity in rsyslog?
    a. TLS encryption and mutual authentication
    b. Shared key hashing only
    c. Unauthenticated broadcast
    d. Basic file write
    Answer: a. TLS encryption and mutual authenticationrsyslog+1​
  43. What facility does “authpriv” log messages belong to?
    a. Authentication and authorization
    b. Private VLAN
    c. Network hardware logs
    d. SELinux audit files
    Answer: a. Authentication and authorizationredhat+1​
  44. What is the effect of using &~ in rsyslog configuration?
    a. Repeat message send
    b. Stop further processing of the message
    c. Encrypt the message line
    d. End configuration block
    Answer: b. Stop further processing of the messagenewrelic+1​
  45. What does ommail module do?
    a. Sends logs via email alerts
    b. Logs messages to JSON format
    c. Reads SMTP configuration
    d. Filters warning-level logs
    Answer: a. Sends logs via email alertsrsyslog​
  46. Which configuration allows rsyslog to forward logs over TLS?
    a. @@hostname:6514
    b. @hostname:514
    c. hostname:8080
    d. tcp://hostname
    Answer: a. @@hostname:6514rsyslog+1​
  47. What is the recommended way to limit access to rsyslog.conf?
    a. chmod 600 /etc/rsyslog.conf
    b. chmod 777 /etc/rsyslog.conf
    c. chmod 400 /etc/rsyslog.conf
    d. chmod 644 /etc/rsyslog.conf
    Answer: a. chmod 600 /etc/rsyslog.confredhat+1​
  48. Which Red Hat service can manage remote logging using rsyslog?
    a. journald
    b. systemd
    c. journald with rsyslog forwarding
    d. pamd
    Answer: c. journald with rsyslog forwardingredhat+1​
  49. What is the major advantage of rsyslog over traditional syslog?
    a. Lack of modules
    b. High performance and flexible module support
    c. No dependency on TLS
    d. Simple text-only output
    Answer: b. High performance and flexible module supportlinuxjournal+1​
  50. Why should private keys in rsyslog’s TLS configuration be protected?
    a. To prevent unauthorized log compression
    b. To maintain trust and security integrity of logging channels
    c. To allow shared read access for analytics
    d. To accelerate log compression
    Answer: b. To maintain trust and security integrity of logging channelsblogs.oracle+1​
  1. https://www.linuxjournal.com/content/streamline-your-logs-exploring-rsyslog-effective-system-log-management-ubuntu
  2. https://www.rsyslog.com/doc/index.html
  3. https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/deployment_guide/s1-basic_configuration_of_rsyslog
  4. https://help.forcepoint.com/fpone/deploy/rhtml/guid-bf49cae7-a1f5-471b-971d-db73fe7ab316.html
  5. https://newrelic.com/blog/how-to-relic/agentless-syslog-onboarding-new-relic-log-management
  6. https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/security_hardening/assembly_configuring-a-remote-logging-solution_security-hardening
  7. https://www.rsyslog.com/doc/tutorials/tls_cert_summary.html
  8. https://success.skyhighsecurity.com/Skyhigh_Secure_Web_Gateway_(On-Prem)/Secure_Web_Gateway_Product_Guide/Monitoring/Best_Practices_-_Sending_Access_Log_Data_to_a_Syslog_Server/Adapt_the_rsyslog.conf_system_file_for_sending_access_log_data
  9. https://examradar.com/security-monitoring-and-logging-a-core-defense-mechanisms-in-web-security-mcqs/
  10. https://blogs.oracle.com/scoter/post/secure-logserver-with-rsyslog-oracle-linux
  11. https://www.scribd.com/document/867200742/Network-Log-Analysis-MCQ
  12. https://www.sanfoundry.com/1000-cyber-security-questions-answers/
  13. https://www.scribd.com/document/516169743/Cyber-Security-MCQ-Set-1-5
  14. https://sharncommerce.org/wp-content/uploads/2024/03/B.com-V-Sem-NEP-Cyber-Security-Solved-MCQs.pdf
  15. https://www.yeahhub.com/40-cyber-security-mcq-answers-explanations/
  16. https://www.rsyslog.com/doc/configuration/index.html
  17. https://www.sanfoundry.com/cyber-security-questions-answers-firewalls-1/
  18. https://www.studocu.com/in/document/karnataka-state-akkamahadevi-womens-university/cyber-security/unit-1-mcqs-this-pdf-contains-mcqs-from-unit-1-of-cybersecurity/114363147
  19. https://technicalblog.in/languagewise-mcqs/cyber-security-mcq/
  20. https://pdfcoffee.com/cyber-security-mcq-set-1-5-pdf-free.html

Leave a Reply

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

error: Content is protected !!