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

What is the DataWeave expression to log the Content-Type header using a Logger component?

    Correct Answer: D

    In DataWeave, to access the headers of a message, you generally use the 'attributes.headers'. Additionally, to concatenate strings in DataWeave, you use the '+'. Therefore, the correct expression to log the Content-Type header would be 'Content-Type: ' + attributes.headers.'content-type'.

Discussion
sirious09Option: A

A is correct