
Answer-first summary for fast verification
Answer: There is no logging agent installed on the instance.
The correct answer is **B. There is no logging agent installed on the instance.** Without the logging agent, VMs cannot write logs to Cloud Logging. Option A is incorrect because the default service account has the editor role attached, which includes sufficient permissions to write to Cloud Logging. Option C is incorrect because if a logging agent is installed, the VM can send logs to Cloud Logging regardless of whether VM machine logs are turned on. Option D is incorrect for the same reason as option A; the default service account already has the necessary permissions. Reference: [Google Cloud Logging Agent Documentation](https://cloud.google.com/logging/docs/agent/logging).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A customer has deployed an application on Compute Engine using the default service account. The application is supposed to write logs to the instance, but no logs are appearing in Cloud Logging. What is the most likely issue?
A
The scopes of the service account are not sufficient to write to Cloud Logging.
B
There is no logging agent installed on the instance.
C
VM machine logs have not been turned on.
D
The service account does not have the Logging Viewer role.
No comments yet.