Correct answer - "Enable S3 caching" : Downloading dependencies is a critical phase in the build
process. These dependent files can range in size from a few KBs to multiple MBs. Because most of
the dependent files do not change frequently between builds, you can noticeably reduce your
build time by caching dependencies in S3.
"Reduce the number of dependencies" - This is ideal but sometimes you may not have control over
this
"Ship all the dependencies as part of the source code" - Not a good practice as doing this will
increase your build time. If your dependencies are not changing then its best to cache them
"Setup a Nexus repository in EC2 that will act as an internal dependency cache" - CodeBuild has a
built in option for this which is better to let AWS handle these things so you can focus on code