Google Associate Cloud Engineer Question 322
Select 3Google Cloud PlatformYou are tasked with deploying the Ops Agent on a group of Compute Engine instances in your Google Cloud environment to collect both logging and metrics data. Which of the following steps are necessary to ensure the Ops Agent is properly configured and deployed on these instances?
- A
A. Install the Ops Agent by using the Google Cloud Console.
- B
B. Use the gcloud command-line tool to install the Ops Agent on the instances.
- C
C. Ensure the instances have the appropriate IAM roles to allow the Ops Agent to send data to Cloud Monitoring and Logging.
- D
D. Manually download and configure the Ops Agent on each instance individually.
- E
E. Use the Deployment Manager to automate the installation of the Ops Agent on multiple instances.
Show answer and explanation
Correct answers: B, C, E
Explanation
To deploy the Ops Agent across multiple Compute Engine instances, using the gcloud command-line tool or Deployment Manager is recommended for efficient installation. Additionally, ensuring proper IAM roles are set up is crucial for the Ops Agent to function correctly by having the necessary permissions to send data to Cloud Monitoring and Logging.
- A. Incorrect.
A. The Google Cloud Console does not provide a direct mechanism for installing the Ops Agent on Compute Engine instances.
- B. Correct.
B. The gcloud command-line tool is a recommended method for installing the Ops Agent on Compute Engine instances.
- C. Correct.
C. Proper IAM roles are necessary for the Ops Agent to send data to Cloud Monitoring and Logging.
- D. Incorrect.
D. While you can manually download and configure the Ops Agent on each instance, it is not the most efficient method for deploying across multiple instances.
- E. Correct.
E. Using the Deployment Manager allows for automated installation and configuration of the Ops Agent across multiple instances, which is efficient for large deployments.