Q39 — AWS DOP-C02 Ch.2
Question 39 of 100 | ← Chapter 2
A development team recently expanded, increasing the number of projects hosted in separate code repositories. Current processes involve manually configuring AWS CodePipeline. A service limit alert has been triggered regarding the number of existing Amazon S3 buckets.
- A. Merge multiple independent code repositories into one and deploy using a single AWS CodePipeline with project-specific logic.
- B. Use the AWS API or AWS CLI to create new pipelines and configure them to use a single S3 bucket, with each project assigned a unique prefix. ✓
- C. Create a new pipeline in a different Region for each project to bypass the S3 bucket service limit in a single Region.
- D. Use the AWS API or AWS CLI to bypass the S3 bucket service limit per account and create a new pipeline and S3 bucket for each project.
Correct Answer: B. Use the AWS API or AWS CLI to create new pipelines and configure them to use a single S3 bucket, with each project assigned a unique prefix.
Explanation
Given service limit alerts about the number of S3 buckets, the goal is to reduce the total bucket count. Option B proposes using a single S3 bucket with distinct prefixes per project, effectively minimizing bucket proliferation while preserving project isolation and manageability. Option A may reduce buckets but introduces pipeline complexity. Options C and D increase bucket count, worsening the service limit alert. Thus, Option B is the optimal solution to reduce S3 bucket sprawl.