🔥 3-day streak
Microsoft DevOps Engineer Expert81 / 138
Question 81 of 138

Your team maintains 12 microservice repositories that each use an Azure DevOps YAML pipeline. Every pipeline duplicates the same 60 lines of build, test, and container-push logic. You want to centralize this logic so a single change updates all pipelines, while allowing each repo to pass its own service name and target registry. You also need to prevent a consuming pipeline from injecting arbitrary shell commands into the shared logic through the values it passes. Which approach best meets these requirements?

Reviewed for accuracy · Report an issueNext question