As an amateur, Barriera played for USA Baseball twice, once on their 12U National Team and once on their 15U National Team in Playa del Carmen, Mexico, where he helped lead Team USA to a Gold Medal.[4][5] He attended American Heritage School in Plantation, Florida.[6] In 2019, he committed to play college baseball at Vanderbilt University.[7] Barriera pitched only 16 innings as a junior in 2021, but did not surrender a run while striking out 26 batters.[8] That summer, he played in the High School All-American Game at Coors Field.[9] Barriera entered his senior season in 2022 as a top prospect for the upcoming draft.[10][11] He ended his season in mid-April after starting eight games, going 5-0 with a 2.27 ERA and 68 strikeouts over 37 innings.[12][13][14] Barriera chose to end his season early in order to avoid injury and to prepare for the draft.[15] In June, he traveled to San Diego where he participated in the Draft Combine.[16]
Barriera made his professional debut in 2023 with the Dunedin Blue Jays and also played for the Florida Complex League Blue Jays.[20] Barriera started seven games and went 0-2 with a 3.98 ERA and 25 strikeouts, missing time during the season due to elbow and bicep injuries.[21]
Barriera made one start for Dunedin in 2024, allowing two runs on two hits in 1+1⁄3 innings pitched. On April 29, 2024, Barriera underwent a hybrid Tommy John and internal brace procedure, ending his season.[22]