All jobs / Automation developer / Framework Design
Automation developer interview question · 0–1 years
A spec file contains a staging password. What do you do?
The strongest answer
Rotate it, pull it from the secret store or CI variables, and treat the commit as a leak — I do not leave it “because staging is not prod”
Why it works
Exactly. Staging creds open staging data. Rotate and store them properly.
What a good answer covers
- Rotate the leaked secret.
- Load secrets from CI / a vault.
- Staging is not “fake enough.”
- Do not encode and call it safe.
Answers that fall short
- Close, but not the strongest: Leave it; staging is fake
Staging is still a system with customer-shaped data. - Weak: Base64 it so scanners miss it
Encoding is not a secret. - Red flag: Put it in a comment “do not share”
A comment is not a control.
Who gets asked this
More Framework Design questions
- What is Given / When / Then for in an automation suite?
- Where do base URLs, users, and feature flags for tests live?
- A teammate wants the suite’s test data in a spreadsheet so “anyone can add a case”, starting with 400 rows…
- Three squads share checkout steps and each forked a page object. What do you introduce?
- Your framework offers per-test, per-file and per-run fixtures. Setting up a tenant takes thirty seconds…
- A feature flag is off in staging and on in the PR preview. How do tests cope?
- Six squads share your framework, and every triage starts with somebody rerunning the test locally with extra…
- What does a test-platform team ship?