aktonay/skillz / skills/cloud/bigquery-basics
bigquery-basics
VerifiedManages datasets, tables, and jobs in BigQuery, and integrates with BigQuery ML and Gemini for advanced data analytics and AI-driven insights. Use when you need to interact with BigQuery, run SQL queries, manage BigQuery resources, or leverage BigQuery's built-in ML capabilities. Also use when performing data analysis, ingesting data into BigQuery, or developing AI applications on BigQuery.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| references/cli-usage.md | markdown | 2.0 KB |
| references/client-library-usage.md | markdown | 2.2 KB |
| references/core-concepts.md | markdown | 3.4 KB |
| references/iac-usage.md | markdown | 1.7 KB |
| references/iam-security.md | markdown | 1.9 KB |
| references/mcp-usage.md | markdown | 2.3 KB |
references/iam-security.md
View on GitHub# BigQuery IAM & Security
BigQuery uses Identity and Access Management (IAM) to provide granular access
control to its resources. As a security best practice, follow the
**principle of least privilege**: grant only the permissions required to
perform a specific action. This includes using the least permissive IAM role at
the most granular level—such as the table or view level—that is necessary.
## Predefined IAM Roles
For a complete list of predefined roles and detailed usage information, see [BigQuery IAM roles](https://docs.cloud.google.com/bigquery/docs/access-control#bigquery-roles).
## Service Accounts and Agents
- **Default Service Account:** BigQuery uses a managed service account
(`bq-PROJECT_NUMBER@bigquery-encryption.iam.gserviceaccount.com` or the more
general BigQuery Service Agent
`service-PROJECT_NUMBER@gcp-sa-bigquery.iam.gserviceaccount.com`) for
internal operations.
- **Service Account Impersonation:** Use
`gcloud config set auth/impersonate_service_account` for secure, temporary
credential access.
## Data Security
- **Encryption at Rest:** All data is encrypted by default using Google-managed
keys. Use Customer-Managed Encryption Keys (CMEK) for greater control.
- **VPC Service Controls:** Define a service perimeter to prevent data
exfiltration.
- **Column-Level Security:** Use policy tags to restrict access to sensitive
columns.
- **Row-Level Security:** Use row access policies to filter data based on user
identity.
- **Data Masking:** Obscure sensitive data in a table while still permitting
authorized users to access surrounding data.
- **Audit Logs:** Record user activity and system events to enforce data
governance policies and identify potential security risks.
- **Authorized Views:** Allow users to query a view without granting them access
to the underlying tables.
For more detailed information, see:
[BigQuery Security Overview](https://cloud.google.com/bigquery/docs/data-governance).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |