Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit 51a5fb5 · 15 days ago

Grade Interviews, Part 5: Analyst and QA — Requirements, SQL, Metrics, and Test Design

🌐 Machine-translated from Russian. Show original

Different roles are hidden under "analyst" in vacancies. Clarify in advance what it means:

RoleMain Points in the WorkWhat is checked in interviews
Business analystbusiness processes and needsidentifying requirements, modeling processes, communication,
System Analystas requirements become a systemspecifications, integrations, APIs, data models, SQL,
Data Analystanswers business questions aboutSQL data, statistics, metrics, visualization, Python,

Designations: J — junior, M — middle, S — senior.

In this part:

Business and systems analyst#

J. How do functional requirements differ from non-functional ones?#

Functional — what the system does: "the user can export the report to Excel." Non-functional — with what quality: performance ("the report takes no longer than 10 seconds"), security, availability, convenience, data storage requirements. A typical mistake is forgetting non-functional ones, only to find out the system "works, but not like that."

J. How to write a good user story?#

Template: "As a , I want so that " — plus acceptance criteria. For example:

As an accountant, I want to upload the bank statement from the file so I don't have to enter payments manually.
Criteria: our bank statement format is supported; duplicates are not reloaded; unrecognized payments are shown as a list for manual processing.

Acceptance criteria are conveniently written in the format Given / When / Then — they can then be easily turned into tests.

J/M. How do you identify requirements if the customer doesn't know what they want?#

Interviews with various participants in the process (not only with the supervisor but also with those who do the work manually), observation of the work, analysis of documents and current systems, prototypes and mock-ups, workshops. The key is to identify the problem and goal, not to write down the proposed solution. The question "why?" is asked several times.

M. What notations do you use and when?#

  • BPMN — business processes with participants and branches.
  • UML Sequence — system interaction over time (integrations, APIs).
  • UML Use Case / Activity, ER diagrams — scenarios and data models.
  • C4 — architecture at different levels of detail.

Good answer: notation is chosen for the audience. For businesses — simple BPMN, for developers — sequence and API description.

M. How to describe the integration of two systems?#

Who is the initiator, synchronous or asynchronous, format (JSON, XML), protocol (REST, SOAP, queue, files), message structure, field obligation, error codes, failure repetitions, idempotency, security (authentication, encryption), volume and frequency, monitoring. An advantage will be the specification in OpenAPI format.

S. The demands of the two managers contradict each other. What will you do?#

Do not choose "whose side," but: gather both positions and their reasons, show the impact on the business (money, timelines, risks), propose options, and make a decision to whoever has the right to make it (general manager, product owner). Record the decision in writing.

Data Analyst#

J. Mean or median?#

The average is sensitive to emissions: if 9 people receive 400,000 and one receives 10 million, the average will show almost 1.4 million, although most receive 400,000. The median (the value in the middle of the ordered series) in this case reflects the typical value better. For salaries, checks, and response times, the median and percentiles are usually considered.

J/M. SQL: conversion from registration to first purchase by month#

Tables users(id, registered_at) and orders(id, user_id, created_at, amount).

WITH first_order AS (
    SELECT user_id, MIN(created_at) AS first_at
    FROM orders
    GROUP BY user_id
)
SELECT
    date_trunc('month', u.registered_at) AS cohort,
    COUNT(*) AS registered,
    COUNT(f.user_id) FILTER (WHERE f.first_at < u.registered_at + interval '30 days') AS bought_30d,
    ROUND(100.0 * COUNT(f.user_id) FILTER (WHERE f.first_at < u.registered_at + interval '30 days') / COUNT(*), 1) AS conv_pct
FROM users u
LEFT JOIN first_order f ON f.user_id = u.id
GROUP BY 1
ORDER BY 1;

What they're looking at: the right LEFT JOIN (otherwise we'll lose those who didn't buy), a 30-day window for honest comparison of months, understanding that the last month is not yet "ripe."

M. Window functions: cumulative revenue and change from last month#

