codejump

Microservices Patterns — Series 3

Preview — 3 of 10 questions

A provider change passes its own unit tests but removes a field used by another service. Which check most directly catches this integration risk before release?

ACheck the provider against consumer contracts.
BValidate all responses against a schema generated only from the new provider.
CRun the consumer's tests against an unchanged local provider stub.
DTest only that the provider returns a successful HTTP status.

A team mirrors production requests to a candidate service to compare behavior. Some requests charge cards. What must the shadow path do?

ASuppress or isolate external effects while comparing behavior.
BRetry both copies until their transaction counts match.
CUse real payment credentials to match production exactly.
DReturn the faster response from either copy to the user.

Two services perform 15 sequential RPCs with each other to complete one tightly coupled business operation. Which investigation is most useful first?

AAdd an API gateway hop between every existing call.
BSplit each service into smaller independently deployed services.
CRevisit the boundary and consider a coarser operation.
DGive each RPC a longer timeout without changing the flow.

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.