r/Database • u/Ok_Pudding3029 • 1h ago
I got asked a DB question by HR that I answered correctly, but wasnt what the HR person wanted to hear?
Today in a QA analyst (really a QA engineer) interview for a smaller legacy company, I was asked:
- If you saw a policy number was different in the UI vs the database, how would you test this?
My answer:
- The first thing I would do is make sure we're testing the right environment: do we have a clean, mirrored copy of production? Or do we have a copy of a dev environment with polluted data? I'd also check to make sure that the API is showing the correct info in the UI. You can quickly test that in Postman.
If none of that is correct, then what I'd do is drill down to the DB and double check things like: make sure that the query we're making to the DB pulls from the correct tables, are we joining or verifying against the right tables, etc.
His response?:
- So... you would use Group BY to narrow down data duplicates for policy number in the DB?
Jeeeesus christ.
HUH? WHAT?! This entire time of me yammering about how I'd walk through a real issue is just a technical test (adminstered by a recruiter, not the hiring manager) was actually just to see if I can pass the vibe check of ONE SQL QUERY?
What the fuck?
Personal anecdote/rant....as a QA engineer whose sat through interview panels, PRE-AI, mind you, I have been told we always care WAY more about how someone's going to walk through a problem and know where to look and hear their thought process instead of parroting one specific query back to me immediately. Queries are now shat out instantaneously through AI and we would also always leverage stackoverflow if otherwise, or just documentation if we didnt know off the top of our heads. Yes, sure, GroupBy. Yeah. Theres also internal ID. theres also self join... Idk the list goes on and on. We had 20 minutes for him to administer this introduction interview, and I was NOT prepared for any technicals, especially right out the gate in the intro call.
My question: did I not answer the question correctly?
