
Answer-first summary for fast verification
Answer: Set the `automaticRestart` availability policy to `true`.
The correct answer is to set the `automaticRestart` availability policy to `true`. This ensures that the instance automatically restarts if it crashes or is terminated by the system, enhancing resilience. The `onHostMaintenance` policy, which defaults to `migrate`, is not relevant to crashes or system termination but rather to maintenance events. Therefore, options focusing on `onHostMaintenance` are incorrect for this scenario. The default setting for `automaticRestart` is `true`, but explicitly setting it ensures the desired behavior is achieved.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To ensure resilience against instance crashes or system termination for multiple applications hosted on Compute Engine instances, what configuration should be applied?
A
Configure the automaticRestart availability policy to false.
B
Set the onHostMaintenance availability policy to terminate instances.
C
Set the automaticRestart availability policy to true.
D
Configure the onHostMaintenance availability policy to migrate instances.
No comments yet.