Google Professional Cloud DevOps Engineer Question 71
Select 3Google Cloud PlatformYour organization uses Google Cloud to deploy applications and wants to ensure all deployment activities are auditable for compliance and troubleshooting purposes. You are tasked with setting up a solution to track deployments and retain their history. Which combination of services and configurations would you use to achieve this?
- A
Enable Cloud Audit Logs to track actions performed by Cloud Deploy.
- B
Use Artifact Registry to store application artifacts and enable access logging.
- C
Configure Cloud Build to log build details and results to Cloud Logging.
- D
Deploy applications using Cloud Functions and monitor execution logs exclusively.
- E
Set up a custom logging solution with a third-party tool to track all deployments.
Show answer and explanation
Correct answers: A, B, C
Explanation
To effectively audit and track deployments in Google Cloud, you need to leverage native tools like Cloud Audit Logs for auditing service actions, Artifact Registry for managing and logging artifact usage, and Cloud Build for detailed build logs. These services provide an integrated and robust solution for ensuring deployment history and compliance while adhering to Google Cloud best practices.
- A. Correct.
Correct. Cloud Audit Logs automatically record actions performed by Google Cloud services, including Cloud Deploy, and are essential for ensuring auditability.
- B. Correct.
Correct. Artifact Registry can store deployment artifacts, and enabling access logging helps track artifact usage and changes for compliance purposes.
- C. Correct.
Correct. Cloud Build integrates with Cloud Logging to store detailed build information, making it possible to trace and debug deployment pipelines.
- D. Incorrect.
Incorrect. While Cloud Functions logs are useful for monitoring the execution of functions, they do not provide a comprehensive audit trail for deployments.
- E. Incorrect.
Incorrect. While third-party logging tools can be used, Google Cloud's native solutions (Cloud Audit Logs, Cloud Build, and Artifact Registry) are recommended for seamless integration and compliance.