JNCIA-DevOps: Juniper Networks Certified Associate – Automation (2021) — Question 16
Which curl command will successfully retrieve interface information from a Juniper device?
Answer options
- 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
Correct answer: A
Explanation
The correct answer is A, as it uses the proper HTTPS protocol and the specified port 3443, which is typically required for secure communications with Juniper devices. Option B uses HTTP on port 3000, which is not appropriate for secure access, while option C, although using HTTPS, points to an incorrect port (8443) that does not match the expected configuration.