Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud DevOps Engineer topic 1 question 28 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 28
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are responsible for creating and modifying the Terraform templates that define your Infrastructure. Because two new engineers will also be working on the same code, you need to define a process and adopt a tool that will prevent you from overwriting each other's code. You also want to ensure that you capture all updates in the latest version. What should you do?

  • 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 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.
  • C. ג€¢ 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.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
devopsbatch
Highly Voted 2 years, 11 months ago
B peer review and source code management tool required
upvoted 31 times
akg001
2 years, 11 months ago
Agree with you. Answer is B
upvoted 5 times
...
...
Charun
Highly Voted 2 years, 10 months ago
B for sure
upvoted 6 times
...
habla2019pasta
Most Recent 4 days, 9 hours ago
Selected Answer: B
B. Terraform state should never be on a dev machine.. Instead it should be hosted on a sever that is access controlled and updated from latest git commit
upvoted 1 times
...
jomonkp
5 months, 2 weeks ago
Selected Answer: B
Option B
upvoted 2 times
...
maxdanny
6 months ago
Selected Answer: B
B is correct because the terraform source file they must be versioned with Git control, Furthermore, changes must be merged and approved before going into production
upvoted 1 times
...
raghu09
1 year, 1 month ago
Selected Answer: B
A can't be the option why the code be pushed to any other storage when it is Git based?
upvoted 1 times
...
JonathanSJ
1 year, 4 months ago
Selected Answer: B
B. 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. Explanation: Using a Git-based version control system such as GitHub or GitLab is a best practice for managing code in a collaborative environment. It provides a central repository where all changes are tracked and versioned, and it also allows for concurrent development by multiple team members. Establishing a process that includes code reviews by peers and unit testing before merging changes ensures the integrity and functionality of the code, and it also helps to prevent conflicts and errors. Once the changes are fully integrated and tested, the latest version of the code in the repository should be considered the master version, and this should be the version that is used for deployment.
upvoted 4 times
...
floppino
1 year, 4 months ago
Selected Answer: B
Ans: B Exam passed and taken on 19/12/2022, 50/50 from this dump without buying the full access and looking for 'devops' word here: https://www.examtopics.com/discussions/google/1/
upvoted 1 times
...
GCP72
1 year, 9 months ago
Selected Answer: B
B is correct ans
upvoted 1 times
...
Learning_GCP
1 year, 10 months ago
The important thing here is to avoid overwriting the code, not unit testing and other things. I am confused.
upvoted 1 times
...
Ananda
2 years ago
Selected Answer: B
submitted B
upvoted 1 times
...
Aiffone
2 years ago
Does code review guarantee codes wont be overwritten or its merging of codes that guarantees this?
upvoted 1 times
Feliphus
4 months, 4 weeks ago
This is one of the main role in a GIT based system: to allow some peers/coders working together and avoid overwritten the code between them. The first thing you do in the morning is to fetch your local copy of the code, to be sure you are updated previous you start coding. Although the better option, if the project allows it, that you were the only person working on a specific branch. In this case, there is not going to be overwritten problems
upvoted 1 times
...
...
Aiffone
2 years ago
I wanto go with A because B (code review) does not guarantee the developers won't over write each other's codes.
upvoted 1 times
...
PhilipKoku
2 years, 3 months ago
Selected Answer: B
B - Git based repository + Peer review and Unit testing
upvoted 2 times
...
cyrus86
2 years, 3 months ago
Selected Answer: B
gitflow
upvoted 1 times
...
Murty549
2 years, 3 months ago
Selected Answer: B
B is correct. A is false because the code is already stored in a got repo, so there is no need to upload the code to the cloud storage bucket.
upvoted 3 times
AzureDP900
1 year, 6 months ago
yes, exactly. B is perfect
upvoted 1 times
...
...
Sekierer
2 years, 3 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...