Q93 — AWS DOP-C02 Ch.2
Question 93 of 100 | ← Chapter 2
An enterprise application comprises several independent AWS Lambda functions. A DevOps engineer uses AWS CodePipeline and AWS CodeBuild to build a CI/CD pipeline that sequentially builds, tests, packages, and deploys each Lambda function. The pipeline uses Amazon CloudWatch Events rules to trigger execution immediately after changes to the corresponding application source code. After using the pipeline for several weeks, the DevOps engineer observes that pipeline execution takes significantly longer than expected.
- 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 that includes symmetric multiprocessing configuration to run builds in parallel.
- C. Modify the CodePipeline configuration to execute operations for each Lambda function in parallel by specifying identical runOrder values. ✓
- D. Modify each CodeBuild project to run inside a VPC and use dedicated instances to increase throughput.
Correct Answer: C. Modify the CodePipeline configuration to execute operations for each Lambda function in parallel by specifying identical runOrder values.
Explanation
Option C is optimal because parallel execution of each Lambda function’s pipeline stages significantly reduces total pipeline duration. By executing operations concurrently instead of sequentially, resource utilization improves and overall CI/CD cycle time decreases. This approach directly addresses the root cause — sequential processing — and delivers maximum efficiency gain without requiring infrastructure changes or custom environments.