How can you ensure consistent deployment results and minimize costs for a .NET legacy application across environments in a CI/CD pipeline, without using containers, while accounting for external dependencies and hosting environment variations? | Google Professional Cloud Developer Quiz - LeetQuiz