To Duck or not to Duck 8.7.23

We are taught to wait until the third trick to take our ace in notrump. On this hand, where we are fairly confident East has the king of diamonds, should we play the queen from dummy? Should we then wait to take our ace?