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:

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