Google Cloud Professional Cloud Architect — Question 15

Your architecture calls for the centralized collection of all admin activity and VM system logs within your project.
How should you collect these logs from both VMs and services?

Answer options

Correct answer: B

Explanation

The correct option is B because it specifies that while Stackdriver automatically collects admin activity logs for many services, the Stackdriver Logging agent is necessary on each VM for system logs. Option A is incorrect as it implies all logs are collected without additional configuration. Option C suggests using a custom syslogd instance, which is not required if using Stackdriver. Option D limits log collection to a single instance, which does not meet the requirement of centralized log collection from all VMs.