I will hazard a couple guesses. These are based on this being one through ticket.
Lufthansa considers this a legal connection, so they believe it will work.
If your flight from Krakow is on time the distance between gates should not be a problem, as you are in A. You do need to get stamped out of Shengen, this should not take long, and you should be able to get Lufthansa personnel to fast-track you through to make your flight. The biggest issue is that your plane may not be at the gate but on the field, and thus there will be an early gate closing for everyone to be bused. If your incoming does not gate but gets bused, it is possible that your walk from the bus entrance, which is at the base of the angle for the two pieces of A(see a map) will make your walk to your gate shorter. If your incoming is going to be late, you will likely be met by Lufthansa personnel to help you.
If circumstances cause you to miss the Dubai flight, they will certainly take care of you. My guess would be that they would fly you to Munich to make the evening flight to Dubai from there, there is plenty of time for that.
Your luggage should get transferred if everything is timely, they know they have to get it to that next flight.
Should it not make it, they will certainly send ti the next day and get it to you in Dubai.
Do not plan on stopping fore food or the bathroom, even if on time. Your Dubai flight is a 747, boarding will likely start 45 minutes before scheduled departure.You can always got to the bathroom at the gate if there is time.
From our own experience we recently flew Philadelphia to Istanbul via Frankfurt. Our plane out of Philly was badly delayed due to mechanical problems that had to be fixed before it flew to Philly from FRA. We landed 25 minutes from our departure, and who knows how other people were affected. We saw the Lufthansa staff being all kinds of helpful, before we landed and on the ground, to get people to rescheduled connections or help them make their current connection.