Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 140

Refer to the exhibits. The Mule application configures and uses two HTTP Listener global configuration elements.

The Mule application is run in Anypoint Studio.

If the Mule application starts correctly, what URI and port number(s) can receive web client requests; if the Mule application fails to start, what is the cause of the failure?

    Correct Answer: C

    The Mule application starts successfully and web client requests can be received at both the URI on port 2222 and port 3333. The application uses two different HTTP Listener configurations set up on these two ports without any port or path conflicts. Therefore, it can handle requests on both ports as specified in their respective listener configurations.

Discussion
ExamDevOption: C

ChatGpt: C. The Mule application starts successfully Web client requests can be received at the URI /on port 2222 or port 3333 In this scenario, there are two HTTP Listeners configured on ports 2222 and 3333 with different paths ("/" and "/path"). As a result, the Mule application should start successfully, and web client requests can be received at both URIs with their respective port numbers.

aook002

You shouldn't trust chatGPT. Where are the different paths ("/" and "/path")?

minu21Option: B

Correct answer is B.

aook002Option: C

Application starts OK. Watch out for the typos and subtle changes in the Set Payload parameter to try throw you off - e.g payload is set to a string of "HTTP: 33333" (5 threes) - totally irrelevant though. A request comes into http://localhost:2222/, it is picked up by the HTTP listener in 'httpListener1' as it is set to use the HTTP Global Config that listens on port 2222. This flow then makes a request to http://localhost:3333, which is again picked up by the listener in the httpListener3333 flow. Payload is set as mentioned before. You could also directly make a request to http://localhost:3333/ and it would also set the Payload as that listener in that flow is set to use the "Http_listener_config_3333" listener config which looks out for requests made on port 3333.