
Answer-first summary for fast verification
Answer: Perform a rolling-action restart with max-unavailable set to 20%.
The correct answer is to perform a rolling-action restart with max-unavailable set to 20%. This approach ensures that the managed instance group restarts instances while maintaining at least 80% available capacity, meeting the requirement without unnecessary delays. Other options either do not guarantee the capacity requirement (like stopping instances manually) or are not the most efficient method (like replacing instances, which is more drastic and time-consuming than restarting). Rolling-action reboot is not supported for managed instance groups, making it an invalid option.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your web application, deployed as a managed instance group, is experiencing low memory on some compute instances due to a suspected JVM memory leak. You need to restart these instances to reclaim memory without dropping the available capacity below 80% during the process, and you aim to do this as quickly as possible. What is the best approach?
A
Stop instances in the managed instance group (MIG) one at a time and rely on autohealing to bring them back up.
B
Perform a rolling-action replace with max-unavailable set to 20%.
C
Perform a rolling-action restart with max-unavailable set to 20%.
D
Perform a rolling-action reboot with max-surge set to 20%.
No comments yet.