AWS Certified Security – Specialty (SCS-C02) — Question 52
A company is running internal microservices on Amazon Elastic Container Service (Amazon ECS) with the Amazon EC2 launch type. The company is using Amazon Elastic Container Registry (Amazon ECR) private repositories.
A security engineer needs to encrypt the private repositories by using AWS Key Management Service (AWS KMS). The security engineer also needs to analyze the container images for any common vulnerabilities and exposures (CVEs).
Which solution will meet these requirements?
Answer options
- A. Enable KMS encryption on the existing ECR repositories. Install Amazon Inspector Agent from the ECS container instances’ user data. Run an assessment with the CVE rules.
- B. Recreate the ECR repositories with KMS encryption and ECR scanning enabled. Analyze the scan report after the next push of images.
- C. Recreate the ECR repositories with KMS encryption and ECR scanning enabled. Install AWS Systems Manager Agent on the ECS container instances. Run an inventory report.
- D. Enable KMS encryption on the existing ECR repositories. Use AWS Trusted Advisor to check the ECS container instances and to verify the findings against a list of current CVEs.
Correct answer: B
Explanation
Option B is correct because it directly addresses both requirements by recreating the ECR repositories with KMS encryption and enabling ECR scanning to analyze vulnerabilities. Options A and D do not enable ECR scanning as part of their solutions, which is essential for vulnerability analysis. Option C, while it mentions KMS and scanning, incorrectly suggests using the AWS Systems Manager Agent instead of enabling ECR scanning.