nerdexam
Cisco

300-215 · Question #52

Refer to the exhibit. A network administrator creates an Apache log parser by using Python. What needs to be added in the box where the code is missing to accomplish the requirement?

The correct answer is A. r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}. That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.

Submitted by andres_qro· Mar 6, 2026Forensics Techniques

Question

Refer to the exhibit. A network administrator creates an Apache log parser by using Python. What needs to be added in the box where the code is missing to accomplish the requirement?

Exhibit

300-215 question #52 exhibit

Options

  • Ar'\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}
  • Br'\b'
  • Cr'\b[1-9][0-9]{2,4}\b'
  • Dr'\d{1,255}.\d{1,255}.\d{1,255}.\d{1,255}

How the community answered

(20 responses)
  • A
    90% (18)
  • B
    5% (1)
  • D
    5% (1)

Explanation

That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.

Topics

#log parsing#Python regex#Apache logs#IPv4

Community Discussion

No community discussion yet for this question.

Full 300-215 Practice