CCNA: Cisco Certified Network Associate — Question 762
An engineering team asks an implementer to configure syslog for warning conditions and error conditions. Which command does the implementer configure to achieve the desired result?
Answer options
- A. logging trap 5
- B. logging trap 2
- C. logging trap 3
- D. logging trap 4
Correct answer: D
Explanation
The correct command is 'logging trap 4' because this level includes both warning (level 4) and error messages. The other options specify logging levels that do not capture all the requested message types, such as 'logging trap 5' which only captures notifications and above, 'logging trap 3' which captures only errors and above, and 'logging trap 2' which captures only critical issues.