Cook the spaghetti according to package instructions until al dente.
In a large skillet, cook the pancetta over medium heat until crispy.
Add the minced garlic and cook for 30 seconds until fragrant.
Add the shrimp to the skillet, cooking until pink and opaque.
Whisk together the egg yolks and Pecorino Romano cheese in a bowl.
Once the pasta is cooked, reserve some pasta water and drain the rest.
Add the drained spaghetti to the skillet with the shrimp and pancetta.
Remove the skillet from heat and swiftly mix in the egg and cheese mixture.
If the sauce is too thick, add reserved pasta water a little at a time.
Season with black pepper and toss with parsley before serving.