An EC2 Image Builder pipeline must distribute AMIs only after confirming that hardened settings survive a reboot and a required security agent starts in instances launched from the resulting image. Which design BEST meets these requirements without relying on production-instance remediation?
Show the answer
Correct answerA. Apply hardening during the build, then enforce the checks in the test stage before distribution.
AWhy this is right: The test stage checks the resulting image before distribution and can fail the pipeline when required controls are absent.
BWhy not this: Launch-time remediation does not ensure that the distributed AMI already contains working security controls.
CWhy not this: Patch compliance does not establish that hardened settings persist or that the security agent starts from the resulting image.
DWhy not this: Build-phase validation checks the build instance rather than startup behavior in an instance launched from the resulting AMI.
Image Builder tests run against instances launched from the built image, allowing checks of persisted settings and agent startup before distribution. Build-phase validation checks the build instance, not whether the resulting AMI launches with those controls intact.