A company needs to programmatically manage an API key to call a third-party HTTP API from its application. Integration with the application code must not negatively affect performance. Which option stores and provides the API key MOST securely?
Choose an answer
Tap an option to check your answer.
Correct answer: Store the API key in AWS Secrets Manager and retrieve it at runtime by using the AWS SDK to call the third-party API..
Why this is the answer
Storing the API key in AWS Secrets Manager and retrieving it at runtime using the AWS SDK is the most secure and performant option. Secrets Manager is designed specifically for securely storing and rotating sensitive credentials like API keys, database credentials, and other secrets. The AWS SDK provides efficient and secure methods for retrieving these secrets, ensuring they are not hardcoded or exposed in less secure locations. Embedding the API key in application code, even in a secure Git repository, is a security anti-pattern as it risks exposure if the repository is compromised or accessed improperly. Storing the key in a private S3 bucket or a DynamoDB table, while offering some access control, is not their primary purpose and lacks the specialized security features (like automatic rotation and fine-grained access policies) that Secrets Manager provides for credential management.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed