David Peralta and Paul Goldschmidt each hit a two-run homer in Arizona's six-run seventh inning. It was Peralta's first major league homer.
Anderson (5-0) had a career-best eight strikeouts. He allowed two runs and five hits on his way to becoming the first player to open his career with five straight wins since Jered Weaver won seven straight in 2006.
Justin Upton, Freddie Freeman and Ramiro Pena homered for the Braves, who lost two of three in Arizona. Aaron Harang (4-5) got the loss.