A CodeDeploy deployment group has automatic rollback enabled. A deployment fails, and CodeDeploy rolls back to the last known good revision. How does CodeDeploy carry out this rollback?
Show the answer
Correct answerB. It starts a new deployment of the last good revision with a new deployment ID.
AWhy not this: CodeDeploy does not undo a deployment in place; the failed deployment keeps its failed status.
BWhy this is right: A rollback is a new deployment of the previous revision, recorded under a new deployment ID.
CWhy not this: CodeDeploy does not snapshot instances; it redeploys the earlier application revision.
DWhy not this: The rollback deploys the earlier revision's files and runs its lifecycle events as a full deployment.
CodeDeploy rolls back by redeploying the last known good revision as a new deployment, so the rollback has its own deployment ID rather than restoring the failed one. It does not take or restore snapshots, and the rollback runs a full deployment of the earlier revision.