Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam CAS-005 Topic 1 Question 5 Discussion

Actual exam question for CompTIA's CAS-005 exam
Question #: 5
Topic #: 1
[All CAS-005 Questions]

A security administrator needs to automate alerting. The server generates structured log files that need to be parsed to determine whether an alarm has been triggered Given the following code function:

Which of the following is most likely the log input that the code will parse?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: A

The code function provided in the question seems to be designed to parse JSON formatted logs to check for an alarm state. Option A is a JSON format that matches the structure likely expected by the code. The presence of the 'error_log' and 'InAlarmState' keys suggests that this is the correct input format.


Contribute your Thoughts:

Cornell
23 hours ago
Option B looks the most structured and easy to parse. The key-value pairs are clearly defined, making it a great choice for the code function.
upvoted 0 times
...
Tommy
3 days ago
Why do you think that?
upvoted 0 times
...
Tracey
4 days ago
I disagree, I believe it will parse log input C.
upvoted 0 times
...
Tommy
5 days ago
I think the code will parse log input A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77