
Answer-first summary for fast verification
Answer: Utilize `gcloud config set project` to specify the default project.
The correct method is to use `gcloud config set project` to manage configuration defaults, including setting the default project. This is because the bq command-line tool relies on the gcloud configuration settings and cannot be configured directly through BigQuery commands. Options C and D are incorrect as they involve commands that do not exist and would result in errors. Option B is incorrect because the bq tool does not support setting the project configuration directly.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are working on a project that utilizes BigQuery and wish to list all BigQuery jobs associated with that project. To streamline your workflow, you aim to set this project as the default for the bq command-line tool. What is the correct approach to achieve this?
A
Utilize gcloud config set project to specify the default project.
B
Employ bq config set project to define the default project.
C
Generate a URL to the Google Cloud Platform Console for setting the default project using gcloud generate config-url.
D
Create a URL to the Google Cloud Platform Console for setting the default project using bq generate config-url.
No comments yet.