LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Associate Cloud Engineer

Google Associate Cloud Engineer

Get started today

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?

Real Exam



Explanation:

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.

Powered ByGPT-5