Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCIA - Level 1 All Questions

View all questions & answers for the MCIA - Level 1 exam

Exam MCIA - Level 1 topic 1 question 7 discussion

Actual exam question from Mulesoft's MCIA - Level 1
Question #: 7
Topic #: 1
[All MCIA - Level 1 Questions]

Refer to the exhibit. A shopping cart checkout process consists of a web store backend sending a sequence of API invocations to an Experience API, which in turn invokes a Process API. All API invocations are over HTTPS POST. The Java web store backend executes in a Java EE application server, while all API implementations are Mule applications executing in a customer-hosted Mule runtime.
End-to-end correlation of all HTTP requests and responses belonging to each individual checkout instance is required. This is to be done through a common correlation ID, so that all log entries written by the web store backend, Experience API implementation, and Process API implementation include the same correlation ID for all requests and responses belonging to the same checkout instance.
What is the most efficient way (using the least amount of custom coding or configuration) for the web store backend and the implementations of the Experience
API and Process API to participate in end-to-end correlation of the API invocations for each checkout instance?

  • A. The Experience API implementation generates a correlation ID for each incoming HTTP request and passes it to the web store backend in the HTTP response, which includes it in all subsequent API invocations to the Experience API The Experience API implementation must be coded to also propagate the correlation ID to the Process API in a suitable HTTP request header
  • B. The web store backend generates a new correlation ID value at the start of checkout and sets it on the X-CORRELATION-ID HTTP request header in each API invocation belonging to that checkout No special code or configuration is included in the Experience API and Process API implementations to generate and manage the correlation ID
  • C. The web store backend, being a Java EE application, automatically makes use of the thread-local correlation ID generated by the Java EE application server and automatically transmits that to the Experience API using HTTP-standard headers No special code or configuration is included in the web store backend, Experience API, and Process API implementations to generate and manage the correlation ID
  • D. The web store backend sends a correlation ID value in the HTTP request body in the way required by the Experience API The Experience API and Process API implementations must be coded to receive the custom correlation ID in the HTTP requests and propagate it in suitable HTTP request headers
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
gilofernandes
1 year ago
Selected Answer: B
X-correlation-id is not a standard HTTP header and is the only way to transmit a correlation id to a mule application using an HTTP Listener
upvoted 1 times
...
lzrvs
1 year, 11 months ago
Selected Answer: B
B is correct. x-correlation-id is not a standard HTTP header.
upvoted 1 times
...
AK2020
2 years, 2 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
madgeezer
2 years, 3 months ago
Selected Answer: B
B. The web store backend generates a new correlation ID value at the start of checkout and sets it on the X-CORRELATION-ID HTTP request header in each API invocation belonging to that checkout No special code or configuration is included in the Experience API and Process API implementations to generate and manage the correlation ID
upvoted 1 times
...
rodriguescont
2 years, 5 months ago
Selected Answer: B
Use the original correlation ID generated by the back-end application for the check-out permits to trace the process end-to-end
upvoted 1 times
...
1MK
2 years, 10 months ago
Selected Answer: B
B is most efficient
upvoted 1 times
...
meet_abdel
2 years, 10 months ago
Correct
upvoted 1 times
...
Grump
2 years, 11 months ago
B. I think. correlationId should be generated by backend to have a possibility of making POST call idempotent in case something goes wrong in HTTP calls..
upvoted 2 times
...
Pavan_Nagineni
3 years, 3 months ago
B. The web store backend generates a new correlation ID value at the start of checkout and sets it on the X-CORRELATION-ID HTTP request header in each API invocation belonging to that checkout No special code or configuration is included in the Experience API and Process API implementations to generate and manage the correlation ID
upvoted 1 times
...
awstj
3 years, 3 months ago
https://help.mulesoft.com/s/article/How-to-Set-Custom-Correlation-Id-for-Flows-with-HTTP-Endpoint-in-Mule-4
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...