DOP-C02 Practice Question 91: CodePipeline Cross Region Artifact Stores
AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 10 · question 1 of 10
A pipeline defined in us-east-1 must deploy a CloudFormation stack to eu-west-1 as one of its stages. The team wrote the pipeline in a single CloudFormation template and the deploy action keeps failing with an error that CodePipeline cannot find an artifact store for the target Region. The pipeline already runs successfully for stages that stay in us-east-1.
What must the template define so the cross-Region deploy action succeeds?
Show answer and explanation
Answer:
CodePipeline replicates artifacts to every Region an action targets, and it needs a bucket in each of those Regions to stage them in. A pipeline with actions in more than one Region must use the plural ArtifactStores property (instead of the single ArtifactStore) with one entry per Region, each naming an S3 bucket and, typically, a customer managed KMS key in that Region. CodePipeline itself does not create these buckets, so they have to already exist before the pipeline is created or updated.
Option A only grants permissions on an existing bucket reference inside the action, which is not where CodePipeline looks for a per-Region artifact store; the pipeline-level ArtifactStores property is what is missing, and permissions alone will not add the required Region mapping.
Option B confuses cross-Region artifact replication with cross-account role assumption. A RoleArn on an action lets it run using a role in another account, but it has nothing to do with telling CodePipeline where to stage replicated artifacts for a different Region.
Option C abandons the single-pipeline model CodePipeline already supports natively for cross-Region deployments, adding operational complexity (two pipelines to version and monitor, plus an EventBridge hand-off) for a problem the ArtifactStores property solves directly.
Reference: Create a pipeline with cross-Region actions