GCP Associate Cloud Engineer Practice Question

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?

  • gcloud logging sinks create lb-sink bigquery.googleapis.com/projects/prod-app/datasets/lb_logs --resource-type=http_load_balancer

  • gcloud logging sinks create lb-sink bigquery.googleapis.com/projects/prod-app/datasets/lb_logs --log-filter='resource.type="http_load_balancer"'

  • gcloud logging sinks create lb-sink storage.googleapis.com/bq/lb_logs --log-filter='resource.type="http_load_balancer"'

  • gcloud logging sinks create lb-sink --destination=bigquery.googleapis.com/datasets/lb_logs --log-filter='resource.type="http_load_balancer"'

GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot