Danai Gurira played the character of Michonne in The Walking Dead, not Sofia.
In The Walking Dead, Sofia is portrayed by actress Madison Lintz. Sofia is the daughter of Carol Peletier and Ed Peletier. She is a young girl who becomes separated from the group during the chaos of the zombie apocalypse. Sofia’s disappearance becomes a major plot point in the second season of the show, as the group searches for her and hopes for her safe return. However, it is later revealed that Sofia had been bitten and turned into a walker, and her zombified form is discovered in Hershel’s barn. This revelation is a devastating blow to the group, especially to her mother Carol. Sofia’s character serves as a reminder of the harsh realities and dangers of the post-apocalyptic world in The Walking Dead.