You are working with a government agency that requires you to archive application logs for seven years. You need to configure Stackdriver to export and store the logs while minimizing costs of storage. What should you do?
A.
Create a Cloud Storage bucket and develop your application to send logs directly to the bucket.
B.
Develop an App Engine application that pulls the logs from Stackdriver and saves them in BigQuery.
C.
Create an export in Stackdriver and configure Cloud Pub/Sub to store logs in permanent storage for seven years.
D.
Create a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs, and then select the bucket as the log export destination.
D. Create a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs, and then select the bucket as the log export destination. This allows you to export logs from Stackdriver to a long-term storage bucket in Cloud Storage, which is a cost-effective option for long-term storage. Additionally, you can use Stackdriver's export feature to schedule regular exports and configure retention policies to keep the logs for the required seven years.
D is the answer.
https://cloud.google.com/logging/docs/routing/overview#destinations
You can use the Logs Router to route certain logs to supported destinations in any Cloud project. Logging supports the following sink destinations:
- Cloud Storage: JSON files stored in Cloud Storage buckets; provides inexpensive, long-term storage.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Manh
Highly Voted 2 years, 5 months agojob_search83
Highly Voted 2 years, 6 months agojomonkp
Most Recent 4 months, 4 weeks agoJonathanSJ
1 year, 3 months agozellck
1 year, 6 months agoramzez4815
1 year, 7 months agoramzez4815
1 year, 7 months agoemdee202
2 years agoSekierer
2 years, 3 months agogiammydell
2 years, 6 months agoAlaaelanwr
2 years, 6 months ago