PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 15 of 25
[Optimizing service performance] You manage several production systems that run on Compute Engine in the same Google Cloud Platform (GCP) project. Each system has its own set of dedicated Compute Engine instances. You want to know how must it costs to run each of the systems. What should you do?
Full set: 205 questionsThe standard and most effective method for granular cost allocation within a single Google Cloud project is to use labels. By assigning a unique label (e.g., system: crm, system: billing) to all Compute Engine instances belonging to a specific system, you can then enable the export of detailed billing data to BigQuery. This exported dataset includes label information, allowing you to run precise SQL queries to group costs by system and generate detailed financial reports. This approach is scalable, flexible, and the recommended best practice.
A. The Cost Breakdown section in the console groups by project, service, or SKU by default. It cannot distinguish between custom logical systems without labels being configured for the report.
C. Instance metadata is primarily for use by the instance itself. While it could be logged, this is an indirect and non-standard method for cost tracking compared to the direct billing export feature.
D. Using VM names for cost tracking is brittle and prone to error from typos or inconsistent naming conventions. The detailed billing export to BigQuery is more robust and purpose-built for this task.
1. Google Cloud Documentation, "Creating and managing labels": "Labels are key-value pairs that you can attach to Google Cloud resources... You can use labels to track your spending in billing exports."
2. Google Cloud Documentation, "Export Cloud Billing data to BigQuery": "When you export Cloud Billing data to BigQuery, the cost data is loaded into a BigQuery dataset you specify... The export includes any labels that you have set on your resources."
3. Google Cloud Documentation, "Get a granular cost breakdown with labels": "By applying labels to resources, you can filter and group your costs by label... For example, you can assign the label system:backend to all the resources that support your backend."
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
