exam questions

Exam JN0-221 All Questions

View all questions & answers for the JN0-221 exam

Exam JN0-221 topic 1 question 61 discussion

Actual exam question from Juniper's JN0-221
Question #: 61
Topic #: 1
[All JN0-221 Questions]

Which code block shows valid YAML syntax?

  • A. Switches: - s1 - s2
  • B. Switches: s1 s2
  • C. Switches: {s1, s2}
  • D. Switches: ["s1", "s2"]
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
shiiitboi
Highly Voted 4 years, 2 months ago
Option A is correct
upvoted 6 times
...
zerobits
Most Recent 2 years, 12 months ago
Selected Answer: B
B is correct. Just tried it in my own lab. The other types produce a warning in Ansible; [WARNING]: Could not match supplied host pattern, ignoring: vsrx1 [WARNING]: Could not match supplied host pattern, ignoring: vsrx2
upvoted 1 times
...
lucaboban
4 years, 2 months ago
Well, I guess there is typo? B, C, D all are valid yaml syntax. So, perhaps question is asking which is invalid yaml syntax... in this case A
upvoted 2 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