Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Security Engineer All Questions

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

Exam Professional Cloud Security Engineer topic 1 question 158 discussion

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

You are deploying a web application hosted on Compute Engine. A business requirement mandates that application logs are preserved for 12 years and data is kept within European boundaries. You want to implement a storage solution that minimizes overhead and is cost-effective. What should you do?

  • A. Create a Cloud Storage bucket to store your logs in the EUROPE-WEST1 region. Modify your application code to ship logs directly to your bucket for increased efficiency.
  • B. Configure your Compute Engine instances to use the Google Cloud's operations suite Cloud Logging agent to send application logs to a custom log bucket in the EUROPE-WEST1 region with a custom retention of 12 years.
  • C. Use a Pub/Sub topic to forward your application logs to a Cloud Storage bucket in the EUROPE-WEST1 region.
  • D. Configure a custom retention policy of 12 years on your Google Cloud's operations suite log bucket in the EUROPE-WEST1 region.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
tangac
Highly Voted 2 years, 2 months ago
The A and the C are the two possible (12 years retention is not possible with Cloud Logging...max 3650 days) so now the question is...pub/sub or not pub/sub.... in my opinion when it's said...limit overhead, i should go with the A....but not really sure
upvoted 14 times
mohomad7
1 year, 7 months ago
https://cloud.google.com/logging/docs/buckets#custom-retention Cloud Logging max 3650 days
upvoted 5 times
...
meh009
1 year, 11 months ago
Correct. Tested and can verify this. Between A and C. and I would choose A.
upvoted 2 times
giu2301
1 year, 7 months ago
re-writing code is never the best answer ihmo. Why not use pub/sub? We do that for any 3rd party app. I'm positively sure that B and D are wrong. Still thinking which one would have the least operational overhead between A and C.
upvoted 2 times
...
...
[Removed]
1 year, 4 months ago
With "C" you're forwarding logs which means you either have two copies (if you're forwarding without deleting original) or best case, you have an intermediate step/hop. Whereas with "A", the app is writing directly to the bucket in Europe so only one copy guaranteed and one journey from app to storage instead of going through an intermediate steps. So "A" is less overhead.
upvoted 2 times
...
...
GHOST1985
Highly Voted 2 years, 2 months ago
Selected Answer: B
A: Google recommand to avoid developping new code while it propose service for that => incorrect B: seem to reponse for this needs => correct C: Pub/sub is not using for forwarding log, it is an event notification, and no configuration for the retention 12 years is proposed => incorrect D: how the application will forward the logs to the bucket ? => incorrect
upvoted 8 times
...
KLei
Most Recent 3 weeks, 1 day ago
Max custom log retention: https://cloud.google.com/logging/docs/buckets#custom-retention
upvoted 2 times
...
Mr_MIXER007
2 months, 3 weeks ago
Selected Answer: A
Selected Answer: A
upvoted 1 times
...
3d9563b
4 months ago
Selected Answer: B
Option B is the best approach because it leverages the Google Cloud's operations suite Cloud Logging agent for efficient log collection, ensures compliance with data residency requirements by storing logs in the EUROPE-WEST1 region, and allows for setting a custom retention policy of 12 years. This solution balances operational efficiency with compliance and cost-effectiveness.
upvoted 1 times
...
Roro_Brother
6 months, 3 weeks ago
Selected Answer: A
A is the solution because you can't have a retentioon more than 3650 days
upvoted 1 times
...
irmingard_examtopics
7 months, 1 week ago
Selected Answer: C
We need a Cloud Storage bucket not a log bucket, as their max log retention period is 10 years, so B and D are out. A does not minimize overhead as it is additional work. That leaves C in my opinion.
upvoted 2 times
...
Natan97
7 months, 2 weeks ago
B is correct. This option totally makes sense because approach points to decrease overhead and optimize cost.
upvoted 1 times
...
Bettoxicity
7 months, 3 weeks ago
Selected Answer: A
A With Cloud Storage you can set a maximum retention period of 3,155,760,000 seconds (100 years). You can configure Cloud Logging to retain your logs only between 1 day and 3650 days.
upvoted 2 times
...
glb2
8 months ago
Selected Answer: B
Answer is B. Google recommand to avoid developping new code.
upvoted 1 times
...
dija123
8 months, 3 weeks ago
Selected Answer: B
B make sense
upvoted 1 times
...
pfilourenco
1 year, 3 months ago
Selected Answer: A
It's A. B,D are not viable because max is 10 years.
upvoted 5 times
...
[Removed]
1 year, 4 months ago
Selected Answer: A
A is least overhead B,D are not viable because max is 10 years. C has unnecessary hop/step before forwarding. Unnecessary network and (temporary?) storage overhead. Reference: https://cloud.google.com/logging/docs/buckets#custom-retention
upvoted 5 times
...
TNT87
1 year, 7 months ago
Selected Answer: A
Answer A not B
upvoted 5 times
...
AwesomeGCP
2 years, 1 month ago
Selected Answer: B
B. Configure your Compute Engine instances to use the Google Cloud's operations suite Cloud Logging agent to send application logs to a custom log bucket in the EUROPE-WEST1 region with a custom retention of 12 years.
upvoted 3 times
...
rrvv
2 years, 2 months ago
B. Configure your Compute Engine instances to use the Google Cloud's operations suite Cloud Logging agent to send application logs to a custom log bucket in the EUROPE-WEST1 region with a custom retention of 12 years. read more about it here- https://youtu.be/MI4iG2GIZMA
upvoted 3 times
TNT87
1 year, 7 months ago
We arent using any 3rd party here as desribed onthe video, B cant be 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 ...