Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco Exam 300-535 Topic 11 Question 46 Discussion

Actual exam question for Cisco's 300-535 exam
Question #: 46
Topic #: 11
[All 300-535 Questions]

Refer to the exhibit.

What must be added after the last line of the Ansible playbook to check if the output contains ''IOS-XR''?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Dustin
1 months ago
Looks like a classic case of off-by-one error. Gotta love those Ansible challenges!
upvoted 0 times
...
Alayna
1 months ago
I wonder if the playbook is actually returning a list or a single value. That could affect which index we need to check.
upvoted 0 times
...
Rasheeda
1 months ago
Option D seems a bit off-topic. We're trying to check the output, not wait for a connection. I'd go with Option B.
upvoted 0 times
Sueann
3 days ago
I agree, Option D is definitely not the right choice here.
upvoted 0 times
...
...
Fausto
2 months ago
Haha, 'wait_for: result[1] contains ''IOS-XR''' sounds like a typo. The playbook is probably looking for the first element, not the second.
upvoted 0 times
Dell
18 days ago
User1: Yeah, that makes more sense. It should check the first element for 'IOS-XR'.
upvoted 0 times
...
Pamella
21 days ago
User2: Maybe 'wait_for: result[0] contains IOS-XR' would be the correct option.
upvoted 0 times
...
Eleonore
1 months ago
User1: I agree, 'wait_for: result[1] contains ''IOS-XR''' seems like a mistake.
upvoted 0 times
...
...
Edmond
2 months ago
I'm not sure about the difference between 'result[0]' and 'result[1]'. Maybe I should review the Ansible documentation again.
upvoted 0 times
Felix
12 days ago
User1: That makes sense. Let's go with option A.
upvoted 0 times
...
Monroe
16 days ago
User3: So, in this case, we should use 'result[1] contains ''IOS-XR'''.
upvoted 0 times
...
Melissa
28 days ago
User2: Yes, and 'result[1]' would refer to the second element in the array.
upvoted 0 times
...
Carey
1 months ago
User1: I think 'result[0]' refers to the first element in the result array.
upvoted 0 times
...
Vanna
1 months ago
User4: Yeah, that's a good idea. We need to understand the difference.
upvoted 0 times
...
Gertude
1 months ago
User3: Let's check the Ansible documentation to be sure.
upvoted 0 times
...
Annmarie
2 months ago
User2: Maybe 'result[0]' is the first item then.
upvoted 0 times
...
Elvera
2 months ago
User1: I think 'result[1]' refers to the second item in the output.
upvoted 0 times
...
...
Kimbery
2 months ago
Option B looks good, as we need to check the first element of the result, not the second.
upvoted 0 times
Pamella
29 days ago
User2: Agreed, let's go with option B to check if the output contains 'IOS-XR'.
upvoted 0 times
...
Charlene
1 months ago
User1: I think option B is correct, we should check the first element of the result.
upvoted 0 times
...
...
Mitsue
2 months ago
But the question asks to check if the output contains ''IOS-XR'', so I think A is more accurate
upvoted 0 times
...
Lai
2 months ago
I disagree, I believe the correct answer is B) wait_for: result[0] contains IOS-XR
upvoted 0 times
...
Mitsue
2 months ago
I think the answer is A) wait_for: result[1] contains ''IOS-XR''
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77