DOP-C02 Question 51
Select 3Your company is implementing a CI/CD pipeline using AWS CodePipeline. As part of the build phase, you need to generate and store application artifacts that will later be deployed to multiple environments. Which methods can you use to create and store the artifacts in AWS?
- A
Use AWS CodeBuild to create the artifacts and store them in an Amazon S3 bucket.
- B
Use AWS CodePipeline to directly create artifacts and store them in an Amazon DynamoDB table.
- C
Use a third-party tool like Jenkins to create the artifacts and store them in an Amazon S3 bucket.
- D
Use AWS CodePipeline to pass build output to AWS CodeDeploy, which automatically stores the artifacts in AWS Elastic File System (EFS).
- E
Use AWS CodeBuild to create the artifacts and push them to an Amazon Elastic Container Registry (ECR) repository.
Show answer and explanation
Correct answers: A, C, E
Explanation
In AWS, artifacts can be generated and stored using various methods depending on the use case. AWS CodeBuild is a native tool that can generate and store artifacts in Amazon S3 or push them to Amazon Elastic Container Registry (ECR) for containerized workflows. Third-party tools like Jenkins can also create artifacts and integrate with AWS services like S3 for storage. However, services like DynamoDB or EFS are not suitable for artifact storage in CI/CD pipelines.
- A. Correct.
This is correct. AWS CodeBuild generates artifacts during the build process and can directly store them in an Amazon S3 bucket as part of the buildspec configuration.
- B. Incorrect.
This is incorrect. AWS CodePipeline does not directly create artifacts, and DynamoDB is not designed for storing build artifacts.
- C. Correct.
This is correct. Third-party tools like Jenkins can be integrated into the pipeline to create artifacts and store them in S3, which is a common approach in hybrid CI/CD workflows.
- D. Incorrect.
This is incorrect. AWS CodePipeline and CodeDeploy do not store artifacts in AWS Elastic File System (EFS). Artifacts are typically stored in S3 or ECR depending on the use case.
- E. Correct.
This is correct. AWS CodeBuild can create container images as artifacts and push them to Amazon Elastic Container Registry (ECR) for use in containerized deployment workflows.