exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 172 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 172
Topic #: 1
[All Professional Cloud Developer Questions]

You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?

  • A. Store the logs in a Cloud Storage bucket with bucket lock turned on.
  • B. Store the logs in a Cloud Storage bucket with a 3-year retention period.
  • C. Store the logs in Cloud Logging as custom logs with a custom retention period.
  • D. Store the logs in a Cloud Storage bucket with a 1-year retention period. After 1 year, move the logs to another bucket with a 2-year retention period.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
micoams
Highly Voted 1 year, 4 months ago
Selected Answer: C
The requirements say that the logs should be easily searchable. This is not easily achieved in Cloud Storage, so that eliminates A,B and D. That leaves C and the valid option. Note, that it's possible to configure Cloud Logging with a custom retention period. https://cloud.google.com/logging/docs/buckets#custom-retention
upvoted 9 times
zellck
1 year, 4 months ago
Agree that Cloud Logging will be better for search.
upvoted 1 times
...
...
dneves
Most Recent 4 months, 1 week ago
Selected Answer: A
Answer A. Cloud Storage with bucket lock: Ensures immutability Meets compliance needs Can't be overridden Simple configuration https://cloud.google.com/storage/docs/bucket-lock
upvoted 1 times
...
__rajan__
7 months, 1 week ago
Selected Answer: C
C is correct.
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: C
Tricky question. Easily searchable is the key here. Cloud logging supports retaining the logs between 1 to 3650 (10 years max) and we can set custom retention period on the cloud logs.
upvoted 1 times
...
telp
1 year, 3 months ago
Selected Answer: C
C is the correct answer because Cloud Logging to retain logs between 1 day and 3650 days
upvoted 1 times
...
zellck
1 year, 4 months ago
Selected Answer: C
C is the correct answer instead. https://cloud.google.com/logging/docs/routing/overview#logs-retention Cloud Logging retains logs according to retention rules applying to the log bucket type where the logs are held. You can configure Cloud Logging to retain logs between 1 day and 3650 days. Custom retention rules apply to all the logs in a bucket, regardless of the log type or whether that log has been copied from another location.
upvoted 2 times
...
TNT87
1 year, 4 months ago
https://cloud.google.com/logging/docs/audit/best-practices#custom-retention https://cloud.google.com/logging/docs/central-log-storage Logs must be searchable as required by the question. point number 4 for the second link above supports that. Answer C
upvoted 1 times
...
zellck
1 year, 4 months ago
Selected Answer: B
B is the answer.
upvoted 1 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