LOS ANGELES -- Paul Goldschmidt and Miguel Montero homered to help Bronson Arroyo win his third straight start and the Arizona Diamondbacks beat the Los Angeles Dodgers 6-3 Sunday, preventing a three-game sweep.
Arroyo (7-4) allowed a run and five hits in five innings.
Josh Beckett (4-4) was charged with four runs -- three earned -- and five hits through seven innings with six strikeouts and no walks for the Dodgers.
Goldschmidt hit his 15th home run in the first inning and Montero hit his 10th in the ninth inning, a two-run shot off Chris Perez.
Some absentmindedness by the Dodgers helped the Diamondbacks during a two-run seventh inning that increased the lead to 4-1.
Montero ended up with one-out infield single after second baseman Dee Gordon fielded his routine grounder and had neither first baseman Adrian Gonzalez nor Beckett covered the bag.
Aaron Hill followed with a single to left field and continued to second as Matt Kemp tried to throw out Montero at third. Gordon then charged Martin Prado's slow grounder with the infield playing in -- and ran past the ball as it skidded into short-right-centre. Both runners scored and Prado was credited with one RBI.
A fielding error by Arizona shortstop Didi Gregorius on Jamie Romak's leadoff grounder in the seventh gave the Dodgers some life. Lefty Oliver Perez, who came in with a scoreless streak of 11 innings over his previous 13 appearances, walked No.8 hitter Drew Butera before pinch-hitter Justin Turner doubled over the head of left fielder Cody Ross.
Butera was hoping to score behind Romak, then slammed on the breaks after he was held up by coach Lorenzo Bundy. But Gregorius took the relay from Ross and threw to Prado for the tag on Butera before he could scramble back to the bag. Perez then hit Gordon with an 0-2 pitch, but the D-backs escaped the inning still clinging to a 4-2 lead as Evan Marshall struck out Hanley Ramirez and retired Yasiel Puig on a tapper back to the mound.
Brad Ziegler escaped the Dodgers' eighth unscathed after retiring Romak on a double-play grounder with runners at the corners.
The Dodgers tied it in the second when Gonzalez drew a leadoff walk and scored on Romak's groundout. The Diamondbacks regained the lead in the fifth when David Peralta doubled with two out, stole third and sprinted home on Beckett's first wild pitch of the season.
Ramirez added an RBI double in the ninth for Los Angeles.
NOTES: Ziegler has induced 85 double-play grounders since the start of the 2008 season, the most among relievers. ... For the second time in two games, Montero threw out Puig trying to steal second base in the first inning with Gonzalez at bat. Puig has been caught seven times on 14 steal attempts. Montero entered this series having thrown out only six of 39 runners. ... Sixteen of Goldschmidt's 79 big league homers have come in the first inning, more than he's hit in any other frame. Goldschmidt has 13 homers, 44 RBIs and a .321 average against Dodgers pitching. The home run and RBI totals are his best against any club. ... The Dodgers have only six home runs in 417 at-bats and 482 total plate appearances over their last 13 games. Gonzalez has gone 23 games without one and Puig is in a 16-game home run drought.