CS FundamentalsVery hardProduct-company microservices interview
An Orders service consumes a Pricing service's API. The teams want to catch breaking API changes before deployment without spinning up both services in a full end-to-end environment. Which technique fits best?
- A. Smoke testing in production
- B. Load testing the Pricing service
- C. Manual exploratory testing
- D. Consumer-driven contract testing: the consumer's expectations are recorded as a contract and verified against the provider in its own pipeline
Correct answer: D. Consumer-driven contract testing: the consumer's expectations are recorded as a contract and verified against the provider in its own pipeline
Contract tests check that the provider still satisfies what each consumer actually uses, in isolation and quickly. They catch breaking changes that unit tests miss without the cost and flakiness of full end-to-end tests.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Match each test double. P: an in-memory database used instead of PostgreSQL. Q: an object that returns a canned exchange rate of 83.0…
- Instead of hand-picking examples, a developer states that for any list xs, sorted(sorted(xs)) == sorted(xs) and len(sorted(xs)) ==…
- A password must be 8-16 characters long and contain at least one digit. Using weak equivalence partitioning, where all valid classes can…
- A web form has exactly two parameters: browser (Chrome, Firefox, Safari) and OS (Windows, macOS, Linux). How many tests does all-pairs…
- A team has run the same 300 regression tests every release for two years. They now find almost no bugs, yet customers report new ones in…
- A product passes every test and has almost no defects, yet users reject it because it does not solve their actual workflow. Which testing…