Persistent Systems Interview Question

How did you ensure database connection in your project?(L1)