exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 156 discussion

A company has a single developer writing code for an automated deployment pipeline. The developer is storing source code in an Amazon S3 bucket for each project. The company wants to add more developers to the team but is concerned about code conflicts and lost work. The company also wants to build a test environment to deploy newer versions of code for testing and allow developers to automatically deploy to both environments when code is changed in the repository.

What is the MOST efficient way to meet these requirements?

  • A. Create an AWS CodeCommit repository for each project, use the main branch for production code, and create a testing branch for code deployed to testing. Use feature branches to develop new features and pull requests to merge code to testing and main branches.
  • B. Create another S3 bucket for each project for testing code, and use an AWS Lambda function to promote code changes between testing and production buckets. Enable versioning on all buckets to prevent code conflicts.
  • C. Create an AWS CodeCommit repository for each project, and use the main branch for production and test code with different deployment pipelines for each environment. Use feature branches to develop new features.
  • D. Enable versioning and branching on each S3 bucket, use the main branch for production code, and create a testing branch for code deployed to testing. Have developers use each branch for developing in each environment.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
thanhnv142
Highly Voted 8 months, 2 weeks ago
Selected Answer: A
A is correct: < The developer is storing source code in an Amazon S3 bucket for each project> and < The company wants to add more developers to the team but is concerned about code conflicts and lost work> means we need codecommit B and D: no mention of code commnit C: Should not use the main branch for both production and test
upvoted 5 times
...
c3518fc
Most Recent 6 months ago
Selected Answer: A
By leveraging AWS CodeCommit and following Git branching best practices, the company can efficiently manage code changes, facilitate collaboration among developers, and automate deployments to both production and testing environments. This solution provides a scalable and organized approach to software development and deployment, while minimizing the risk of code conflicts and lost work.
upvoted 3 times
...
dkp
6 months, 2 weeks ago
Selected Answer: A
answer is A
upvoted 3 times
...
DanShone
7 months, 1 week ago
Selected Answer: A
A is correct
upvoted 3 times
...
a54b16f
9 months, 2 weeks ago
Selected Answer: A
typical branching strategy
upvoted 3 times
...
d262e67
9 months, 4 weeks ago
Selected Answer: A
Definitely A. C lacks proper strategy for pull requests for code merging. In general, it's a proper patter in software development.
upvoted 4 times
...
csG13
10 months ago
Selected Answer: A
It's A, since C suggests to merge to main branch non-production code. Although it's a working pattern, A is definitely more industry standard and safer.
upvoted 4 times
...
PrasannaBalaji
10 months ago
Correct answer is A. S3 not good choice , so eliminating B & D
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago