exam questions

Exam 350-601 All Questions

View all questions & answers for the 350-601 exam

Exam 350-601 topic 1 question 510 discussion

Actual exam question from Cisco's 350-601
Question #: 510
Topic #: 1
[All 350-601 Questions]

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?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DSAM9
2 months, 4 weeks ago
Selected Answer: A
A looks ok powershell # Assume $resultjson contains the JSON response from the ACI API foreach( $tenant in $resultjson.imdata ) { $tenantName = $tenant.fvTenant.attributes.name Write-Host $tenantName } This code snippet does the following: It uses a foreach loop to iterate through each tenant in the imdata array. For each tenant, it extracts the tenant's name from the fvTenant.attributes.name property. It then prints the tenant's name using Write-Host.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago