0
0
Microservicessystem_design~20 mins

Request-response vs event-driven in Microservices - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Master of Request-response vs Event-driven
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding communication styles in microservices

Which statement best describes the main difference between request-response and event-driven communication in microservices?

ABoth request-response and event-driven are synchronous communication styles.
BRequest-response is asynchronous and does not wait for a reply; event-driven is synchronous and waits for a reply.
CBoth request-response and event-driven require the sender to wait for a reply before continuing.
DRequest-response is synchronous and waits for a reply; event-driven is asynchronous and does not wait for a reply.
Attempts:
2 left
💡 Hint

Think about whether the sender waits for a response or not.

Architecture
intermediate
1:30remaining
Choosing communication style for a user login service

You are designing a user login microservice that must verify credentials and immediately respond with success or failure. Which communication style is most appropriate?

ARequest-response, because the client needs an immediate answer to proceed.
BEvent-driven, because it allows the login service to process requests asynchronously.
CEvent-driven, because it reduces the need for direct communication between services.
DRequest-response, because it queues login requests for later processing.
Attempts:
2 left
💡 Hint

Consider if the client needs an immediate answer or can wait.

scaling
advanced
2:00remaining
Scaling microservices with event-driven architecture

Which advantage does event-driven architecture provide when scaling microservices compared to request-response?

AIt allows services to process events independently and at their own pace, improving scalability.
BIt forces services to wait for responses, reducing load on downstream services.
CIt requires synchronous calls, which simplifies scaling by limiting concurrency.
DIt eliminates the need for message brokers, reducing infrastructure complexity.
Attempts:
2 left
💡 Hint

Think about how asynchronous processing affects load handling.

tradeoff
advanced
2:00remaining
Tradeoffs between request-response and event-driven communication

What is a common tradeoff when choosing event-driven communication over request-response in microservices?

ARequest-response communication is always slower than event-driven communication.
BEvent-driven communication guarantees immediate consistency and simpler error handling.
CEvent-driven communication can increase complexity due to eventual consistency and harder debugging.
DRequest-response communication eliminates the need for message brokers.
Attempts:
2 left
💡 Hint

Consider the challenges of asynchronous systems.

estimation
expert
2:30remaining
Estimating message volume in event-driven microservices

A microservice emits an event for every user action. If there are 10,000 users each performing 5 actions per minute, how many events per second does the system generate?

AApproximately 500 events per second
BApproximately 833 events per second
CApproximately 3,000 events per second
DApproximately 50,000 events per second
Attempts:
2 left
💡 Hint

Calculate total events per minute, then convert to per second.