Q: 1
Refer to the exhibit.
Refer to the exhibit. A DevOps engineer must create a PowerShell script to display a list of tenants in the Cisco
Application Centric Infrastructure (ACI) by using the Cisco ACI PowerShell module. The engineer does NOT know how
many results will be returned, so it is important to iterate through all the results. Which code snippet completes the
script?
P-95

Refer to the exhibit. A DevOps engineer must create a PowerShell script to display a list of tenants in the Cisco
Application Centric Infrastructure (ACI) by using the Cisco ACI PowerShell module. The engineer does NOT know how
many results will be returned, so it is important to iterate through all the results. Which code snippet completes the
script?
P-95

Options
Discussion
D makes sense, it's got the loop so every tenant gets listed no matter the total count. None of the others handle dynamic result sizes. I think that's what Cisco wants for this style question, but open to other opinions.
C/D? Seen similar format in the official guide and labs, always review those for script looping questions.
Seen almost this exact format on a couple practice tests, always ends up being D since it's the only code that actually loops through every tenant no matter how many come back. Pretty sure that's the logic Cisco wants here, but happy for any corrections.
D , C is tempting but D actually loops over all the tenant objects so you don't miss any.
Probably C, looks like it loops too and should print all tenants. Not 100% though since the output format might differ.
C/D? D actually loops through every tenant so dynamic results are handled, C looks like a trap for static cases. Open to input if I'm missing something.
Option C I think. Official labs often show loops like D but sometimes C matches the script output in practice tests.
D tbh, only that one loops over the full result set no matter how many tenants there are.
Probably D
D imo, looks like the only choice that goes through every tenant, regardless of how many there are. The loop structure covers all items so you won't miss one if there are more than expected. Pretty sure that's why D fits, but let me know if I missed something!
Be respectful. No spam.