Topic 1 Question 55
Your projects incurred more costs than you expected last month. Your research reveals that a development GKE container emitted a huge number of logs, which resulted in higher costs. You want to disable the logs quickly using the minimum number of steps. What should you do?
- Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE container resource.
- Go to the Logs ingestion window in Stackdriver Logging, and disable the log source for the GKE Cluster Operations resource.
- Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Logging.
- Go to the GKE console, and delete existing clusters. 2. Recreate a new cluster. 3. Clear the option to enable legacy Stackdriver Monitoring.
ユーザの投票
コメント(17)
The question mentioned that "GKE container emitted a huge number of logs", in my opinion A is correct.
👍 47Gini2020/05/04I think A is right. https://cloud.google.com/logging/docs/api/v2/resource-list
GKE Containers have more log than GKE Cluster Operations:
.-GKE Containe: cluster_name: An immutable name for the cluster the container is running in. namespace_id: Immutable ID of the cluster namespace the container is running in. instance_id: Immutable ID of the GCE instance the container is running in. pod_id: Immutable ID of the pod the container is running in. container_name: Immutable name of the container. zone: The GCE zone in which the instance is running.
VS
.-GKE Cluster Operations project_id: The identifier of the GCP project associated with this resource, such as "my-project". cluster_name: The name of the GKE Cluster. location: The location in which the GKE Cluster is running.
👍 14JackGlemins2021/01/31- 正解だと思う選択肢: A
The correct answer is A.
To disable the logs quickly using the minimum number of steps, you should go to the Logs ingestion window in Stackdriver Logging and disable the log source for the GKE container resource. This will prevent the GKE container from emitting logs, which will in turn reduce the amount of log data generated and lower the costs incurred.
Answer B is incorrect because disabling the log source for the GKE Cluster Operations resource would not stop the logs emitted by the GKE container, and would not reduce the amount of log data generated.
Answers C and D are incorrect because deleting and recreating the GKE cluster is not a recommended approach for disabling logs. Additionally, clearing the option to enable legacy Stackdriver Logging or Monitoring would not disable the logs emitted by the GKE container.
👍 5Buruguduystunstugudunstuy2023/02/19
シャッフルモード