The official way to use copyrighted music on YouTube is through YouTube Studio > Audio library. The audio library includes free music and sound effects, some of which don't even require attribution.
For aspiring video content creators, YouTube is arguably one of the best avenues for you to share your work and gain an audience. However, uploading footage is only the first step of the process. Like ...