WITH monthly AS (
    SELECT date_trunc('month', created_at) AS m, SUM(amount) AS revenue
    FROM orders
    GROUP BY 1
)
SELECT
    m,
    revenue,
    SUM(revenue) OVER (ORDER BY m) AS running_total,
    ROUND(100.0 * (revenue - LAG(revenue) OVER (ORDER BY m)) / NULLIF(LAG(revenue) OVER (ORDER BY m), 0), 1) AS mom_pct
FROM monthly
ORDER BY m;

NULLIF protects against division by zero — a small detail that is noticed.

M. How to conduct an A/B test?#

  1. Hypothesis and one main metric in advance (for example, conversion to purchase).
  2. Calculation of sample size before launch: from base conversion, minimum effect important to notice, significance level, and power.
  3. Random distribution of users, checking that groups are comparable.
  4. Not stopping the test "as soon as it becomes significant" — this exaggerates the number of false findings. Hold a predetermined deadline, covering full weeks.
  5. Interpretation: p-value is the probability of seeing such or large difference if there is actually no effect. This is not the "probability that the hypothesis is true."

M/S. Revenue fell by 15%. Your actions?#

Response structure: check the data (whether collection has broken, if there is a download delay) → compare with past periods and seasonality → break down the metric: revenue = users × conversion × average check → find which multiplier has dropped → segment (channels, regions, platforms, new and old customers) → look for events (releases, payment failures, competitor promotions) → formulate conclusions and what to check next.

Tester (QA)#

J. What test design techniques do you know?#

  • Equivalence classes — values to which the system responds identically are checked by a single representative.
  • Boundary values are most often errors at boundaries: for the "age 18–65" field, check 17, 18, 65, 66.
  • Decision table — combinations of conditions and expected outcomes.
  • Pairwise testing reduces the number of parameter combinations.
  • State transitions — for objects with statuses (order: created → paid → shipped, → canceled).

J. Severity and priority — what's the difference?#

Severity — how much the defect affects the system. Priority — how to urgently fix it from a business perspective. Classic examples: a typo in the company name on the main page — low severity, high priority. Failure of a rare report used once a year — high severity, priority may be low.

J. What should be included in the bug report?#

A brief clear title, environment (version, browser, stand), playback steps, expected and actual result, seriousness, attachments (screenshot, video, logs, API request and response). A good bug report is reproduced by another person without questions for the author.

J. Test the login form#

The classic task is to show systematicity, not to list 50 random checks:

  • Positives: correct login and password; Enter login; "remember me."
  • Negatives: incorrect password, non-existent login, empty fields, spaces at the beginning and end, very long values.
  • Security: password hidden, transmitted only over HTTPS, error message does not reveal whether login exists, lock, or delay after a series of failed attempts, protection against SQL injections and XSS in fields.
  • Convenience and accessibility: keyboard use, password manager auto-fill, clear messages, mobile version.
  • Session: exit, session expiration, login in two browsers.

M. Testing pyramid#

At the bottom — many quick unit tests, in the middle — integration and API tests, at the top — slightly slow E2E through the interface. Inverted pyramid (all through UI) — slow, unstable, and expensive to maintain. A good middle answer — with an example of which checks you moved from the UI to the API level.

M. What should be automated first?#

Regression, which often repeats; critical business scenarios (payment, checkout); API checks; smoke tests after each deployment. It is not advisable to automate an unstable, frequently changing interface and one-time checks.

M. How to test the API?#

Verification of response codes, structure and types of fields (according to OpenAPI scheme), boundary and incorrect data, authorization and privileges (external data is unavailable), idempotency, pagination and filters, behavior in case of dependency errors. Tools — Postman, curl, autotests on pytest or analogs.

S. How to organize the testing process in a team where there is none?#

Start with risks: what harms the business the most in case of failure. Then — smoke kit and regression for critical scenarios, test benches and data, task readiness criteria, auto-tests in CI with quick checks for each commit, metrics (defects found during production, regression time). And the agreement that quality is the responsibility of the team, not just one tester.

Details — series "QA and Autotests: From Test Design to CI." Product Analytics and Metrics — series "Product and UX: Research, Prioritization, Metrics."

Final part — behavioral questions, live coding, test assignments, and salary: Grad interviews, part 6: behavioral questions on STAR, live coding, test assignments, and salary negotiations.

Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.