You have an application that runs in Google Kubernetes Engine (GKE). Over the last 2 weeks, customers have reported that a specific part of the application returns errors very frequently. You currently have no logging or monitoring solution enabled on your GKE cluster. You want to diagnose the problem, but you have not been able to replicate the issue. You want to cause minimal disruption to the application. What should you do?
The practice for managing logs generated on Compute Engine on Google Cloud is to install the Cloud Logging agent and send them to Cloud Logging.
The sent logs will be aggregated into a Cloud Logging sink and exported to Cloud Storage.
The reason for using Cloud Storage as the destination for the logs is that the requirement in question requires setting up a lifecycle based on the storage period.
In this case, the log will be used for active queries for 30 days after it is saved, but after that, it needs to be stored for a longer period of time for auditing purposes.
If the data is to be used for active queries, we can use BigQuery's Cloud Storage data query feature and move the data past 30 days to Coldline to build a cost-optimal solution.
Therefore, the correct answer is as follows
1. Install the Cloud Logging agent on all instances.
Create a sync that exports the logs to the region's Cloud Storage bucket.
3. Create an Object Lifecycle rule to move the files to the Coldline Cloud Storage bucket after one month. 4.
4. set up a bucket-level retention policy using bucket locking.'
Carrol
3 months agoJacquline
3 months agoArmando
4 months agoLanie
4 months agoMaira
4 months agoCary
4 months agoMichel
5 months agoMarylyn
5 months agoCatarina
5 months agoWendell
5 months agoKarrie
5 months agoVicente
5 months agoKerry
5 months agoPaz
5 months agoLawrence
5 months agoPearlene
10 months agoHector
10 months agoFarrah
10 months agoDemetra
8 months agoAlica
9 months agoTelma
9 months agoDorthy
9 months agoMaile
10 months agoTyra
8 months agoMaile
8 months agoCeola
9 months agoMelina
10 months agoCraig
9 months agoJohana
9 months agoAlysa
10 months agoRozella
10 months agoSheron
11 months agoValentine
11 months agoViola
11 months ago