nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #93

You have deployed a fleet of Compute Engine instances in Google Cloud. You need to ensure that monitoring metrics and logs for the instances are visible in Cloud Logging and Cloud Monitoring by your c

Sign in or unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER to reveal the answer and full explanation for question #93. The question stem and answer options stay visible for context.

Submitted by saadiq_pk· Apr 18, 2026Implementing service monitoring strategies

Question

You have deployed a fleet of Compute Engine instances in Google Cloud. You need to ensure that monitoring metrics and logs for the instances are visible in Cloud Logging and Cloud Monitoring by your company's operations and cyber security teams. You need to grant the required roles for the Compute Engine service account by using Identity and Access Management (IAM) while following the principle of least privilege. What should you do?

Options

  • AGrant the logging.logWriter and monitoring.metricWriter roles to the Compute Engine service
  • BGrant the logging.admin and monitoring.editor roles to the Compute Engine service accounts.
  • CGrant the logging.editor and monitoring.metricWriter roles to the Compute Engine service
  • DGrant the logging.logWriter and monitoring.editor roles to the Compute Engine service accounts.

Unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER questions. Unlock PROFESSIONAL-CLOUD-DEVOPS-ENGINEER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#IAM Roles#Cloud Logging#Cloud Monitoring#Least Privilege
Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice