A’s right-handed pitcher James Kaprielian, per MLB.com, faced four hitters and threw 20 pitches in a live batting practice session Sunday, leaving manager Mark Kotsay optimistic that Kaprielian might be able to exit spring training as an option for the starting rotation.

Kaprielian, who underwent shoulder surgery in November, is slated to throw one more live bullpen session before he makes his Cactus League debut. The A’s open the regular season on March 30 at home against the Los Angeles Angels.

“We have a couple of off days before the season,” Kotsay said. “I don’t know the exact timeline. I just know if he’s throwing live now, it’s a good sign. We’ll continue forward.”

In Sunday’s Cactus League game, catcher Shea Langeliers had three hits, including his first home run of the spring as the A’s beat the Milwaukee Brewers 11-4 in Phoenix.

Langeliers’ home run came in the third inning as the A’s took a 5-0 lead. He went 3 for 3 with two runs and two RBIs. The A’s finished with 13 hits, including two each from Denzel Clarke and Jesus Aguilar. First baseman Ryan Noda hit a three-run homer in the seventh inning to give the A’s an 11-1 lead.

The A’s pitching staff finished with 18 strikeouts, with left-hander Kyle Muller and righty Adam Oller each with four. Muller allowed two hits over two scoreless innings. Domingo Acevedo and Jorge Juan struck out the side in the fifth and eighth innings, respectively.

MACHADO, PADRES AGREE TO NEW $350M, 11-year deal >> All-Star slugger Manny Machado has agreed to a new $350 million, 11-year contract that will keep him with the San Diego Padres through 2033, according to a person with knowledge of the deal.

“We’re excited to be here for the rest of our career and have this hat go into the Hall of Fame,” Machado said as he passed a group of reporters before Sunday’s game against the Arizona Diamondbacks.

Machado, 30, had said that after this season he planned to opt out of the $300 million, 10-year free agent deal he signed in 2019. With the $120 million he already has received, the new deal increases the free-spending Padres’ commitment to Machado to $470 million over 15 years.

Machado finished second in the NL MVP race last year after batting .298 with 32 home runs and 102 RBIs. He’ll anchor a superstar-laden lineup that includes Xander Bogaerts, Juan Soto and Fernando Tatis Jr., who can return on April 20 from an 80-game drug suspension.

Earlier in spring training, Machado said a deadline for negotiating a new deal had passed, but owner Peter Seidler has said that retaining the third baseman was his top priority.

The $350-million deal will be the fourth-largest contract behind Mike Trout ($426.5 million, 12 years), Mookie Betts ($365 million, 12 years) and Aaron Judge ($360 million, nine years).