Resolver interview question

How do you automate database and api testing?