Valid Professional-Cloud-DevOps-Engineer Dumps shared by ExamDiscuss.com for Helping Passing Professional-Cloud-DevOps-Engineer Exam! ExamDiscuss.com now offer the newest Professional-Cloud-DevOps-Engineer exam dumps, the ExamDiscuss.com Professional-Cloud-DevOps-Engineer exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Professional-Cloud-DevOps-Engineer dumps with Test Engine here:
You are building and running client applications in Cloud Run and Cloud Functions Your client requires that all logs must be available for one year so that the client can import the logs into their logging service You must minimize required code changes What should you do?
Correct Answer: D
The best option for storing all logs for one year and minimizing required code changes is to create a logs bucket and logging sink, set the retention on the logs bucket to 365 days, configure the logging sink to send logs to the bucket, and give your client access to the bucket to retrieve the logs. A logs bucket is a Cloud Storage bucket that is used to store logs from Cloud Logging. A logging sink is a resource that defines where log entries are sent, such as a logs bucket, BigQuery dataset, or Pub/Sub topic. You can create a logs bucket and logging sink in Cloud Logging and set the retention on the logs bucket to 365 days. This way, you can ensure that all logs are stored for one year and protected from deletion. You can also configure the logging sink to send logs from Cloud Run and Cloud Functions to the logs bucket without any code changes. You can then give your client access to the logs bucket by using IAM policies or signed URLs.