
Answer-first summary for fast verification
Answer: Enable CodeBuild timeouts
A build represents a set of actions performed by AWS CodeBuild to create output artifacts (for example, a JAR file) based on a set of input artifacts (for example, a collection of Java class files). The following rules apply when you run multiple builds: When possible, builds run concurrently. The maximum number of concurrently running builds can vary. Builds are queued if the number of concurrently running builds reaches its limit. The maximum number of builds in a queue is five times the concurrent build limit. A build in a queue that does not start after the number of minutes specified in its time out value is removed from the queue. The default timeout value is eight hours. You can override the build queue timeout with a value between five minutes and eight hours when you run your build. By setting the timeout configuration, the build process will automatically terminate post the expiry of the configured timeout.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You're a developer working on a large-scale order processing application. After implementing new features, you commit your code to AWS CodeCommit and initiate a build process using AWS CodeBuild. However, you notice that the build duration is excessively long due to problems with resolving dependencies from a third-party source. You want to avoid such prolonged build times in the future due to similar dependency issues.
Which of the following options provides the most effective solution to prevent this from happening again?
A
Use AWS Lambda
B
Enable CodeBuild timeouts
C
Use VPC Flow Logs
D
Use AWS CloudWatch Events
No comments yet.