AWS Certified Security – Specialty (SCS-C02) — Question 23

A security engineer is checking an AWS CloudFormation template for vulnerabilities. The security engineer finds a parameter that has a default value that exposes an application's API key in plaintext. The parameter is referenced several times throughout the template. The security engineer must replace the parameter while maintaining the ability to reference the value in the template.
Which solution will meet these requirements in the MOST secure way?

Answer options

Correct answer: B

Explanation

The correct answer is B because AWS Secrets Manager is specifically designed for managing sensitive information like API keys securely. It allows for easy retrieval while keeping the key encrypted. The other options either do not provide the same level of security for sensitive data or are not meant for storing secrets, making them less suitable for this scenario.