Google Professional Cloud DevOps Engineer Question 33
Select 3Google Cloud PlatformYou are managing a multi-environment setup in Google Cloud with staging and production environments. A new feature is deployed to staging, and after testing, you need to promote it to production. Which of the following actions ensure a smooth and consistent deployment process while minimizing risks?
- A
Use Infrastructure as Code (IaC) tools like Terraform to replicate infrastructure configurations across environments.
- B
Manually apply changes to the production environment after verifying the staging deployment.
- C
Use a CI/CD pipeline to promote the deployment artifact from staging to production.
- D
Ensure that environment-specific configuration values are stored in a secure and centralized configuration management system.
- E
Run staging and production on completely different cloud regions to avoid any potential overlap.
Show answer and explanation
Correct answers: A, C, D
Explanation
To manage multiple environments effectively, it's crucial to ensure consistency and automation while minimizing risks. Infrastructure as Code ensures environment parity, CI/CD pipelines automate artifact promotion, and centralized configuration management secures sensitive environment-specific values. Manual processes and unnecessarily complex setups, such as using different regions, should be avoided.
- A. Correct.
Using Infrastructure as Code (IaC) tools like Terraform ensures that the infrastructure configurations in staging and production are consistent, reducing the risk of discrepancies during deployment.
- B. Incorrect.
Manually applying changes increases the risk of human error and is not recommended for reliable and repeatable deployments in a DevOps workflow.
- C. Correct.
Using a CI/CD pipeline automates the promotion process, ensuring that the same artifact tested in staging is deployed to production, reducing the risk of introducing unexpected issues.
- D. Correct.
Storing environment-specific configuration values securely and centrally ensures consistent and secure handling of sensitive data across environments.
- E. Incorrect.
Running staging and production in completely different regions is unnecessary and can introduce complexity without significant benefit. Using separate projects or resource isolation within the same region is usually sufficient.