Courseiva
Software Development and DesigneasyMultiple ChoiceObjective-mapped

200-901 Software Development and Design Practice Question

When using the requests library in Python to send a POST request, which parameter should be used to send a JSON payload in the request body?

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=payload

The json= parameter automatically serializes the Python dictionary to JSON and sets the Content-Type header to application/json.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • params=payload

    Why it's wrong here

    params= is for query parameters in the URL, not the request body.

  • files=payload

    Why it's wrong here

    files= is for multipart file uploads.

  • json=payload

    Why this is correct

    The json= parameter handles serialization and header automatically.

  • data=json.dumps(payload)

    Why it's wrong here

    data= sends raw data and requires manual JSON serialization and header setting.

About these practice questions

Courseiva writes every 200-901 question from scratch — 989 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-901 practice question is part of Courseiva's free Cisco 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 200-901 exam.