Google Professional Cloud DevOps Engineer Question 120
Select 3Google Cloud PlatformYour company has a hybrid cloud environment with workloads running on both Google Cloud and on-premises infrastructure. You need to centralize and analyze logs from the on-premises systems and Google Cloud services in Cloud Logging. Which steps should you take to ensure logs from both environments are ingested into Cloud Logging?
- A
Install the Cloud Logging agent on the on-premises servers and configure it to send logs to Cloud Logging.
- B
Enable Cloud Audit Logs for all Google Cloud services being used.
- C
Set up a VPN or Interconnect between the on-premises network and Google Cloud to securely transfer logs.
- D
Enable VPC Flow Logs for all VPCs in Google Cloud.
- E
Use the Cloud Service Mesh integration to automatically ingest all logs from the on-premises servers into Cloud Logging.
Show answer and explanation
Correct answers: A, B, C
Explanation
To centralize logs from both on-premises systems and Google Cloud, you need to install the Cloud Logging agent on on-premises servers to send logs to Cloud Logging. Additionally, enabling Cloud Audit Logs ensures that Google Cloud service logs are captured. For secure log transfer from on-premises systems, a VPN or Interconnect is required. Other options, such as VPC Flow Logs and Cloud Service Mesh, do not address the given scenario.
- A. Correct.
Correct. Installing the Cloud Logging agent on the on-premises servers allows logs from those systems to be sent to Cloud Logging.
- B. Correct.
Correct. Enabling Cloud Audit Logs ensures that logs from Google Cloud services are captured and available in Cloud Logging.
- C. Correct.
Correct. Setting up a VPN or Interconnect ensures secure communication between on-premises systems and Google Cloud, which is necessary for sending logs.
- D. Incorrect.
Incorrect. While VPC Flow Logs capture network traffic metadata for VPCs in Google Cloud, they are not related to ingesting logs from on-premises systems.
- E. Incorrect.
Incorrect. Cloud Service Mesh is used for managing microservices and service communication, but it does not automatically ingest logs from on-premises systems into Cloud Logging.