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.
The nearby action 'Remove leaked values and use secure App Service settings, secret references and managed identity' is associated with this separate need: a new web app includes sample credentials in app settings and public build logs. That is because application configuration must keep credentials out of public deployment artifacts. Here a slot swap causes production errors and operations need to return to the prior build, so 'Remove leaked values and use secure App Service settings, secret references and managed identity' misses the fact that rollback must restore working code and appropriate settings, not merely rename the slot. 'Identify the actual prior slot revision and perform a controlled reverse swap or deployment rollback' is the more defensible action; confirm its behavior in the target service before calling the task complete.
'Mark the sensitive application setting as deployment-slot-specific (sticky)' solves another task because some App Service settings are swappable, while explicitly sticky values remain bound to their slot. For the situation where a slot swap causes production errors and operations need to return to the prior build, this distractor misses the requirement that rollback must restore working code and appropriate settings, not merely rename the slot. Unlike 'Mark the sensitive application setting as deployment-slot-specific (sticky)', 'Identify the actual prior slot revision and perform a controlled reverse swap or deployment rollback' directly targets that requirement; its success must be confirmed at the authorized resource scope.






Microsoft Azure Administrator (AZ-104) Practice Tests