Bird
0
0

What is the correct AWS CLI command to fetch the secret value of 'prod/db-password' from AWS Secrets Manager?

easy📝 Conceptual Q3 of 15
Microservices - Configuration and Secrets Management
What is the correct AWS CLI command to fetch the secret value of 'prod/db-password' from AWS Secrets Manager?
Aaws secretsmanager fetch --id prod/db-password
Baws secretsmanager retrieve-secret --name prod/db-password
Caws secretsmanager get-secret-value --secret-id prod/db-password
Daws secretsmanager list-secrets --filter prod/db-password
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI command

    The command to get a secret's value is 'aws secretsmanager get-secret-value' with the '--secret-id' parameter.
  2. Step 2: Check options

    Only aws secretsmanager get-secret-value --secret-id prod/db-password uses the correct command and parameter syntax.
  3. Final Answer:

    aws secretsmanager get-secret-value --secret-id prod/db-password -> Option C
  4. Quick Check:

    Use 'get-secret-value' with '--secret-id' [OK]
Quick Trick: Use 'get-secret-value' and '--secret-id' to retrieve secrets [OK]
Common Mistakes:
  • Using incorrect commands like 'retrieve-secret' or 'fetch'
  • Confusing secret name with secret ID parameter
  • Using list-secrets instead of get-secret-value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes