This is too vague a question to get to the bottom of it, the answer isn't Always Code, or Always config, it REALLY depends on the context. Be more specific.
Well this is as specific as the book is, but feel free to focus on one of the examples only, like database brand. Would database vendor be a configuration option, even if you're using PostgreSQL everywhere?