202-450 Exam QuestionsBrowse all questions from this exam

202-450 Exam - Question 76


Which of the following are logging directives in Apache HTTPD? (Choose two.)

Show Answer
Correct Answer: ABC

Logging directives in Apache HTTPD are used to configure log files and manage what gets logged by the server. CustomLog is used to define the file for access logs, specifying where details about incoming requests and server responses are stored. ErrorLog is used to define the file where errors and warnings encountered during server operation are logged. TransferLog, while technically a valid directive, is an older alternative syntax for CustomLog and is not commonly used in newer configurations. ServerLog and VHostLog are not valid directives in Apache HTTPD.

Discussion

9 comments
Sign in to comment
hobokaboboOptions: BC
Jul 18, 2020

Actually TransferLog, ErrorLog and CustomLog exists. I would go for ErrorLog and CustomLog as they feel more commonly used to me.

AdonistOptions: AB
Aug 8, 2020

I think A and B are correct. According to the documentation of the module mod_log_config there's 3 directives: TransferLog, CustomLog and LogFormat. Even though ErrorLog is one of the main options for logs, not sure if that would be the right one. If the question has 2 options, I'd go for A and B. If there's 3 I'd add ErrorLog all right. http://httpd.apache.org/docs/current/mod/mod_log_config.html

excoOptions: BC
Aug 30, 2021

B and C are correct, because in the exam there is no TransferLog option to chose, only ErrorLog and CustomLog

AdminguiOptions: BC
Jul 21, 2020

cat /etc/apache2/sites_available/000-default.conf ist custom log and error log

tcaseit
Dec 1, 2020

Even in the whole Apache conf directory Transfer doesn't seem to appear by default but Error and Custom do. egrep -r 'TransferLog|CustomLog|ErrorLog' /etc/apache2/*

jorge_pasOptions: BC
Nov 13, 2021

B and C are correct. https://httpd.apache.org/docs/2.4/logs.html

glorofarz
Jul 28, 2020

i think the question is malformed and should say, Choose three

exco
Aug 30, 2021

No, in the real exam there is no TransferLog option as answer

saodOptions: BC
May 30, 2021

# Journal personnalisé avec alias de format LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog "logs/access_log" common # Journal personnalisé avec chaîne de format explicite CustomLog "logs/access_log" "%h %l %u %t \"%r\" %>s %b"

mira_Options: BC
Oct 6, 2022

Qouting hobokabobo: Actually TransferLog, ErrorLog and CustomLog exists. I would go for ErrorLog and CustomLog as they feel more commonly used to me.

Amjadqzz1Options: AC
Jun 22, 2023

Chatgpt: The logging directives in Apache HTTPD are: A. TransferLog C. ErrorLog Therefore, the correct options are A and C. Explanation: TransferLog: This directive is used to specify the log file for recording the access logs. It defines the file where the details of incoming requests and server responses are logged. ErrorLog: This directive is used to specify the log file for recording the error logs. It defines the file where Apache HTTPD records errors and warnings encountered during server operation. The options B, D, and E (CustomLog, ServerLog, and VHostLog) are not valid logging directives in Apache HTTPD.