Asthma attacks can be prevented by following an asthma management plan, avoiding triggers, taking prescribed medications as directed, and maintaining a healthy lifestyle.