Q66 — AWS DOP-C02 Ch.1
Question 66 of 100 | ← Chapter 1
A company has an application composed of four independent AWS Lambda functions. A DevOps engineer built a CI/CD pipeline using AWS CodePipeline and AWS CodeBuild to sequentially build, test, package, and deploy each Lambda function. The pipeline uses Amazon EventBridge rules to trigger immediately after application source code changes. After using the pipeline for several weeks, the DevOps engineer notices it takes too long to complete. What should the DevOps engineer implement to best improve pipeline speed?
- A. Modify the CodeBuild projects in the pipeline to use a compute type with higher available network throughput.
- B. Create a custom CodeBuild execution environment with symmetric multiprocessing configuration to run builds in parallel.
- C. Modify the CodePipeline configuration to run operations for each Lambda function in parallel by specifying the same run order. ✓
- D. Modify each CodeBuild project to run within a VPC and use dedicated instances to increase throughput.
Correct Answer: C. Modify the CodePipeline configuration to run operations for each Lambda function in parallel by specifying the same run order.
Explanation
AWS CodePipeline supports parallel execution of actions within a stage to accelerate workflows. Since each Lambda function’s build, test, and deploy steps are independent and have no interdependencies, running them sequentially causes cumulative delay. Configuring these actions to execute in parallel across the same stage reduces total pipeline duration significantly. Option C correctly leverages native CodePipeline parallelism. Options A, B, and D focus on optimizing individual task performance but fail to address the root cause: sequential execution. [AWS CodePipeline User Guide: Parallel Actions](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#actions-valid-providers)