Your organization runs HTTP(S) Load Balancing in project prod-app. You need to start exporting only the logs whose resource.type equals http_load_balancer to an existing BigQuery dataset called lb_logs that also resides in prod-app. Using the Cloud SDK, which gcloud command will correctly create the log sink that meets these requirements?
When you create a Cloud Logging sink with gcloud, you must provide:
A sink name.
The fully qualified destination.
A filter that selects the desired log entries.
For a BigQuery destination in the same project, the required URI format is: bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID
The filter is supplied with --log-filter. Supplying the filter text without the flag, omitting the project path in the destination, using the wrong destination service (Cloud Storage), or trying to use a non-existent --resource-type flag will all result in an invalid sink or an incorrect export. Therefore, the only complete and syntactically correct command is the one that names the sink, specifies the BigQuery destination with the full project path, and includes the proper --log-filter flag.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a log sink in Google Cloud Logging?
Open an interactive chat with Bash
What is the purpose of the --log-filter flag in Cloud SDK commands?
Open an interactive chat with Bash
Why is the full BigQuery dataset URI required in `gcloud logging sinks create` commands?
Open an interactive chat with Bash
What is a log sink in Google Cloud Logging?
Open an interactive chat with Bash
How does the --log-filter flag work in gcloud commands?
Open an interactive chat with Bash
Why is the fully qualified URI necessary for the BigQuery destination?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .