Bird
0
0

A developer tries to store a secret with the AWS CLI but gets a validation error. Which of these is a common cause?

medium📝 Debug Q7 of 15
AWS - Advanced Security
A developer tries to store a secret with the AWS CLI but gets a validation error. Which of these is a common cause?
AThe secret string is not valid JSON format.
BThe secret name contains only lowercase letters.
CThe secret value is too short (less than 1 character).
DThe AWS CLI version is outdated.
Step-by-Step Solution
Solution:
  1. Step 1: Understand secret string requirements

    Secrets Manager expects the secret string to be valid JSON if storing key-value pairs.
  2. Step 2: Identify common validation errors

    Invalid JSON format in the secret string causes validation errors during storage.
  3. Final Answer:

    The secret string is not valid JSON format. -> Option A
  4. Quick Check:

    Validation error often = invalid JSON secret string [OK]
Quick Trick: Secret strings must be valid JSON when key-value pairs used [OK]
Common Mistakes:
  • Thinking lowercase secret names cause errors
  • Assuming short secrets cause validation errors
  • Blaming CLI version without checking JSON format

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes