nerdexam
Amazon

DVA-C02 · Question #284

A company notices that credentials that the company uses to connect to an external software as a service (SaaS) vendor are stored in a configuration file as plaintext. The developer needs to secure…

The correct answer is C. Store the credentials in AWS Secrets Manager and enable rotation. Configure the API to have. AWS Secrets Manager is purpose-built for storing and automatically rotating third-party API credentials with native rotation scheduling support.

Submitted by sofia.br· Mar 5, 2026Security

Question

A company notices that credentials that the company uses to connect to an external software as a service (SaaS) vendor are stored in a configuration file as plaintext. The developer needs to secure the API credentials and enforce automatic credentials rotation on a quarterly basis. Which solution will meet these requirements MOST securely?

Options

  • AUse AWS Key Management Service (AWS KMS) to encrypt the configuration file. Decrypt the
  • BRetrieve temporary credentials from AWS Security Token Service (AWS STS) every 15 minutes.
  • CStore the credentials in AWS Secrets Manager and enable rotation. Configure the API to have
  • DStore the credentials in AWS Systems Manager Parameter Store and enable rotation. Retrieve

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    7% (2)
  • C
    77% (23)
  • D
    13% (4)

Why each option

AWS Secrets Manager is purpose-built for storing and automatically rotating third-party API credentials with native rotation scheduling support.

AUse AWS Key Management Service (AWS KMS) to encrypt the configuration file. Decrypt the

KMS encrypts the configuration file on disk, but the decrypted credentials are still read into memory from a file at runtime; this does not support automatic credential rotation and still requires distributing and managing the encrypted file.

BRetrieve temporary credentials from AWS Security Token Service (AWS STS) every 15 minutes.

AWS STS issues temporary credentials for AWS IAM principals, not for authenticating to external third-party SaaS vendors; STS cannot generate or rotate external API keys.

CStore the credentials in AWS Secrets Manager and enable rotation. Configure the API to haveCorrect

AWS Secrets Manager stores credentials encrypted using AWS KMS, retrieves them at runtime via SDK calls, and supports automatic rotation on a configurable schedule (e.g., quarterly). The application is updated to call Secrets Manager at runtime instead of reading a plaintext config file, ensuring credentials are never stored in code or on disk and are automatically refreshed.

DStore the credentials in AWS Systems Manager Parameter Store and enable rotation. Retrieve

AWS Systems Manager Parameter Store supports storing secrets but does not have native built-in automatic rotation functionality for third-party credentials the way Secrets Manager does; rotation must be implemented manually with a Lambda function.

Concept tested: AWS Secrets Manager automatic credential rotation for third-party APIs

Source: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice