
Answer-first summary for fast verification
Answer: Store your code in a Git-based version control system. Establish a process that includes code reviews by peers and unit testing to ensure integrity and functionality before integration of code. Establish a process where the fully integrated code in the repository becomes the latest master version.
This is the correct answer because version control systems like Git provide a way to track changes to your code, and to ensure that different engineers are able to work on the same code without overwriting each other‘s changes. Peer code reviews and unit testing can also help to ensure that the code is functioning as intended and that no mistakes are introduced. Establishing a process where the fully integrated code in the repository becomes the latest master version can further help to ensure that only the most up-to-date version of the code is being used.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
As a DevOps Engineer responsible for defining infrastructure using Terraform, you need to collaborate with two new engineers on the same codebase without conflicts. What is the best approach to ensure all updates are captured in the latest version?
A
Store your code in a Git-based version control system. Establish a process that allows developers to merge their own changes at the end of each day. Package and upload code to a versioned Cloud Storage basket as the latest master version.
B
Store your code as text files in Google Drive in a defined folder structure that organizes the files. At the end of each day, confirm that all changes have been captured in the files within the folder structure. Rename the folder structure with a predefined naming convention that increments the version.
C
Store your code in a Git-based version control system. Establish a process that includes code reviews by peers and unit testing to ensure integrity and functionality before integration of code. Establish a process where the fully integrated code in the repository becomes the latest master version.
D
Store your code as text files in Google Drive in a defined folder structure that organizes the files. At the end of each day, confirm that all changes have been captured in the files within the folder structure and create a new .zip archive with a predefined naming convention. Upload the .zip archive to a versioned Cloud Storage bucket and accept it as the latest version.