312-40 practice question 8 of 25

Ocular Private Ltd. is an IT company that develops software related to graphic design. The organization has been using Google cloud services. Margot…

Full set: 147 questions
Ocular Private Ltd. is an IT company that develops software related to graphic design. The organization has been using Google cloud services. Margot Robbie has been working as a cloud security engineer in Ocular Private Ltd. over the past three years. She uses the CCP Cloud Operations Suite (formerly Stack Driver} logging and monitoring tool to monitor and debug CCP hosted applications. Margot would like to monitor a compute engine instance with cloud monitoring; therefore, she created a compute engine instance, then she installed the cloud monitoring agent. Which of the following command can Margot use to start the cloud monitoring agent?
Answer options
A: sudo stackdriver.agent start
B: sudo service stackdriver-agent start Correct answer
C: sudo stackdriver-agent start
D: sudo service stackdriver.agent start
Correct Answer:
B. sudo service stackdriver-agent start
Explanation

The Cloud Monitoring agent, formerly the Stackdriver agent, is managed as a standard system service on Linux virtual machines. The command sudo service stackdriver-agent start is used to start the agent on Linux distributions that use the SysV init or Upstart systems. On modern systems using systemd, this command often works as a wrapper for sudo systemctl start stackdriver-agent. The service name is stackdriver-agent, and service is the utility to manage it.

Why Incorrect

A. sudo stackdriver.agent start: The service name stackdriver.agent is incorrect; Linux services typically use hyphens, not dots, in their names.
C. sudo stackdriver-agent start: This command attempts to execute the agent directly, which is not the standard procedure for managing a system service.
D. sudo service stackdriver.agent start: The service name stackdriver.agent is incorrect. The correct service name is stackdriver-agent.

References

1. Google Cloud. (n.d.). Installing the Monitoring agent on a single VM. Google Cloud Documentation. Retrieved from https://cloud.google.com/monitoring/agent/monitoring/legacy-agent/install-agent#starttheagent. In the "Starting the agent" section, the documentation specifies the command: sudo service stackdriver-agent start.

Scroll to Top