Estimation and Scheduling Questions
Estimating effort and building realistic schedules: estimation techniques, task sequencing, critical-path analysis, timeline development, and dependency mapping. Covers handling estimation uncertainty, schedule compression, and defending a timeline against optimism bias.
For a CI/CD pipeline that must support safe gradual rollouts, design automated tests and gating strategies (unit, integration, smoke, canary validation). Explain how to tie feature flags and automated monitoring into the pipeline to enable safe progressive exposure and automated aborts.
Sample Answer
Approach summary: build a staged pipeline with progressive gates (unit → integration → staging smoke → canary rollout) plus feature-flag driven exposure and automated health checks that can abort and roll back.
Pipeline stages and gating:
- Unit tests (fast): run on PR; fail fast. Gate: must pass and meet coverage threshold.
- Integration tests: run in ephemeral environment (DB, mocks); gate: green before merging to main.
- Staging smoke (end-to-end sanity): deploy to staging; run critical-path smoke tests and API contract tests; gate: pass within SLA (response times).
- Canary rollout: deploy new version to small percentage (e.g., 1-5%) of prod traffic controlled by feature flags or traffic routing. Run extended validation for N minutes.
Automated canary validation:
- Define SLO-based canary checks: error rate, latency P95/P99, key business metrics (checkout success, signups).
- Use thresholds and statistical tests (e.g., Bayesian or sequential hypothesis testing) to detect regressions vs baseline with confidence intervals.
- If any metric breaches thresholds or statistical test signals degradation, automatically pause rollout and trigger rollback.
Feature flags integration:
- Deploy code behind feature flags defaulted off. Use targeting rules to release progressively: 1% internal → 5% beta users → 50% → 100%.
- Flags stored in a central service (with SDKs) and toggled via API as part of pipeline or monitoring automation.
Monitoring & automated aborts:
- Push canary metrics to monitoring/observability (Prometheus, Datadog, New Relic). A canary analysis service (e.g., Kayenta, Flagger) evaluates metrics against baseline.
- Pipeline orchestration listens for canary verdicts through webhooks: on PASS continue rollout; on FAIL trigger:
- toggle feature flag off OR
- shift traffic back to stable version and mark rollout failed
- create incident, attach logs and diffs, notify on-call via Slack/PagerDuty.
Best practices:
- Keep canary window long enough for meaningful user journeys; include synthetic and real-user metrics.
- Use kill-switch feature flags for immediate aborts.
- Automate post-mortem collection (traces, logs, diffs) to speed debugging.
- Run chaos injections in staging to validate abort paths.
Explain how story points and t-shirt sizing differ as estimation techniques. Provide an example scenario where each is more appropriate, and list three common pitfalls engineers should avoid when using story points.
Sample Answer
Story points and t-shirt sizing are both relative-estimation techniques, but they differ in granularity and purpose.
Differences:
- Story points: numeric (often Fibonacci-like) combining complexity, effort, and risk into a single relative measure. Good for velocity tracking and forecasting.
- T-shirt sizing: categorical (XS, S, M, L, XL) for quick, coarse-grained classification. Easier for high-level prioritization and stakeholder conversations.
When to use each (examples):
- Story points — appropriate during sprint planning for implementation-level backlog refinement. Example: estimating a new API endpoint that touches auth, DB migrations, and caching; the team assigns 8 story points because of integration complexity and unknowns.
- T-shirt sizing — appropriate during early product discovery or roadmap planning when many ideas need rapid triage. Example: ranking 50 feature requests by expected effort: most are M, a small refactor is S, a major rearchitecture is XL.
Three common pitfalls to avoid with story points:
- Using points as performance metrics (don’t tie pay/individual KPIs to points).
- Mixing absolute time and points (avoid “1 point = 1 day” thinking; keep points relative).
- Over-precision and re-estimating constantly (don’t try to make points exact; focus on relative consistency and calibration across the team).
Best practice: pick one technique per planning horizon, keep estimations team-owned, and revisit calibration after a few sprints.
Design a communication cadence and artifacts for a three-month implementation that uses two-week sprints, multiple delivery teams, and external stakeholders (support and sales). Specify meeting types, frequency, attendees, and sample agenda items for each cadence (daily, weekly, bi-weekly, monthly), plus the passive artifacts you would publish.
Sample Answer
Situation: We're running a three-month delivery using 2-week sprints, multiple delivery teams, and external stakeholders (support, sales). Below is a concise, practical communication cadence and artifacts plan aimed at keeping engineers productive and stakeholders informed.
Daily
- Meeting: Daily Stand-up
- Frequency: Daily, 15 minutes
- Attendees: Delivery team members, Scrum Master, optional rotating rep from other teams
- Agenda: What I did yesterday, what I’ll do today, blockers (call out cross-team or external dependency)
Weekly
- Meeting A: Technical Sync / Cross-team Engineering Huddle
- Frequency: Weekly, 30–45 minutes
- Attendees: Tech leads/engineering reps from each team, architects, QA lead
- Agenda: Integration risks, API contracts, shared infra, upcoming merge windows, mitigation actions
- Meeting B: Support & Ops Triage
- Frequency: Weekly, 30 minutes
- Attendees: Support rep, SRE/ops, release manager, one engineer
- Agenda: Open incidents, known issues, hotfix schedule, rollout readiness
Bi-weekly (every sprint)
- Meeting: Sprint Planning
- Frequency: Every 2 weeks, 1–2 hours
- Attendees: Full delivery teams, Product Manager, Scrum Master
- Agenda: Prioritize backlog, define sprint goals, agree on stories and acceptance criteria
- Meeting: Sprint Review / Demo
- Frequency: Every 2 weeks, 60 minutes
- Attendees: Delivery teams, Product, Sales, Support, Stakeholders
- Agenda: Demo completed features, gather feedback, alignment on release timing
- Meeting: Sprint Retrospective
- Frequency: Every 2 weeks, 45–60 minutes
- Attendees: Delivery team, Scrum Master
- Agenda: What went well, what to improve, action items owners
Monthly
- Meeting: Steering / Stakeholder Review
- Frequency: Monthly, 60 minutes
- Attendees: Product leadership, Engineering leadership, Sales lead, Support lead, Program Manager
- Agenda: Progress vs roadmap, risks & escalations, release milestones, commercial impact
- Meeting: Release Readiness (as needed close to release)
- Frequency: Monthly or ad-hoc in final sprint week
- Attendees: Release manager, QA, SRE, Support, Sales enablement
- Agenda: Rollout plan, rollback plan, support playbooks, customer communication
Passive artifacts to publish (always accessible)
- Sprint board (Jira/Tickets): stories, statuses, owners
- Sprint goal & commitment doc: sprint scope and acceptance criteria
- Release notes & change log: consumer-facing and technical sections
- Runbook / Support playbook: troubleshooting steps, escalation paths
- Integration contract docs / API spec: versioning and changelog
- Risk & action tracker: owners and due dates
- Weekly status one-pager: progress, blockers, upcoming work (shared to stakeholders)
- Meeting minutes and decisions log: decisions, owners, deadlines (consolidated in a wiki)
- CI/CD pipeline status & deployment calendar: visible to all teams
Rationale: Short daily check-ins keep engineers focused; weekly technical syncs prevent integration surprises; bi-weekly sprint ceremonies align delivery with product and external stakeholders; monthly steering ensures business alignment. Passive artifacts reduce meeting load and provide asynchronous transparency for sales/support.
Design a robust rollback and contingency plan for a data migration that could irreversibly affect financial records if corrupted. Cover isolation strategies, immutable backups, verification checkpoints, automated rollback triggers, manual overrides, and legal/compliance notification procedures.
Sample Answer
Requirements & constraints:
- Zero-tolerance for silent corruption of financial records; ability to restore to last-consistent state within defined RTO/RPO (e.g., RTO 2 hours, RPO 15 minutes).
- Migration may touch ledgers, balances, transactional history; regulatory auditability and immutable retention required.
High-level approach:
- Execute migration in isolated environments, maintain immutable backups, verify via checkpoints, enable automated rollback on failure, and include clear manual override & compliance notification flows.
Architecture & isolation:
- Staging pipeline: run migration on a full-production snapshot in a staging cluster identical to prod (schema, config, access controls). Use read-only masked data for dev; full-data staging for final rehearsals.
- Blue-green style for data: create a parallel "migrated" dataset namespace (db_migrated) while keeping production (db_live) untouched until final cutover.
- Access: migration uses least privilege service accounts; all operations logged (WORM logging).
Immutable backups:
- Before any write-to-production step, take point-in-time backups:
- Logical export + checksum (signed), AND
- Storage-level immutable snapshot (object storage with immutability/retention policy or block storage snapshot with snapshot lock).
- Maintain incremental WAL (write-ahead log) archives enabling point-in-time restore to any transaction.
Verification checkpoints:
- Define checkpoints with automated tests:
- Schema/constraint validation.
- Row-count and checksum comparisons (per-table, partition).
- Business invariants: sum of balances, reconciliation of debits/credits, foreign-key integrity.
- Synthetic transaction replay (end-to-end): replay representative transactions against migrated DB and compare outcomes.
- Each checkpoint produces an auditable report with signatures (hash + signer).
Automated rollback triggers:
- Orchestrator (workflow engine) runs migration steps and evaluates checkpoint results. Triggers rollback automatically if:
- Checkpoint mismatch beyond thresholds (e.g., >0.01% discrepancy or any violation of financial invariants).
- Runtime exceptions or timeout.
- Data integrity fails (checksum/signature mismatch).
- Rollback action sequence:
- Quarantine: stop write traffic to migrated namespace; redirect reads to db_live.
- Restore from most recent immutable snapshot or replay WAL to point before migration step.
- Run post-restore verification same as above.
- Rollback must be idempotent and documented as a canned playbook in the orchestration system.
Manual overrides & human-in-the-loop:
- Provide a protected UI/CLI for authorized SRE/DBA to:
- Pause/abort automated rollback (requires two-person approval).
- Approve partial acceptance (e.g., non-critical tables) with compensating checks.
- Initiate manual restore steps if automation fails.
- All manual actions require multi-factor auth and multi-signer approval; logged to audit trail with rationale.
Monitoring & observability:
- Real-time dashboards: checkpoint health, checksum diffs, transaction lag, error rates.
- Alerting integrated with incident channels and on-call rotation; severity mapped to SLAs.
Legal/compliance & notification:
- Pre-defined compliance checklist: data retention, encryption, access logs, and regulatory export formats.
- Notification workflow:
- Immediate internal notification to Legal, Compliance, Finance, and Execs on any integrity failure.
- Prepare templated external disclosures if required by regulation (e.g., material adverse event), with timelines aligned to jurisdictional requirements.
- Preserve chain-of-custody: sign and store all backup metadata, verification reports, and decision logs for audits.
- Post-incident: blameless postmortem, retention of immutable evidence, and remediation plan submitted to compliance.
Testing & rehearsals:
- Regular dry-runs on production snapshots; simulate failures and rollback scenarios.
- Maintain automated test-suite coverage for invariants and orchestrator logic.
- Run quarterly audit & tabletop exercises with Legal/Finance.
Trade-offs:
- Extra storage and longer lead time for full rehearsal snapshots vs. risk reduction.
- Automation reduces human error but requires rigorous tests and failsafes.
This plan ensures migration occurs in isolation, every change is recoverable via immutable backups, integrity is checked at defined gates, rollbacks are automated but controllable by humans, and compliance/legal teams are integrated into notifications and evidence retention.
You're asked to estimate work for the next two sprints but the team velocity is unknown (new team). Describe practical approaches to estimate: planning poker, t-shirt sizing, historical analogies, and how to bootstrap velocity for a new team. Explain how you would refine estimates after the first two sprints.
Sample Answer
When velocity is unknown for a new team, use lightweight, collaborative techniques to create useful, adjustable estimates and quickly bootstrap velocity.
Approaches
- Planning Poker: Have devs estimate stories with Fibonacci cards after discussion of acceptance criteria and risks. Use it to surface assumptions (hidden complexity, dependencies). Example: backend task estimated 8 by senior, 5 by junior — discussion reveals async retry logic so it becomes 8.
- T-shirt sizing: Fast, relative sizing (XS–XL) for a backlog sweep when precision isn’t needed. Good for high-level release planning and grouping similar-sized work.
- Historical analogies: If you’ve done similar features elsewhere, translate past story points or cycle times into the new team’s context, adjusting for team skill mix and unfamiliar codebase.
Bootstrapping velocity
- Pick a conservative baseline (e.g., assume 20–40% of available ideal hours converted to story points) or map a single reference story to 3 points and estimate others relatively.
- Time-box first sprint with smaller slices: include a mix of 1–3 point stories to ensure predictable throughput.
- Track actual completed points and cycle times; treat first sprint as learning, not contract.
Refinement after two sprints
- Use empirical data: calculate average completed points per sprint and median cycle time per story type.
- Recalibrate story-point sizing rules (what team considers a 1/3/8) via a short retro: adjust for estimation bias (over/under).
- Introduce confidence bands for commitments (e.g., commit to 70% of median velocity) and update sprint plan templates (mix of new work, tech debt, buffer).
- Continue using Planning Poker for shared understanding; retire high-level t-shirt sizes as team gains calibration.
This process balances speed and accuracy: start conservative, learn from real throughput, and quickly tighten forecasts.
Unlock Full Question Bank
Get access to all 49 Estimation and Scheduling interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.