As a member of an operations team that uses infrastructure as code (IaC) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow IaC best practices for making a change?
A.
Clone the repository containing your infrastructure code and then run the code
B.
Use the public cloud console to make the change after a database record has been approved
C.
Make the change programmatically via the public cloud CLI
D.
Make the change via the public cloud API endpoint
E.
Submit a pull request and wait for an approved merge of the proposed changes
E. Submit a pull request and wait for an approved merge of the proposed changes.
As a member of an operations team that uses infrastructure as code (IaC) practices, the best practice for making a change to an infrastructure stack running in a public cloud is to submit a pull request (PR) and wait for an approved merge of the proposed changes. This approach follows the best practice of using version control for infrastructure code and collaborating through pull requests to review and approve changes. By following this process, changes to the infrastructure stack are tracked, reviewed, and approved in a controlled and auditable way.
Following IaC best practices, the recommended pattern for making a change to an infrastructure stack running in a public cloud would be to submit a pull request and wait for an approved merge of the proposed changes.
This approach allows you to use version control and review processes to ensure that changes to the infrastructure are carefully reviewed and tested before being applied. It also allows you to track changes over time and roll back any problematic changes if necessary.
Option A (cloning the repository and running the code) is a good first step, but it does not address the need for review and approval of the changes. Option B (using the public cloud console) is generally not recommended, as it bypasses the version control and review processes that are central to IaC best practices. Options C (making the change programmatically via the public cloud CLI) and D (making the change via the public cloud API endpoint) are both more in line with IaC best practices, as they allow you to automate the process of making changes, but they still do not address the need for review and approval of the changes.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
camps
1 year, 7 months agofedeX
1 year, 10 months agoInformationOverload
1 year, 11 months agodani88ge
2 years, 1 month agodepal_dhir
2 years, 2 months agokeiffo2
2 years, 2 months agokeiffo2
2 years, 2 months ago