JNCIA-DevOps Data Serialization Practice Question
Which TWO Python standard library modules are commonly combined when a script needs to fetch web content (such as Junos REST API data) and parse the resulting payload? (Choose two)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
json
The 'urllib.request' module handles HTTP requests, and the 'json' module handles parsing the resulting JSON response.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
json
Why this is correct
Correct. json is required to parse API responses.
- ✗
yaml
Why it's wrong here
Incorrect. yaml is third-party and not strictly required for JSON APIs.
- ✗
socket
Why it's wrong here
Incorrect. socket is too low-level for standard HTTP REST calls.
- ✓
urllib.request
Why this is correct
Correct. urllib.request is part of the standard library for making HTTP calls.
- ✗
pickle
Why it's wrong here
Incorrect. pickle serializes Python objects, not REST APIs.
About these practice questions
One of 306 original JNCIA-DevOps practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint
This JNCIA-DevOps practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIA-DevOps exam.