
Answer-first summary for fast verification
Answer: • Deploy the Stackdriver logging agent to the application servers. • Give the developers the IAM Logs Viewer role to access Stackdriver and view logs.
Option A is correct because deploying the Stackdriver logging agent collects application logs into Cloud Logging with minimal configuration (e.g., via a simple agent installation). Granting the IAM Logs Viewer role (roles/logging.viewer) provides developers with secure, easy access to view and query logs for troubleshooting. Option B is incorrect due to a likely misstated role name and unnecessary complexity; the Private Logs Viewer role is not required here. Option C is incorrect as it uses the monitoring agent for metrics, not logs. Option D is incorrect due to high configuration effort (scripting, cron scheduling) and inferior log access compared to Cloud Logging.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you implement a secure, low-configuration solution on Google Cloud Platform that enables developers to easily access application logs for troubleshooting from a pool of Compute Engine application servers?
A
• Deploy the Stackdriver logging agent to the application servers. • Give the developers the IAM Logs Viewer role to access Stackdriver and view logs.
B
• Deploy the Stackdriver logging agent to the application servers. • Give the developers the IAM Logs Private Logs Viewer role to access Stackdriver and view logs.
C
• Deploy the Stackdriver monitoring agent to the application servers. • Give the developers the IAM Monitoring Viewer role to access Stackdriver and view metrics.
D
• Install the gsutil command line tool on your application servers. • Write a script using gsutil to upload your application log to a Cloud Storage bucket, and then schedule it to run via cron every 5 minutes. • Give the developers the IAM Object Viewer access to view the logs in the specified bucket.
No comments yet.