AWS Certified Security – Specialty — Question 281

A company's policy requires that all API keys be encrypted and stored separately from source code in a centralized security account. This security account is managed by the company's security team. However, an audit revealed that an API key is stored with the source code of an AWS Lambda function in an AWS
CodeCommit repository in the DevOps account.
How should the security team securely store the API key?

Answer options

Correct answer: C

Explanation

AWS Secrets Manager is the standard service for securely storing, rotating, and managing sensitive data like API keys, making Option C the correct choice as it centralizes the key in the security account and uses KMS for encryption. Option A keeps the key in the source code repository, while Option D stores the key directly in the DevOps account's Lambda environment variables, violating the policy of storing keys in the centralized security account. Option B is incorrect because utilizing presigned S3 URLs is an insecure and overly complex method for managing secrets compared to native AWS Secrets Manager integration.