Preheat your oven to 400°F. Line a baking sheet with aluminum foil for easy cleanup and place a wire rack on top.
In a large bowl, combine the olive oil, garlic powder, onion powder, smoked paprika, salt, black pepper, and cayenne pepper (if using). Mix well to create a marinade.
Add the chicken pieces to the bowl and toss them in the marinade until they are evenly coated.
Place the marinated chicken pieces skin-side up on the wire rack. Bake in the preheated oven for 30 minutes.
After 30 minutes, remove the chicken from the oven and brush a generous amount of barbecue sauce on each piece.
Return the chicken to the oven and bake for an additional 15-20 minutes, or until the internal temperature reaches 165°F and the skin is crispy.
Remove the chicken from the oven and let it rest for 5 minutes before serving. Drizzle with extra barbecue sauce if desired.