Skip to content
Tech Interview Prep

Real Interview Questions for the Cloud Engineer at Xero

New

Practice MCQs

Answers count toward the Cloud Engineer and overall leaderboards; your latest answer to each question is the one that counts.

10 questions · Flow follows Relevance until this set has a learning order.

MCQ-1A React 18 panel calls `useUser(id)` inside `if (id)` and renders a spinner otherwise. When `id` changes from a value to null, React throws a hooks order error and the panel unmounts. What change fixes the panel?
Difficulty: Medium
MCQ-2A .NET 8 orders API injects `OrderService` into both the controller and a scoped validator in the same request. The service keeps processed IDs in an instance field both consumers must share, and its repository wraps a scoped `DbContext`. It is registered as a singleton and IDs leak between concurrent users. What registration change fixes this?
Difficulty: Medium
MCQ-3A payments service has 1200 unit tests running in 3 minutes, 40 browser end-to-end tests taking 38 minutes with a 9% flake rate, and no integration tests for its queue or database contracts. Releases are blocked twice a week by flaky browser flows while queue schema breaks reach production. Which rebalancing best fits?
Difficulty: Medium
MCQ-4A `DELETE /invoices/{id}` endpoint waits for a downstream purge that takes about 8 seconds, but the gateway times out at 5 seconds and clients retry the same DELETE without supplying an idempotency key. The team must return immediately, keep retries safe, and never report deletion before it is confirmed. How should the endpoint respond?
Difficulty: Hard
MCQ-5A booking service receives `[[1,10],[2,3],[4,5]]` and merges each interval only against the last merged interval, returning intervals sorted by start. Which ordering guarantees a correct merged result?
Difficulty: Easy
MCQ-6A service hashes `user_id` across 16 shards at 30000 rps. One tenant generates 45% of traffic, leaving its shard at 98% CPU while others sit near 30%. What partitioning change relieves the hot shard?
Difficulty: Medium
MCQ-7During a migration outage, an engineer and teammate argue in the incident channel over whether the vendor or the Terraform change caused it. Vendor logs show the region stayed healthy, the teammate approved the plan without reviewing the state diff, and the engineer applied that diff at 14:02. What should the engineer publish before tomorrow's retrospective?
Difficulty: Medium
MCQ-8A cloud engineer who migrated small businesses from on-premises accounting to cloud infrastructure reaches Xero's final interview, where the panel asks why Xero specifically. Which answer best connects that background to Xero's work?
Difficulty: Easy
MCQ-9A billing service reports 94% line coverage, but its duplicate-charge retry branch has never run in tests and most tests assert only HTTP status codes. A new engineer proposes raising overall coverage to 98% by adding tests for getters and DTO mapping. Which priority best fits the risk?
Difficulty: Easy
MCQ-10A three-person payment team must survive a single availability-zone failure with nobody on call overnight. Jobs take up to four minutes, per-account ordering is required, duplicates double-charge customers, replay is needed for seven days, and card data requires a customer-managed encryption key. Which queue configuration fits?
Difficulty: Medium

Curated: · Written: · Reviewed: