Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 239 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 239

Select 3Google Cloud Platform

Your organization has a custom application running on Compute Engine instances in Google Cloud. The application generates logs in JSON format, which are not automatically ingested into Cloud Logging. The team wants to ensure that these logs are collected, processed, and available for querying in Cloud Logging. What combination of steps should you take to achieve this?

  1. A

    Install the Cloud Logging agent on the Compute Engine instances and configure it to parse and send the custom logs.

  2. B

    Enable Cloud Audit Logs for the project to capture the custom application logs.

  3. C

    Use a Fluentd configuration to process and format the custom logs before sending them to Cloud Logging.

  4. D

    Enable VPC Flow Logs on the subnet where the application is running to capture the application logs.

  5. E

    Verify that the Cloud Logging API is enabled for the project to allow the ingestion of logs.

Show answer and explanation

Correct answers: A, C, E

Explanation

To collect and import custom application logs into Cloud Logging, the Cloud Logging agent must be installed and configured on Compute Engine instances to collect the logs. Additionally, a Fluentd configuration is required to process and format the custom JSON logs. Enabling the Cloud Logging API ensures that logs can be ingested into the system. Other options, like enabling Cloud Audit Logs or VPC Flow Logs, are not relevant to this scenario as they serve different purposes.

  • A. Correct.

    Installing the Cloud Logging agent and configuring it to parse and send custom logs is a key step in collecting non-standard logs from Compute Engine instances.

  • B. Incorrect.

    Cloud Audit Logs are specifically designed for capturing admin activity, system events, and data access logs for Google Cloud services, not custom application logs.

  • C. Correct.

    Fluentd configuration is needed to process and format custom logs to ensure they are correctly structured before being sent to Cloud Logging.

  • D. Incorrect.

    VPC Flow Logs capture network traffic metadata, not application-level logs, so this step is irrelevant for collecting custom application logs.

  • E. Correct.

    Enabling the Cloud Logging API is necessary to allow logs to be ingested and stored in Cloud Logging.

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