The AA interview question

How you would handle / detect DOS attacks when you design an endpoint ?