How to Choose the Right Scale for Any Chord
The fastest way to choose a scale is to look at the notes inside the chord. If the scale contains the important chord tones, your solo will sound connected to the music instead of like random scale practice.
For most guitar players, the best starting point is simple: major chords usually like major pentatonic, minor chords usually like minor pentatonic, and dominant 7 chords usually like mixolydian or blues-based ideas.
The goal is not to memorize every possible theory rule at once. Start with the safest sound, then add more color as your ears get stronger.