A Palo Alto Networks XSIAM engineer is tasked with optimizing a custom XSIAM playbook that frequently executes against high-volume data sources. The playbook includes a script task that performs a complex regex match against a large string field from incoming alerts. This task is consistently contributing to the playbook's long execution time and occasionally causing timeouts. How would you refactor this playbook component to improve performance and reliability, assuming the regex logic is critical?
正解:B,E
The question asks for refactoring to improve performance and reliability for a 'complex regex match against a large string field' that causes long execution times and timeouts. Moving the regex logic to an XSIAM XDR rule or correlation rule (B) is ideal. XDR/XSIAM rules operate at a much lower level (ingestion/detection pipeline) and are optimized for high-volume, real-time processing, offloading the burden from the playbook engine. Alternatively, offloading the processing to an external serverless function (E) allows for highly scalable and performant execution outside the XSIAM playbook's direct processing limits. Option A only masks the problem, not solves it. Option C is not directly applicable to a single large string field; pagination is for iterating over large datasets. Option D (optimizing regex pattern) is a good practice but often insufficient for 'complex regex against a large string' that causes timeouts, as the core computational burden remains within the playbook's script task.