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

1 hour, 53 minutes remaining!

GCP Associate Cloud Engineer Practice Question

A payment-processing microservice runs on Cloud Run and writes structured JSON logs that include the field "event". SREs must raise an alert if more than 50 log entries with event="payment_failed" and severity=ERROR are recorded within any 5-minute window. They want the solution to require no code changes and to be maintainable through the Cloud Console. Which approach should they take?

  • Deploy the Ops Agent to the Cloud Run revision and configure it to count payment_failed log lines, then alert on the collected metric.

  • Create a log-based counter metric in Cloud Logging that matches the error filter, then build an alerting policy on the new custom metric.

  • Add OpenTelemetry instrumentation to the service to emit a custom metric, and configure an alert on that metric.

  • Enable Cloud Trace for the project and configure a custom error-rate detector based on collected traces.

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