GCP Professional Cloud Architect Practice Question
Your organization runs a GKE cluster with 12 microservices written in Java, Go, and Node.js. During seasonal peaks, the cluster autoscaler adds many nodes, increasing costs. Leadership wants data that pinpoints which functions inside each service consume the most CPU time and heap so developers can optimize the code base. The solution must:
Collect data continuously in production with sampling overhead below 1 %.
Support all three runtimes without modifying the cluster nodes.
Allow engineers to compare profiles across different deploys to verify improvements. Which approach best satisfies these requirements?
Create logs-based metrics from application logs to calculate average CPU and heap usage for each service, then chart the results in Cloud Monitoring.
Turn on automatic instrumentation in Cloud Trace and analyze request latency heat maps to infer which functions consume the most resources.
Add the Cloud Profiler agent to each service's build, enable continuous CPU and heap profiling in production, and use the Profiler UI to compare profiles over time.
Deploy the Ops Agent as a DaemonSet on every node and rely on Cloud Monitoring dashboards for host-level CPU and memory metrics.
Cloud Profiler is a managed service that performs statistical, continuous profiling of CPU, heap, and other resources with typical overhead under 1 %. Instrumenting each service with the language-specific Profiler agent lets you gather per-function data for Java, Go, and Node.js without changing GKE node images; only the container images are rebuilt. The Profiler UI and API retain profiles over time so teams can compare different commits or release tags. The Ops Agent, logs-based metrics, and Cloud Trace either lack code-level resource breakdowns or do not measure CPU/heap usage directly, so they cannot meet all stated requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Cloud Profiler and how does it work?
Open an interactive chat with Bash
How does the Cloud Profiler compare to the Ops Agent for monitoring resource usage?
Open an interactive chat with Bash
Why is automatic instrumentation in Cloud Trace not suitable for profiling CPU and heap usage?
Open an interactive chat with Bash
What is Cloud Profiler and how does it work?
Open an interactive chat with Bash
How does Cloud Profiler differ from the Ops Agent when monitoring resource usage?
Open an interactive chat with Bash
Why is continuous profiling important for microservice optimization?
Open an interactive chat with Bash
GCP Professional Cloud Architect
Ensuring solution and operations excellence
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .