MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 102


Refer to the exhibit.

What data is expected by the POST /accounts endpoint?

A.

B.

C.

D.

Show Answer
Correct Answer:

The data expected by the POST /accounts endpoint should be in JSON format and include the fields: name, address, customer_since, balance, and bank_agent_id. Hence, the correct choice is C.

Discussion

7 comments
Sign in to comment
almoraima
Mar 28, 2021

C is correct

gokulmoorthi
Apr 28, 2021

C is correct. The content-type is application/json

nilan84
May 28, 2021

C is correct

miguel_romero
Dec 15, 2021

C is correct

Sowmya0249
Oct 30, 2023

D is 100% correct, Observe the output when you retrieve the data.

Sowmya0249
Oct 30, 2023

Sorry my bad, C is correct. explanation same. Mis type happend

ExamDev
Jan 23, 2024

C is the correct answer. When creating on post ID is not required (backend creates the ID, not post request), and if you see the example it expects application/json

aook002
Apr 20, 2024

The data expected by POST request is name, address, customer_since, balance, bank_agent_id. This rules out answers A and D as id is not expected. Second, look at the data type - application/json - rules out item B. Remaining answer = C.