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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tangac
Highly Voted 2 years, 3 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, 8 months ago
https://cloud.google.com/logging/docs/buckets#custom-retention Cloud Logging max 3650 days
upvoted 5 times
...
meh009
2 years, 1 month ago
Correct. Tested and can verify this. Between A and C. and I would choose A.
upvoted 2 times
giu2301
1 year, 8 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, 5 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, 3 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
1 week, 1 day ago
Seems there is a limitation of retention period for the Google Log Buckets. So A is the correct answer https://cloud.google.com/logging/docs/buckets#create_bucket Optional: To set a custom retention period for the logs in the bucket, click Next. In the Retention period field, enter the number of days, between 1 day and **3650 days**, that you want Cloud Logging to retain your logs. If you don't customize the retention period, the default is 30 days.
upvoted 1 times
...
...
KLei
Most Recent 1 week, 3 days ago
Selected Answer: A
B is OK if the retention period is 10 years. So A should be the best answer https://cloud.google.com/logging/docs/buckets In the Retention period field, enter the number of days, between 1 day and 3650 days, that you want Cloud Logging to retain your logs. If you don't customize the retention period, the default is 30 days.
upvoted 1 times
...
Pime13
2 weeks, 6 days ago
Selected Answer: B
The best option to meet your requirements is 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. This solution ensures that: Logs are automatically collected and managed by the Cloud Logging agent, reducing manual overhead. Data is stored within the specified European region. A custom retention policy of 12 years is applied, meeting the business requirement for log preservation. plus: Compute Engine instances do not automatically log into Cloud Logging. You need to install an agent to enable this functionality. Specifically, you can use the Ops Agent, which is recommended for new Google Cloud workloads as it combines both logging and monitoring capabilities
upvoted 1 times
...
MoAk
1 month ago
Selected Answer: C
Cos A is hassle, and Google never recommend to mess with app code.
upvoted 1 times
...
BPzen
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. Option D is not feasible for a 12-year retention requirement because the default log buckets in Google Cloud's operations suite have a fixed retention period of 365 days, which cannot be changed. If the retention requirement exceeds 365 days, a custom log bucket must be used instead.
upvoted 1 times
...
BPzen
1 month ago
Selected Answer: B
Option B: Provides a seamless and integrated logging solution while ensuring compliance with location and retention requirements.
upvoted 1 times
...
2ndjuly
1 month ago
Selected Answer: B
A is unnecessary complexity
upvoted 1 times
...
MoAk
1 month, 1 week ago
Selected Answer: C
Without doubt its between A and C due to obvious retention caveats on log buckets. I choose C because of Google's push to simplify everything and to use their own native services rather than tinkering with your app code. Answer C.
upvoted 1 times
...
KLei
2 months ago
Max custom log retention: https://cloud.google.com/logging/docs/buckets#custom-retention
upvoted 2 times
...
Mr_MIXER007
4 months ago
Selected Answer: A
Selected Answer: A
upvoted 1 times
...
3d9563b
5 months, 1 week 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
8 months ago
Selected Answer: A
A is the solution because you can't have a retentioon more than 3650 days
upvoted 1 times
...
irmingard_examtopics
8 months, 3 weeks 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 3 times
...
Natan97
8 months, 3 weeks ago
B is correct. This option totally makes sense because approach points to decrease overhead and optimize cost.
upvoted 1 times
...
Bettoxicity
9 months 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
9 months, 2 weeks ago
Selected Answer: B
Answer is B. Google recommand to avoid developping new code.
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