Which solution will meet these requirements MOST cost-effectively?
Store the credentials in AWS Secrets Manager. Retrieve the credentials by using the GetSecretValue API operation.
Store the credentials in AWS Key Management Service (AWS KMS). Retrieve the credentials by using the GetPublicKey API operation.
Store the credentials in AWS Security Token Service (AWS STS). Retrieve the credentials by using the GetCallerldentity API operation.
Store the credentials in AWS Systems Manager Parameter Store. Retrieve the credentials by using the GetParameter API operation.
Explanations:
AWS Secrets Manager is a good solution for managing secrets, but it may be more expensive than AWS Systems Manager Parameter Store, which is sufficient for this use case.
AWS Key Management Service (AWS KMS) is used for encryption key management, not for storing credentials. The GetPublicKey API is not designed for retrieving secrets.
AWS Security Token Service (AWS STS) is used for temporary credentials and identity management, not for storing long-term API credentials.
AWS Systems Manager Parameter Store is cost-effective for storing API credentials and allows retrieval through the GetParameter API operation, meeting the requirements.