
Google Professional Cloud DevOps Engineer
Get started today
Ultimate access to all questions.
Your company is deploying a Python application on Google App Engine Standard Environment and needs to continuously monitor CPU usage in production. Which steps should you take to accomplish this?
Your company is deploying a Python application on Google App Engine Standard Environment and needs to continuously monitor CPU usage in production. Which steps should you take to accomplish this?
Explanation:
The correct approach involves enabling the Cloud Profiler API and including google-cloud-profiler
in your requirements.txt
file for download. Additionally, the Cloud Profiler module must be imported and started within your application. This method is specifically designed for continuous monitoring of CPU and memory usage. Other options like Cloud Trace are not suitable for this purpose, and manual installation of packages is not feasible in the App Engine Standard Environment due to restricted access to the underlying instance. For more details, refer to the Cloud Profiler overview and guidelines for profiling Python applications.