Bird
0
0

What will be the output of this command?

medium📝 Command Output Q13 of 15
GCP - Cloud Monitoring and Logging
What will be the output of this command?
gcloud monitoring metrics list --filter="metric.type=compute.googleapis.com/instance/cpu/utilization" --limit=1
ADeletes the CPU utilization metric
BShows an error because the filter syntax is wrong
CLists all metrics without filtering
DLists one metric descriptor for CPU utilization of Compute Engine instances
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command components

    The command lists metric descriptors filtered by CPU utilization metric type, limiting output to one.
  2. Step 2: Analyze expected output

    The output will show one metric descriptor matching the filter. No deletion or error occurs.
  3. Final Answer:

    Lists one metric descriptor for CPU utilization of Compute Engine instances -> Option D
  4. Quick Check:

    Filter + limit = one matching metric listed [OK]
Quick Trick: Filter with --filter and limit results with --limit [OK]
Common Mistakes:
  • Assuming filter syntax is invalid
  • Expecting all metrics without filter
  • Confusing list with delete command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes