Which sentence describes a function of dialogue in a story

A function of dialogue in a story is to reveal character personalities, motivations, and perspectives through their words and interactions with others.

The function of dialogue in a story is to reveal information about the characters, advance the plot, and create a sense of authenticity in the narrative.