GCP Associate Cloud Engineer Practice Question

A DevOps engineer must quickly find only the startup-script failures for Compute Engine VMs whose names start with "web-prod" and that run in zone us-central1-a. Which Logs Explorer advanced filter will return exactly those log entries and nothing else?

  • logName="projects/myproj/logs/compute.googleapis.com%2Fserial_port1" resource.labels.zone="us-central1-a" severity=ERROR textPayload:"startup-script"

  • resource.type="gce_instance" resource.labels.zone="us-central1-a" resource.labels.instance_name:"web-prod" severity=INFO textPayload:"startup-script"

  • resource.type="gce_instance" resource.labels.zone="us-central1-a" resource.labels.instance_name:"web-prod" severity=ERROR textPayload:"startup-script"

  • resource.type="gce_instance" resource.labels.zone="us-central1-*" severity>=ERROR textPayload:("startup-script") NOT resource.labels.instance_name:"web-prod"

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