A resistance mechanism only matters if it neutralizes a drug the bacterium actually meets, so the skill worth building is connecting each defense to the classes it defeats. Beta-lactamases and altered PBPs both take down beta-lactams, but from opposite ends. The enzyme hydrolyzes the beta-lactam ring, the strained four-membered amide ring that makes penicillins and cephalosporins reactive, so the opened drug can no longer acylate its target. PBP2a, the altered penicillin-binding protein, leaves the drug fully intact and lowers the target's affinity instead, so binding fails at the other end. One class, two mechanisms, for opposite reasons.
On the ribosome, two defenses hit the same machine but split apart at the drug classes. Aminoglycoside-modifying enzymes attach acetyl, phosphoryl, or adenyl groups to the drug, and that bulky tag blocks binding to the 30S subunit, so they defeat aminoglycosides. Erm methyltransferases add methyl groups to 23S rRNA right at the shared binding site, so macrolides, lincosamides, and streptogramin B can no longer occupy it, and those three classes are defeated instead. Same organelle, different binding sites, different classes. Gyrase and topoisomerase mutations are the narrow case: reshaping the drug's binding pocket reaches fluoroquinolones and nothing else.
Efflux pumps and porin loss are broad. A pump recognizes broad chemical features rather than one molecule, so a single transporter covers chemically unrelated classes, and porin loss lowers the intracellular concentration below the inhibitory threshold no matter which drug is coming through; when a cell loses porins and runs efflux together, the two effects multiply rather than simply add. Bypass enzymes and metabolite scavenging close the map on the far side: they leave sulfonamide and trimethoprim bound to their targets but supply the blocked folate product by another route. Two rules follow from the finished map. One drug class can be defeated by several mechanisms, as beta-lactams are by both an enzyme and an altered target, and one mechanism can cover several classes, as efflux does across four of them. Predicting resistance therefore takes two pieces of knowledge: what the drug attacks, and which defenses the bacterium carries.