AWS CodePipeline: Managing Artifacts in a Highly Available and Durable Manner

How AWS CodePipeline Manages Artifacts

Prev Question Next Question

Question

In a financial company, AWS CodePipeline has been used as the orchestration tool to manage pipelines.

Some other AWS services are configured in the pipelines, including CodeCommit, CodeBuild, CodeDeploy, etc.

There is a security policy that all artifacts generated during pipeline execution should be managed in a highly available and durable place.

Which statements are correct about how AWS CodePipeline manages artifacts? (Select TWO.)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - A, C.

During pipeline creation, user can select a default S3 bucket or a custom S3 bucket as the place to store artifacts:

Option A is CORRECT: As above screenshot, user can choose an S3 bucket that exists in the same region.

Option B is incorrect: Because EC2 EBS is invalid.

Option C is CORRECT: Because by default, an S3 bucket is allocated as the place to store artifacts.

For each pipeline, a dedicated folder is created in the S3 bucket.

Option D is incorrect: Because the bucket must belong to the same region.

Refer to.

https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html

For details.

Option E is incorrect: Because for CodeBuild, user can configure both input artifacts and output artifacts:

y Access management
Service access report

Review access activity to learn when a principal within the organizational entity last accessed a service. Data is available for services that are allowed by directly attached SCPs only. Recent activity usually appears within 4 hours. Data is stored for a
Users maximum of 365 days. Learn more [7

Groups

Rol
oes Q Search services < 123 4 5 6 7 .. 28
Policies
Identity providers Service Vv Last accessed
Account settings
AWS Organizations Today
y Access reports
AWS Identity and Access Management Today
Access analyzer
Archive rules ‘Amazon CloudWatch Today
Analyzers Amazon DynamoDB. Today
Settings
AWS Health APIs and Notifications Today
Credential report
‘Amazon CloudWatch Logs Today
Organization activity
AWS Trusted Advisor Today

Service control policies (CPs)

AWS CodePipeline is a fully managed continuous delivery service that enables developers to build, test, and deploy their code every time there is a code change. It orchestrates the entire software release process, including building, testing, and deploying code changes. As part of this process, CodePipeline generates artifacts that need to be managed in a highly available and durable place.

Here are the correct statements about how AWS CodePipeline manages artifacts:

A. User can select a custom S3 bucket as the artifact store while creating a new pipeline.

When creating a new pipeline, the user has the option to select a custom S3 bucket as the artifact store. The custom S3 bucket can be in the same region as the pipeline or in a different region. The user can also configure the pipeline to use an existing S3 bucket.

C. User can configure a default S3 bucket as the artifact store in the same region and account as the pipeline.

In addition to selecting a custom S3 bucket as the artifact store, the user can also configure a default S3 bucket as the artifact store in the same region and account as the pipeline. The default bucket is used when a custom bucket is not specified during pipeline creation. The user can also specify a default key prefix for the artifacts stored in the bucket.

B, D, and E are incorrect statements about how AWS CodePipeline manages artifacts.

B. Artifact can be stored in S3 or EC2 EBS.

While EC2 EBS can be used as a storage option for CodeBuild artifacts, it is not a supported storage option for CodePipeline artifacts. The only supported storage option for CodePipeline artifacts is Amazon S3.

D. When artifacts are saved in an S3 bucket, the bucket can belong to a different region.

When artifacts are saved in an S3 bucket, the bucket must be in the same region as the pipeline. CodePipeline does not support using an S3 bucket in a different region as the artifact store.

E. When CodeBuild is used in the build stage, user can only configure input artifacts but not output artifacts.

When CodeBuild is used in the build stage of a pipeline, the user can configure both input and output artifacts. Input artifacts are the files that are used as input to the build process, and output artifacts are the files generated by the build process that are uploaded to the artifact store.