All jobs / Automation developer / CI/CD
Automation developer interview question · 3–5 years
When do you keep Playwright traces?
The strongest answer
On failure always, and a sample of passes when you are hunting a flake — retention with a size cap, not every passing video forever
Why it works
Exactly. Failures need traces. Forever-all-passes is a cost and a privacy pile.
What a good answer covers
- Traces on fail.
- Sample passes while hunting.
- Cap retention; watch PII.
- Do not wait for a manager.
Answers that fall short
- Close, but not the strongest: Never; traces are PII
Traces can hold PII — redaction and retention, not a ban. - Weak: Always, forever, every pass
Infinite video is not a platform. - Red flag: Only when a manager asks
On-demand is how you miss the flake.
Who gets asked this
More CI/CD questions
- Who owns the test pipeline when it is red on main?
- You are writing the rule that decides whether a new test runs on every pull request or only nightly. What is…
- How do you treat the PR test job like a product?
- A thousand UI tests must finish in 15 minutes. What do you challenge first?
- The nightly suite has been red for three weeks. What do you do?
- Audit asks for “proof of testing.” What do you hand them?
- When should the automated pack run?
- What belongs in the smoke the pipeline must pass to ship?