Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 124 of 268

Professional Cloud DevOps Engineer. Associate level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud DevOps Engineer Question 124

Select 2Google Cloud Platform

Your organization is required to retain specific application logs for auditing purposes. The logs need to be stored securely for at least 7 years and should allow for advanced querying capabilities. You are tasked with exporting these logs from Cloud Logging to ensure compliance with these requirements. Which destination should you choose and what steps should you take to implement this solution?

  1. A

    Export the logs to a BigQuery dataset for long-term storage and querying.

  2. B

    Export the logs to a Cloud Storage bucket with a 7-year retention policy and use BigQuery federated queries for analysis.

  3. C

    Export the logs to Pub/Sub and configure a subscriber that writes them to BigQuery.

  4. D

    Export the logs to a Cloud Spanner database for scalable storage and querying.

  5. E

    Enable log sinks in Cloud Logging and configure them to route the logs to your chosen destination.

Show answer and explanation

Correct answers: A, E

Explanation

To meet the requirements for long-term retention and advanced querying capabilities, exporting logs to BigQuery is the best solution. BigQuery is optimized for storing and querying large datasets, making it ideal for auditing purposes. Additionally, configuring a log sink in Cloud Logging is necessary to route the logs to BigQuery. While other options like Cloud Storage or Pub/Sub may partially address the requirements, they lack the native querying capabilities or are not designed for long-term storage.

  • A. Correct.

    Correct: Exporting logs to a BigQuery dataset is suitable for long-term storage and querying. BigQuery provides advanced querying capabilities, making it a good fit for auditing purposes.

  • B. Incorrect.

    Incorrect: While Cloud Storage can handle long-term retention, it does not natively support querying. Using federated queries from BigQuery is less efficient and not ideal for regular analysis.

  • C. Incorrect.

    Incorrect: Pub/Sub is primarily used for streaming and event-driven architectures. It is not designed for long-term storage or querying, although it could be used as an intermediary for log processing.

  • D. Incorrect.

    Incorrect: Cloud Spanner is a globally distributed database and not intended for log storage or querying. It is overkill for this use case and would incur unnecessary costs.

  • E. Correct.

    Correct: Log sinks in Cloud Logging allow you to export logs to external systems like BigQuery. Configuring a sink is a necessary step to route the logs to the chosen destination.

Timed practice exam

Take a Google Professional Cloud DevOps Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam