Your question is API Testing vs Web UI Automation. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
How do you approach API testing versus Web UI automation?
Explain how you would divide coverage between API tests and Web UI automation, including what each layer validates, how you handle test data and authentication, and how you keep the suite reliable. The interviewer is checking your understanding of test-layer boundaries, browser automation trade-offs, and practical regression strategy. Scope your answer to REST APIs and browser-based web testing, using tools such as Playwright or Selenium.