
Answer-first summary for fast verification
Answer: Enforce quotas for the resources in the project.
Setting up quotas is the most effective way to prevent resource consumption from exceeding specified limits, thereby avoiding billing spikes. Budgets and alerts (Option C) only notify you of spending limits being reached but do not control consumption. A spending limit on the credit card (Option A) does not prevent excessive resource usage, and analytics dashboards (Option B) provide visibility but do not prevent excessive consumption. Enforcing quotas ensures that errors or attacks do not lead to unchecked resource usage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To prevent unexpected billing spikes in your GCP project due to errors or malicious attacks, which action should you take?
A
Enforce a spending limit on the credit card used in your billing account.
B
Create analytics dashboards using BigQuery Billing export of all labeled resources.
C
Set up budgets and alerts in your project.
D
Enforce quotas for the resources in the project.
No comments yet.