TECHNOLOGIESTieInn Technologies

Security and cost control

GCP · 16 questions

Short notes

Key idea

Cloud security and cost control are daily habits: give the fewest permissions needed, keep secrets out of code, and put guard rails on spending before something runs away.

Syntax

  • Least privilege: predefined narrow roles per service account; review IAM regularly.
  • Secret Manager for passwords and API keys; never commit them to Git.
  • No public buckets or datasets; org policies can block them.
  • Audit logs record who did what.
  • Budgets and alerts at 50%, 90% and 100%; quotas on BigQuery bytes per day.
  • Labels on resources (team, env) to see who spends what.
  • Delete idle resources: clusters, Composer, VMs, unused disks and IPs.

Example

A budget of ₹2,000 a month with email alerts; a BigQuery custom quota of 1 TB per user per day; a pipeline service account that can only write to one dataset; database passwords read from Secret Manager at runtime.

Traps

  • Budgets alert; they don't stop spending. Act on the alert or automate a shutdown.
  • A leaked key in a public repo is found by bots within minutes; rotate it immediately.
  • The default compute service account has Editor; don't use it for jobs.
  • Streaming jobs and clusters are the usual surprise bills.

Want the full lesson with step-by-step examples, a project and a certificate? GCP course, ₹120 →

Questions

5 free questions
5 questions

    Security and cost control

  1. Question 1medium

    Analysts need the customers table, but must not see the phone column. What's the best BigQuery feature?

  2. Security and cost control

  3. Question 2medium

    Each regional manager should only see their region's orders in the same table. What fits?

  4. Security and cost control

  5. Question 3easy

    What does a Cloud Billing budget do when spending reaches its threshold?

  6. Security and cost control

  7. Question 4medium

    Finance asks which team's pipelines cost the most last month. What makes this easy to answer?

  8. Security and cost control

  9. Question 5hard

    An employee with Data Viewer tries to copy a table to their personal GCP project, and it fails with a perimeter error. What blocked it?

11 more questions on this topic, with hints, and tests

Sign up free for 21 days of every question and test.