
Explanation:
Options B and E are incorrect because Cloud Trace is not designed for continuous CPU and memory usage monitoring. Option A is not applicable since you cannot access the underlying instance in App Engine Standard Environment. The correct actions are C and D: Cloud Profiler is specifically for monitoring CPU and memory usage. You need to enable the Cloud Profiler API, include 'google-cloud-profiler' in your requirements.txt, import the module, and initiate profiling in your application. References: Cloud Profiler Documentation, Profiling Python in Flexible Environment.
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 two actions should you take to achieve this?
A
Install pip and Install the Cloud Profiler package
B
Enable the Cloud Trace API
C
Import googlecloudprofiler module and call the googlecloudprofiler.start function
D
Enable the Cloud Profiler API and add google-cloud-profiler to your requirements.txt file
E
Install pip and Install the Trace package
No comments yet.