ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 114 - Professional Cloud DevOps Engineer discussion

Report
Export

You are running a web application deployed to a Compute Engine managed instance group Ops Agent is installed on all instances You recently noticed suspicious activity from a specific IP address You need to configure Cloud Monitoring to view the number of requests from that specific IP address with minimal operational overhead. What should you do?

A.
Configure the Ops Agent with a logging receiver Create a logs-based metric
Answers
A.
Configure the Ops Agent with a logging receiver Create a logs-based metric
B.
Create a script to scrape the web server log Export the IP address request metrics to the Cloud Monitoring API
Answers
B.
Create a script to scrape the web server log Export the IP address request metrics to the Cloud Monitoring API
C.
Update the application to export the IP address request metrics to the Cloud Monitoring API
Answers
C.
Update the application to export the IP address request metrics to the Cloud Monitoring API
D.
Configure the Ops Agent with a metrics receiver
Answers
D.
Configure the Ops Agent with a metrics receiver
Suggested answer: A

Explanation:

The best option for configuring Cloud Monitoring to view the number of requests from a specific IP address with minimal operational overhead is to configure the Ops Agent with a logging receiver and create a logs-based metric. The Ops Agent is an agent that collects system metrics and logs from your VM instances and sends them to Cloud Monitoring and Cloud Logging. A logging receiver is a configuration that specifies which logs are collected by the Ops Agent and how they are processed. You can use a logging receiver to collect web server logs from your VM instances and send them to Cloud Logging. A logs-based metric is a metric that is extracted from log entries in Cloud Logging. You can use a logs-based metric to count the number of requests from a specific IP address by using a filter expression. You can then use Cloud Monitoring to view and analyze the logs-based metric.

asked 18/09/2024
Garwin Liu
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first