All quizzesHard
Microservices Patterns
Preview — 3 of 10 questions
A gateway validates user tokens before forwarding requests. An orders service receives a request for order 42. What must still be enforced?
AResource-level authorization for the requested order.
BAssume every authenticated caller owns every order.
CSkip authorization on requests that passed TLS validation.
DUse the caller's IP address as proof of ownership.
Instances register in a discovery system. One crashes without deregistering. What prevents callers from using its address indefinitely?
AA unique instance hostname with no health state.
BExpiring leases or health-based removal, with bounded client caching.
CA permanently cached address list created at deployment.
DOnly a graceful-shutdown deregistration hook.
A dependency repeatedly times out and its circuit opens. How can the caller later determine whether to resume normal traffic?
AAllow a bounded number of probe calls in a half-open state.
BResume all queued calls simultaneously after a fixed delay.
CKeep the circuit open until the application is redeployed.
DIgnore timeouts after opening because failures are already recorded.
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.