nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #89

Your application starts on the VM as a systemd service. Your application outputs its log information to stdout. You need to send the application logs to Stackdriver without changing the application…

The correct answer is C. Install Stackdriver Logging Agent. Review the application logs from the Compute Engine VM. A is not correct because the admin activity logs show destroy, create, modify, etc. events for a VM instance. (https://cloud.google.com/logging/docs/audit/#admin-activity) B is not correct because the data access logs show read activities…

Implement logging, monitoring, and alerting

Question

Your application starts on the VM as a systemd service. Your application outputs its log information to stdout. You need to send the application logs to Stackdriver without changing the application. What should you do?

Options

  • AReview the application logs from the Compute Engine VM Instance activity logs in Stackdriver.
  • BReview the application logs from the Compute Engine VM Instance data access logs in
  • CInstall Stackdriver Logging Agent. Review the application logs from the Compute Engine VM
  • DInstall Stackdriver Logging Agent. Review the application logs from the Compute Engine VM

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    72% (18)
  • D
    16% (4)

Explanation

A is not correct because the admin activity logs show destroy, create, modify, etc. events for a VM instance. (https://cloud.google.com/logging/docs/audit/#admin-activity) B is not correct because the data access logs show read activities. (https://cloud.google.com/logging/docs/audit/#data-access) C is correct because a service running in systemd that outputs to stdout will have logs in syslog and will be scraped by the logging agent. (https://github.com/GoogleCloudPlatform/fluentd-catch- all-config/tree/master/configs/config.d) D is not correct because system event logs tell you about live migration, etc. (https://cloud.google.com/logging/docs/audit/#system-event)

Topics

#Logging#Cloud Logging Agent#Compute Engine#Systemd

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice