Question 500
An app uses immutable infrastructure to recover from instance failures. The team confirms that operators cannot determine which instance version is serving requests. Which design adjustment best addresses that requirement?
Explanation
Correct Answer
The scenario identifies this requirement: Operators cannot determine which instance version is serving requests. Select Tag instances and record deployment build IDs in metrics and logs as the specified technical mechanism. Version identification supports incident diagnosis and rollback. This response addresses the problem described rather than a different design goal.
Incorrect Answers
The option Preserve the previous launch template version and test ASG rollback addresses a separate condition: a failed deployment must roll back to the last healthy server build. Versioned launch templates provide controlled rollback candidates. The actual requirement is operators cannot determine which instance version is serving requests. Recommended corrective action: Tag instances and record deployment build IDs in metrics and logs. Version identification supports incident diagnosis and rollback.
For the alternative failure the only server stores upload files on its instance store, the control Move uploads to S3 or another durable shared data store is relevant: instance store data is lost when the instance terminates. Here the evidence instead is operators cannot determine which instance version is serving requests. The selected technical mechanism is Tag instances and record deployment build IDs in metrics and logs: version identification supports incident diagnosis and rollback.
Build a versioned AMI and replace instances through an Auto Scaling deployment solves a different operational problem where an administrator patches EC2 servers in place and each server drifts differently. Immutable replacement reduces configuration drift. It does not directly address operators cannot determine which instance version is serving requests. The case calls for Tag instances and record deployment build IDs in metrics and logs, since version identification supports incident diagnosis and rollback.