Easy1 markMultiple Choice
Subtask 4.1: Technical ProcessesLoggingCloud StoragePub/SubCompliance

GCP PCA · Question 49 · Technical Processes

You need to design a logging architecture. Security audit logs must be retained for 3 years for compliance. Application error logs need to be analyzed in real-time to trigger alerts. Which TWO Cloud Logging export destinations should you configure? (Select TWO)

Answer options:

A.

Export audit logs to a Cloud Storage bucket with a 3-year retention policy

B.

Export audit logs to Cloud SQL

C.

Export application error logs to a Pub/Sub topic to trigger a Cloud Function

D.

Export all logs to BigQuery for 3 years

E.

Keep all logs in the default Cloud Logging storage for 3 years

How to approach this question

Match the requirement (long-term archive vs real-time action) to the correct GCP sink destination.

Full Answer

Export audit logs to a Cloud Storage bucket with a 3-year retention policy, Export application error logs to a Pub/Sub topic to trigger a Cloud Function
Cloud Logging allows you to create 'Sinks' to route logs. For long-term, low-cost compliance archiving, Cloud Storage is the best destination. For real-time alerting and event-driven architecture, exporting to Pub/Sub is the correct approach.

Common mistakes

Trying to keep logs in default logging (E) for 3 years.

Practice the full GCP Professional Cloud Architect Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam