FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

Exam Question MS-21-038 for MuleSoft Certified Developer (MCD) - Level 1

Exam Question MS-21-038 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS12.4.2021

This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.

Question

Refer to the exhibits! The web client sends a POST request to the ACME Order API with an XML payload. An error is returned. What should be changed in the request so that a success response code is returned to the web client?

Answer

A) Set a request header with the name Content-Type to a value of applicatron/octet-stream
B) Set a request header with the name Content-Type to a value of application/xml
C) Set a response header with the name Content-Type to a value of application/xml
D) Set a response header with the name Content-Type to a value of application/octet-stream

The correct answer to this question is B.

Explanation

It is noticeable in the RAML specification that, to make a call to the endpoint /order, it is necessary that the body's content type is set to application/xml. Therefore, the wrong data in the web client have to be modified, which leads us to answer B.

Register now