exam questions

Exam JN0-221 All Questions

View all questions & answers for the JN0-221 exam

Exam JN0-221 topic 1 question 48 discussion

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

Which curl command will successfully retrieve interface information from a Juniper device?

  • A. curl ""u "lab:lab123" https://10.200.1.1:3443/rpc/get-interface-information -X POST
  • B. curl ""u "lab:lab123" http://10.200.1.1:3000/rpc/get-interface-information -X GET
  • C. curl ""u "lab:lab123" https://10.200.1.1:8443/rpc/get-interface-information -X GET
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/rest-api-submitting-get-request.html

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
jsmehta
3 years, 9 months ago
Correct answer is B , since its retrieving so it will be get request and http port is 3000 and https port is 3443
upvoted 1 times
...
shiiitboi
4 years, 2 months ago
Correct answer is B
upvoted 4 times
owlbufi
4 years, 1 month ago
B is correct! However C looks just fine too. It uses HTTPS and default Junos REST API HTTPS port, 8443. Can you explain why C is not correct? Even though the question wrongly implies only one answer.
upvoted 2 times
abobeida94
4 years, 1 month ago
C is incorrect because the Default port is 3000 for HTTP, and 3443 for HTTPS.
upvoted 3 times
jsmehta
3 years, 9 months ago
How come C be the correct answer as per your above comment B should be correct answer
upvoted 1 times
...
zerobits
2 years, 12 months ago
Right.. and the default https port is 3443.
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