D3: Querying Data Instances
Google Cloud Associate Cloud Engineer exam practice questions · 11 flashcards
Question
How do you run a BigQuery query from CLI?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Querying Data Instances practice questions and answers
- How do you run a BigQuery query from CLI?bq query --use_legacy_sql=false 'SELECT ...'.
- How do you connect to Cloud SQL from CLI?gcloud sql connect INSTANCE --user=USER.
- What is the Cloud SQL Auth Proxy?Secure, IAM-authorized connections to Cloud SQL without managing SSL or IP allowlists.
- How do you query Spanner from CLI?gcloud spanner databases execute-sql DB --instance=INST --sql='...'.
- How do you read Bigtable data from CLI?The cbt tool (e.g. cbt read TABLE).
- How do you query AlloyDB?psql via Auth Proxy, or AlloyDB Studio in the console.
- How do you query Firestore?Console data viewer/Query builder or client libraries.
- What are the console query editors?BigQuery Studio, Cloud SQL Studio, Spanner Studio, AlloyDB Studio, Bigtable Studio.
- Can Bigtable be queried with SQL?Yes, with GoogleSQL for Bigtable or via BigQuery external tables.
- How do you preview a BigQuery table without cost?Use table preview (bq head) rather than SELECT *.
- Why avoid SELECT * in BigQuery?You pay by columns scanned.