exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 118 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 118
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

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?

  • A. Update all images in Cloud Run and all functions in Cloud Functions to send logs to both Cloud Logging and the client's logging service. Ensure that all the ports required to send logs are open in the VPC firewall.
  • B. Create a Pub/Sub topic, subscription, and logging sink. Configure the logging sink to send all logs into the topic. Give your client access to the topic to retrieve the logs.
  • C. Create a storage bucket and appropriate VPC firewall rules. Update all images in Cloud Run and all functions in Cloud Functions to send logs to a file within the storage bucket.
  • D. 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. Give your client access to the bucket to retrieve the logs.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
xhilmi
4 months, 3 weeks ago
Selected Answer: D
Choose Option D. Creating a logs bucket and logging sink, is the recommended approach to meet the client's requirement of retaining logs for one year while minimizing code changes. By configuring a logging sink to send logs to a bucket and setting the retention period on the bucket to 365 days, you leverage Google Cloud's managed logging and storage services. This approach abstracts the log storage from your applications running in Cloud Run and Cloud Functions, ensuring that logs are retained for the specified duration without requiring modifications to individual codebases. Additionally, providing your client access to the designated bucket allows them to retrieve the logs seamlessly. It's a centralized and efficient solution that aligns with best practices for log management in oogle Cloud.
upvoted 3 times
...
Jason_Cloud_at
6 months, 1 week ago
Selected Answer: D
Right answer
upvoted 4 times
...
activist
6 months, 2 weeks ago
Answer D is a secure solution.
upvoted 1 times
...
florian_cartron
6 months, 3 weeks ago
Selected Answer: D
Answer D: sink logs in a bucket is the cleanest and quickest solution.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago