Splunk Interview Question

Couple of design question and 2 coding questions