
Answer-first summary for fast verification
Answer: Use Cloud Monitoring to monitor the container CPU and memory utilization of the application.
Cloud Monitoring is the optimal service for this scenario because it automatically collects and visualizes key resource metrics like CPU and memory utilization for Cloud Run applications without additional setup. This allows for direct analysis of resource usage to optimize costs, such as identifying over-provisioned containers. Option A (Cloud Trace) is incorrect as it focuses on latency tracing, not resource metrics. Option B (Cloud Profiler with Ops Agent) is invalid because Ops Agent is incompatible with Cloud Run's serverless model. Option D (logs-based metrics via Cloud Ops) is inefficient and redundant since Cloud Monitoring already provides built-in resource metrics.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have developed a serverless application using Cloud Run and deployed it to production. To analyze the application's resource utilization for cost optimization purposes, what steps should you take?
A
Use Cloud Trace with distributed tracing to monitor the resource utilization of the application.
B
Use Cloud Profiler with Ops Agent to monitor the CPU and memory utilization of the application.
C
Use Cloud Monitoring to monitor the container CPU and memory utilization of the application.
D
Use Cloud Ops to create logs-based metrics to monitor the resource utilization of the application.
No comments yet.