Andersen made 26 saves in his first NHL start for the Ducks, who bounced back after losing the first two games of their eight-game road trip.
"He played great," Getzlaf said. "We can't ask for anything else. He stopped the pucks that he was supposed to and some that he shouldn't, so he played awesome tonight. I'm happy for him."
Andersen stuck out his left pad at 11:30 of the third period to deny Ryan's scoring chance on a pass from Kyle Turris with Ottawa on a power play.
"I tried to track through traffic and tried to read what he was going to do," Andersen said. "Sometimes if you see a guy wide-open there's a good chance he's going to pass to him, so it was just making the slide over and trying to take away as much ice as possible, and of the net too."
Andersen, recalled from the Norfolk Admirals of the AHL one week earlier, is 2-0-0 in two games with the Ducks. The 24-year-old got his first victory Sunday after he relieved Jonas Hiller to make his NHL debut in a 6-3 win against the Dallas Stars.
Minutes after this game, the Ducks announced Andersen had signed a two-year contract extension.
"It's been a week I'll remember for a long time," Andersen said.
Craig Anderson stopped 26 shots for the Senators, who gave up a team-record 56 shots in a 4-1 loss at Anaheim on Oct. 13.
Teemu Selanne was left out of the Ducks' lineup for the second time this season. Selanne, who played in a 4-1 loss at the Montreal Canadiens on Thursday, is not expected to play games on consecutive days this season.
Ottawa coach Paul MacLean went with the same lineup that defeated the Detroit Red Wings 6-1 Wednesday at Joe Louis Arena.
"We come from a really well-played game in Detroit a couple of days ago and today I don't think we were really there from the start," said Senators defenseman Erik Karlsson, whose turnover led to the Ducks' second goal. "We catch a couple of breaks and we're down two goals and we were just running uphill all game."
Getzlaf and Perry, split up in the second period against the Canadiens, spurred the Ducks' offense in the first period Friday.
Maroon, who scored his first goal of the season Thursday, took Perry's pass from behind the net and beat Anderson with a shot from the slot at 7:35.
"It's tough," Anderson said. "It's a game of mistakes. They made mistakes also and tonight we didn't capitalize. The other night in Detroit we capitalized on Detroit's mistakes, and tonight when we had our opportunities their goalie made some good saves or we missed our chance."
Getzlaf made it 2-0 with his fourth goal at 17:38. Anderson left the puck behind the net for Karlsson, who was pressured by Maroon on the forecheck and turned over the puck. Anderson stopped Perry's initial shot but Getzlaf put away the rebound.
"You know what, I don't even know how it happened, to tell you the truth," Getzlaf said. "Maroon played great tonight. He played great on our line and he went in on a hard forecheck there and caused a turnover and Perry and I each got a hack at it, and I was lucky enough to put it in."
Zibanejad scored when he drove a slap shot past Andersen from the right point. Zibanejad has a goal and an assist in two games since he was recalled from the Binghamton Senators of the AHL on Tuesday.
Ottawa right wing Chris Neil took a roughing penalty on the next faceoff when he struck Maroon after the two exchanged words before the puck dropped.
Neil had an active shift in the first period after Maroon put Anaheim up 1-0, beginning with a solid open-ice hit that knocked down Emerson Etem at 8:30. He followed that moments later with checks on former teammate Jakob Silfverberg and defenseman Sami Vatanen.
Selanne, who is four games shy of his 1,400th regular-season NHL game, sat out the Ducks' second game of the season against the Minnesota Wild on Oct. 5. He faced the Winnipeg Jets the following night in what was likely his last game in Winnipeg, where he broke into the League.
Members of the 1973 Ottawa Rough Riders were on hand with the Grey Cup to celebrate the 40th anniversary of the team's Canadian Football League championship.