If this is some kind of test question - well, good luck!
As far as the "real world":
a) you can (and should) be able to develop the application independent of the actual database server. It's common to use a "mock server" for scenarios like this.
b) Once you're ready to deploy, it makes sense to do things in the following order:
1) install, configure and verify OS and patches
2) install, configure and verify the database
3) install, configure and verify the application