I have a flight from New York to Ankara via Munich. My flight to Ankara is just 30 minutes after the arrival of my first flight. Both flights are in Terminal 2. Is there a problem for such situations in Munich airport? I checked the map of the airport. There are 2 different Terminal 2 buildings. What's the difference?
There is probably only one airport in the world where you can do a 30 minute international -> international transfer - and that's Munich! The airport has a "minimum connection time" (MCT) of 30 minutes for certain cases, and has a number of things in place to make such a connection possible.
However as is always the case with minimum connection times, that doesn't mean that you will make your flight, it just means that it's possible on a good day. If your inbound flight is late, then your odds of making your connection very quickly go from good to zero.
In general, the best way to look at connections like this is to consider what happens if you do NOT make the connection. Depending on the day, there appears to be one or at most two flights from Munich to Ankara per day - so if you do miss your connection, then you will have a delay of up to 24 hours.
Personally, given how few options there are to Ankara, I would never book such a connection unless you're willing to be delayed by up to a day. The odds you'll make it are good, but the impact if you don't would rule it out for me.