prepare

You need to process a task that may take several seconds. Explain when you would keep the request synchronous and when you would make it asynchronous.

Beginner interview check

Answer it before reading the sample answer

This is the beginner version of the interview experience: check your fundamentals, then read the real-world answer below.

Select one

Time limit: 2:00

1 / 1

2:00

You need to process a task that may take several seconds. Explain when you would keep the request synchronous and when you would make it asynchronous.

Explanation

Hint: Identify the requirement first, then choose the approach that addresses the main constraints, trade-offs, failure modes, security, cost, and verification.

Correct answer: Clarify user experience and latency expectations; Consider failure and retry behavior; Explain decoupling and queueing trade-offs; Consider operational complexity and cost; State how the client learns the final result

Key reasoning:

  • Clarify user experience and latency expectations
  • Consider failure and retry behavior
  • Explain decoupling and queueing trade-offs
  • Consider operational complexity and cost
  • State how the client learns the final result

Why the alternatives are weaker:

  • Jumping to a technology before clarifying the problem
  • Explaining the solution without the reasoning or trade-offs
  • Omitting verification, failure handling, or prevention

What the interviewer is testing

  • Requirements and constraints
  • Architecture and trade-offs
  • Reliability, security, cost, and operations

What a Strong Answer Should Cover

  • Clarify user experience and latency expectations
  • Consider failure and retry behavior
  • Explain decoupling and queueing trade-offs
  • Consider operational complexity and cost
  • State how the client learns the final result

Common Mistakes

  • Jumping to a technology before clarifying the problem
  • Explaining the solution without the reasoning or trade-offs
  • Omitting verification, failure handling, or prevention

Interviewer Follow-ups

  • What requirement would make your decision change?
  • How would you handle retries or partial failure?
  • What would you measure after launch?

Real-World Sample Answer

A strong real-world response should connect requirements to engineering decisions, explain why the chosen approach fits the constraints, and make failure, security, cost, observability, and verification explicit.

Learning checkpoint

Mark this guide complete to include it in your local Engineering Journey.

Knowledge path

Connected concepts

Explore the knowledge graph

WATCH WITH THIS TOPIC