Help Center/ Well-Architected Framework/ Well-Architected Framework and Practices/ Operational Excellence Pillar/ OPS02 Frequent, Small, Reversible Changes Through CI/CD/ OPS02-02 Linking Source Code Versions to Deployed Applications and Applying Code Quality Best Practices
Updated on 2025-05-22 GMT+08:00

OPS02-02 Linking Source Code Versions to Deployed Applications and Applying Code Quality Best Practices

  • Risk level

    High

  • Key strategies

    In the code development phase, collaborative code design and management are required during development. Use a modern code repository to manage code. Ensure that the code is consistent after being merged and no change is lost. With proper version control, the modern code repository allows you to manage code versions, link source code to deployed application versions, and trace back to the source code once an application deployed on the cloud encounters any problem. If needed, you can roll back to a previous version using the corresponding source code.

    Throughout the software development lifecycle, developers should follow best practices like code reviews and pair programming to maintain code quality. Each line of code should be reviewed by at least two engineers before being merged. Enforce review standards by setting merge rules in the code repository. Finally, you are advised to use automated code checks to check code quality.