Bird
0
0

If Service A depends on Service B, but both have independent pipelines, what is a common way to ensure compatibility during deployment?

medium📝 Analysis Q5 of 15
Microservices - CI/CD for Microservices
If Service A depends on Service B, but both have independent pipelines, what is a common way to ensure compatibility during deployment?
ADeploy Service A only after Service B's pipeline succeeds
BUse versioned APIs and backward compatibility checks
CMerge both services into a single pipeline
DDisable Service A until Service B is fully deployed
Step-by-Step Solution
Solution:
  1. Step 1: Understand dependency management

    Independent pipelines require managing interface compatibility to avoid deployment order constraints.
  2. Step 2: Identify best practice

    Versioned APIs and backward compatibility allow services to deploy independently without breaking dependencies.
  3. Final Answer:

    Use versioned APIs and backward compatibility checks -> Option B
  4. Quick Check:

    Versioned APIs enable independent deploys [OK]
Quick Trick: Version APIs to keep services compatible [OK]
Common Mistakes:
  • Assuming deployment order must be strict
  • Merging pipelines reduces independence
  • Disabling services causes downtime

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes