Downloading dependencies makes builds slow.
Reuse unchanged dependencies and intermediate files in the next build.
Which setting is most appropriate?
Configure a CodeBuild local or S3 cache for dependencies and build intermediates.
Detailed explanation
CDN caching is not CodeBuild dependency caching.
CDN caching is not CodeBuild dependency caching.
The cache preserves reusable dependencies and intermediates to reduce later build time.
The cache preserves reusable dependencies and intermediates to reduce later build time.
This increases downloads and removes cache benefits.
This increases downloads and removes cache benefits.
DNS records do not provide a build cache.
DNS records do not provide a build cache.
Check official documentation
Compare the following points with the official documentation.
AWS CodeBuild build cachingの公式説明を確認する。
What to confirm
ビルド成果物とビルドキャッシュの違いを説明できる。
Key points
- CodeBuild cache
- Dependency
- S3 cache
Notes
- Environment: AWS公式SOA-C03試験ガイドとAWS公式ドキュメントの確認
- Confirm current AWS service behavior in the official documentation.
Foundation review
Cache versus artifact
A cache accelerates a build; an artifact is the tested output delivered to a later stage.
Invalidation
Cache paths and dependency versions must be managed so stale content does not corrupt builds.