Collect all admin activity and VM system logs centrally in your project. How should you collect logs from both VMs and Google services?
Choose an answer
Tap an option to check your answer.
Correct answer: Stackdriver automatically collects admin activity logs for most services; install the Stackdriver Logging agent on each VM to collect system logs..
Why this is the answer
Stackdriver (now Cloud Logging) automatically collects admin activity logs, which include audit logs for Google Cloud services. However, to collect system logs and application logs from within your Virtual Machines (VMs), you need to install the Cloud Logging agent on each VM. This agent streams logs from the VM to Cloud Logging. The first option is incorrect because VM system logs are not automatically collected. The third option is less efficient and more complex than using Cloud Logging, which is designed for this purpose. The fourth option is incorrect because the agent needs to be installed on each VM to collect its specific logs; a single agent cannot collect logs from all VMs.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed