MCIA - Level 1 Exam QuestionsBrowse all questions from this exam

MCIA - Level 1 Exam - Question 53


What is a recommended practice when designing an integration Mule 4 application that reads a large XML payload as a stream?

Show Answer
Correct Answer: C

When designing an integration Mule 4 application that reads a large XML payload as a stream, a recommended practice is to deal with the payload as an XML stream without converting it to a single Java object (POJO). This is because processing the XML using streaming allows handling of large payloads efficiently by not loading the entire payload into memory at once, thus avoiding issues related to memory consumption.

Discussion

7 comments
Sign in to comment
Rahul1387Option: C
Jul 28, 2021

*Correction C

Rahul1387Option: B
Jul 28, 2021

The answer is B

awstj
Aug 28, 2021

When calculating the in-memory buffer size for repeatable auto-paging, you need to estimate the amount of memory each instance takes to avoid running out of memory. https://docs.mulesoft.com/mule-runtime/4.3/streaming-about

Outdoor25Option: C
Dec 27, 2021

It should be C. Cannot be B because single XML file maxing heap size means there is no space for any other operations in the runtime. Which is a problem.

jmayOption: C
Dec 2, 2022

Streaming is the only way to go

gilofernandesOption: B
Nov 6, 2023

https://help.mulesoft.com/s/article/Error-that-the-max-streaming-memory-limit-has-been-exceeded

vikas_muleOption: C
Feb 20, 2024

C is correct, streaming is used to process lorge payload, in not storing whole as an object

AlandtOption: C
Jun 18, 2024

ChatGPT: C. The payload should be dealt with as an XML stream, without converting it to a single Java object (POJO).