Question 1
AdvancedDiscovery Pattern Design · Operations
A Senior Discovery Architect is designing a custom pattern to discover a legacy mainframe application. The application configuration is stored in a complex flat file located at /etc/legacy_app/config.dat. The architect needs to extract specific parameters like 'AppPort' and 'MaxConnections' from this file to populate the CMDB. Which sequence of Pattern Designer operations represents the MOST efficient and robust approach to achieve this?
Answer and explanation
Correct answer: B
The correct approach involves retrieving the file content first into a variable (often using a 'Get File' or similar command step) and then using the 'Parse Variable' operation. 'Parse Variable' is specifically designed to extract data from a text block held in a variable using parsing strategies like Regex or Delimiters. This is more efficient than trying to parse line-by-line via command line tools on the host, especially for complex flat files.
