Question 330
A slot swap causes production errors and operations need to return to the prior build. What should govern rollback?
Explanation
Correct Answer
An App Service slot swap ordinarily places the former production code into the other slot, enabling a controlled reversal by swapping the same two slots again if that prior build remains intact. Because production became unhealthy, first identify the deployment IDs and verify the actual older code, sticky settings and dependent database compatibility rather than assuming a rollback source exists. Then perform and validate the reverse swap or deploy a separate known-good rollback artifact. Backing up the broken production slot only after the incident would not reconstruct the earlier working release.
Incorrect Answers
A backup taken only after the failed swap preserves the currently broken production state; it does not automatically reconstruct the healthy build that ran before the swap. Azure App Service can roll back an ordinary swap by swapping the same two slots again when the previous version remains on staging. The operator should identify the actual prior build and review slot-specific settings before performing a controlled reverse swap or an already validated rollback. A newly captured image of failure is not equivalent to a known-good recovery point.
Application configuration must keep credentials out of public deployment artifacts. The stated constraint is different: rollback must restore working code and appropriate settings, not merely rename the slot.
Some App Service settings are swappable, while explicitly sticky values remain bound to their slot. The stated constraint is different: rollback must restore working code and appropriate settings, not merely rename the slot.






Microsoft Azure Administrator (AZ-104) Practice Tests