🔥 40% Off Crucial Exams Memberships — Deal ends today!

2 hours, 31 minutes remaining!

GCP Associate Cloud Engineer Practice Question

Your team operates a Java web service in a GKE cluster. Users report brief latency spikes during traffic peaks, and you suspect a CPU-intensive code path is responsible. Monitoring and Logging are already enabled on the cluster. Which action will let you begin collecting production CPU profiles in Cloud Profiler with the least disruption to the running Pods?

  • Enable the Cloud Profiler API in the project and rely on the Ops Agent already running on each node to upload CPU samples automatically.

  • Add the Cloud Profiler Java agent to the application's startup command and grant the Pod's service account the Cloud Profiler Agent IAM role.

  • Convert the cluster to Autopilot mode and set an --enable-cloud-profiler flag on the control plane so profiles are gathered for all workloads.

  • Deploy a DaemonSet that periodically SSHes into each node, captures stack traces, and pushes them to Cloud Storage for later analysis.

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot