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

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.