ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 95 - Professional Cloud DevOps Engineer discussion

Report
Export

Your organization wants to collect system logs that will be used to generate dashboards in Cloud Operations for their Google Cloud project. You need to configure all current and future Compute Engine instances to collect the system logs and you must ensure that the Ops Agent remains up to date. What should you do?

A.
Use the gcloud CLI to install the Ops Agent on each VM listed in the Cloud Asset Inventory
Answers
A.
Use the gcloud CLI to install the Ops Agent on each VM listed in the Cloud Asset Inventory
B.
Select all VMs with an Agent status of Not detected on the Cloud Operations VMs dashboard Then select Install agents
Answers
B.
Select all VMs with an Agent status of Not detected on the Cloud Operations VMs dashboard Then select Install agents
C.
Use the gcloud CLI to create an Agent Policy.
Answers
C.
Use the gcloud CLI to create an Agent Policy.
D.
Install the Ops Agent on the Compute Engine image by using a startup script
Answers
D.
Install the Ops Agent on the Compute Engine image by using a startup script
Suggested answer: C

Explanation:

The best option for configuring all current and future Compute Engine instances to collect system logs and ensure that the Ops Agent remains up to date is to use the gcloud CLI to create an Agent Policy. An Agent Policy is a resource that defines how Ops Agents are installed and configured on VM instances that match certain criteria, such as labels or zones. Ops Agents are software agents that collect metrics and logs from VM instances and send them to Cloud Operations products, such as Cloud Monitoring and Cloud Logging. By creating an Agent Policy, you can ensure that all current and future VM instances that match the policy criteria will have the Ops Agent installed and updated automatically. This way, you can collect system logs from all VM instances and use them to generate dashboards in Cloud Operations.

asked 18/09/2024
An Khang Nguyen
48 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first