Pharmacogenomics uses a patient's genetic profile to select optimal drug therapies and dosages. Gene polymorphisms like substitutions, deletions and insertions can affect drug efficacy and toxicity. Biomarkers can help predict cancer prognosis and treatment response. For example, EGFR mutations predict response to EGFR inhibitors in NSCLC, while BRAF mutations indicate response to BRAF inhibitors in melanoma. Resistance often develops from additional mutations that prevent drug binding. Combination therapies can overcome resistance by targeting alternate pathways.