Practice Test 2 | Google Cloud Certified Professional Cloud DevOps Engineer | Dumps | Mock Test
You are part of an on-call SRE team managing an apache web service application in production. The application is deployed to Google Compute Engine. The FluentD agent is installed on the GCE instance. You have been tasked with reviewing the apache logs from the application
Which of the following queries helps you do this?
A. resource.type=”gae_app” AND
(logName:”/apache-access” OR logName:”/apache-error”).
B. resource.type=”gce_instance” AND
(logName:”/apache-access” OR logName:”/apache-error”).
C. resource.type=”gce_instance” AND
log_id(“cloudaudit.googleapis.com/activity”).
D. resource.type=”gce_instance” AND
log_id(“cloudaudit.googleapis.com/data_access”).
Correct Answer: B
- Option A is incorrect. This has a resource type set to App Engine.
- Option B is CORRECT. This has a resource type of compute engine and the appropriate log name
- Options C and D are incorrect. These queries target the Admin activity logs and Data Access logs.
Reference:
Comments are closed, but trackbacks and pingbacks are open.