QA Interview Hub · Knowledge base · Quizzes · Українська
All topics
Logs and observability interview questions
25 questions on Logs and observability, from the basics to the hard ones. Answers and explanations are in the quiz and the knowledge base.
By level: Junior QA interview questions · Middle QA interview questions · Senior QA interview questions
Logs for a QA
- Which log level fits the message "retrying the payment gateway call, attempt 2 of 3"? Junior
- Production runs at INFO level. A developer says they log a variable value at DEBUG, but it is not in the logs. Why? Junior
- Why are structured (JSON) logs better for automated analysis than free text? Middle
- In DevTools → Network the checkout request returned 500 and the UI showed "Something went wrong". Where is the cause most likely? Junior
- After an outage, a minute of a service's logs holds 40 ERROR entries. You are looking for the root cause. Which one should you read first? Middle
- Which of these is the least useful in a bug report for investigating with logs? Junior
Take the quiz for this chapter · Read the explanation in the knowledge base
Observability: logs, metrics, traces
- Which signal best answers "in which of five services did the request spend 3 seconds"? Middle
- What is the difference between metrics and logs? Junior
- What can you tell from the header below? Middle
traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
- What is the difference between head and tail sampling of traces? Senior
- Which alert is best for the checkout service? Middle
- A service SLO is 99.9% successful requests over 30 days. What is the error budget? Senior
Take the quiz for this chapter · Read the explanation in the knowledge base
Tools and queries
- What does this query do in Grafana Loki? Middle
{app="checkout", env="staging"} |= "error" != "healthcheck"
- Which KQL query in Kibana finds errors of the checkout service excluding messages with healthcheck? Middle
- A pod is stuck in CrashLoopBackOff and kubectl logs shows empty output. What should you try? Middle
kubectl logs pod/checkout-7d9f
- What will this command output for a file of JSON logs (one object per line)? Middle
jq -c 'select(.level=="error")' app.log
- What benefit does Sentry give a QA compared with searching raw logs? Middle
- How does Loki fundamentally differ from Elasticsearch in its approach to indexing? Senior
Take the quiz for this chapter · Read the explanation in the knowledge base
Logs in automation
- Which Playwright event catches unhandled JavaScript exceptions on the page? Middle
- A test subscribes to console errors only after page.goto(). What is the problem? Middle
await page.goto('/');
page.on('console', (m) => {
if (m.type() === 'error') errors.push(m.text());
});
- The team added a rule "a test fails on any console error" and the suite turned red because of a third-party analytics script. What is best? Senior
- Why does the CI step that uploads server logs have a !cancelled() (or always()) condition instead of running by default? Middle
- When is asserting on a log entry from an automated test justified, and when is it brittle? Senior
- Which of these must a developer NOT write to logs? Junior
- There are thousands of ERROR entries a day, most of them "user not found" on a wrong login. What should be done? Senior
Take the quiz for this chapter · Read the explanation in the knowledge base