Valid Professional-Cloud-DevOps-Engineer Dumps shared by EduDump.com for Helping Passing Professional-Cloud-DevOps-Engineer Exam! EduDump.com now offer the newest Professional-Cloud-DevOps-Engineer exam dumps, the EduDump.com Professional-Cloud-DevOps-Engineer exam questions have been updated and answers have been corrected get the newest EduDump.com Professional-Cloud-DevOps-Engineer dumps with Test Engine here:
You are configuring Cloud Logging for a new application that runs on a Compute Engine instance with a public IP address. A user-managed service account is attached to the instance. You confirmed that the necessary agents are running on the instance but you cannot see any log entries from the instance in Cloud Logging. You want to resolve the issue by following Google-recommended practices. What should you do?
Correct Answer: A
Explanation The correct answer is A. Add the Logs Writer role to the service account. To use Cloud Logging, the service account attached to the Compute Engine instance must have the necessary permissions to write log entries. The Logs Writer role (roles/logging.logWriter) provides this permission. You can grant this role to the user-managed service account at the project, folder, or organization level1. Private Google Access is not required for Cloud Logging, as it allows instances without external IP addresses to access Google APIs and services2. The default Compute Engine service account already has the Logs Writer role, but it is not a recommended practice to use it for user applications3. Exporting the service account key and configuring the agents to use the key is not a secure way of authenticating the service account, as it exposes the key to potential compromise4. References: 1: Access control with IAM | Cloud Logging | Google Cloud 2: Private Google Access overview | VPC | Google Cloud 3: Service accounts | Compute Engine Documentation | Google Cloud 4: Best practices for securing service accounts | IAM Documentation | Google Cloud