Question 1
Topic: Discovery Pattern Design
Skill tested: Designs pattern parsing operations and selects a parsing strategy for structured command output.
A team is onboarding a network appliance whose CLI returns a table with a variable number of rows. Each row contains an interface name, administrative state, and address. The output includes a header and separator line, and interface ordering can change between runs. The pattern must create one interface CI per data row and populate attributes without relying on fixed line numbers. Which design is most appropriate?
The output is a repeating, row-oriented structure, so the pattern should iterate through data rows and extract fields for each interface rather than depend on row positions. A suitable parsing strategy can handle the header and separator while mapping each row's captures to the appropriate interface attributes. A Parse variable operation that captures only the first row would miss interfaces; Parse file would store the response rather than create correctly populated interface records; and Match can validate a value but does not itself provide the required row-by-row mapping.