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?
The filter must combine all four required conditions:
resource.type must be gce_instance so that only VM-related logs are queried.
resource.labels.zone must equal us-central1-a to limit results to that zone.
resource.labels.instance_name:"web-prod" uses the substring operator (:) to match any VM whose name begins with web-prod.
severity=ERROR ensures only failures are returned.
textPayload:"startup-script" restricts results to messages that contain the startup-script text.
The correct option includes every condition with precise equality or substring operators. The distractors each omit or mis-specify at least one requirement: one lacks the instance name filter, another uses severity=INFO, and another widens the zone and excludes the desired VMs while using a range (>=ERROR) that would still include non-critical logs.
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 Logs Explorer in GCP?
Open an interactive chat with Bash
What does 'severity=ERROR' mean in the filter?
Open an interactive chat with Bash
How does resource.labels.instance_name:'web-prod' work as a filter?
Open an interactive chat with Bash
What does the severity=ERROR filter do in Logs Explorer?
Open an interactive chat with Bash
How does the substring operator ':' work in filters like resource.labels.instance_name:"web-prod"?
Open an interactive chat with Bash
Why is resource.type="gce_instance" required in this filter?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
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 .