It'll work. The other operational detail to remember is that, six runways or not, half the traffic is going through the Polderbaan (36L for departures, 18R for arrivals), the runway conveniently located in the nearest province adjoining the one where Schiphol is located. That means that either arriving or departing traffic will have a natural, built-in 20-min delay. So the schedules are padded, and a 40-min connection won't be a greater problem than a 90-min one.
Do note, when I transited AMS ten days ago, I had a 90-minute connection, missed it, and was rebooked on the third and last possible flight to leave AMS for my destination (and it was the only interline connection), five hours later. I was intrigued by the EC 261 food credit -- KLM let me request it from the app, and it said I'd get the credit on the BP, but it wouldn't issue the BP, because it was interline. Weird. Not a big deal, because it's not like you'd choose to eat in AMS.