DOP-C02 · Question #415
A company needs to manage shared libraries for various projects across its development AWS account and production AWS account. The company has configured IAM roles for developers and has defined an AW
The correct answer is B. Create an AWS CodeArtifact repository in the development account. Create another CodeArtifact. Creating separate AWS CodeArtifact repositories for development and production provides strong environment isolation. Restricting developer access to the development repository with a repository policy ensures that only authorized users can access shared libraries before they are
Question
A company needs to manage shared libraries for various projects across its development AWS account and production AWS account. The company has configured IAM roles for developers and has defined an AWS CodePipeline pipeline by using the AWS Cloud Development Kit (AWS CDK). A DevOps engineer must implement a solution to ensure that only developers can access the latest versions of the libraries. The solution must test shared packages independently before the shared packages are consumed by other applications and before they go to production. Which solution will meet these requirements?
Options
- ACreate a single AWS CodeArtifact repository for development and production in a central
- BCreate an AWS CodeArtifact repository in the development account. Create another CodeArtifact
- CCreate a single Amazon S3 bucket with versioning enabled for development and production in a
- DCreate an Amazon S3 bucket with versioning enabled in the development account. Create
How the community answered
(45 responses)- A13% (6)
- B78% (35)
- C2% (1)
- D7% (3)
Explanation
Creating separate AWS CodeArtifact repositories for development and production provides strong environment isolation. Restricting developer access to the development repository with a repository policy ensures that only authorized users can access shared libraries before they are promoted. Using an EventBridge rule to trigger testing before copying packages to production enforces quality control and prevents untested packages from reaching production.
Topics
Community Discussion
No community discussion yet for this question.