GCP (Google Cloud Platform) fundamentals sample question with answer 60

Question:
You want to compare resource utilization for VMs used for production, development, and testing. What should you do?

  1. Name the VMs with a prefix like “dev-”, “test-”, and “prod-” and filter on the name property when reporting
  2. Export all machine logs to Cloud Storage and use Cloud Functions to build reports based on the VM tags
  3. Add a label called “state” to your VMs with the values “dev”, “test”, and “prod” and group by that label in your monitoring chart
  4. Put those resources in different projects and use dataflow to create an aggregation of log values for each
Answer:
C - is the correct answer