Bird
0
0

Given this AWS CLI command:

medium📝 Predict Output Q4 of 15
AWS - Advanced Security
Given this AWS CLI command:
aws secretsmanager get-secret-value --secret-id MySecret
What will be the main output if the secret exists?
AA JSON object containing the secret string and metadata
BAn error message saying secret not found
CA plain text string of the secret only
DA list of all secrets in the account
Step-by-Step Solution
Solution:
  1. Step 1: Understand the AWS CLI get-secret-value command

    This command retrieves the secret value and returns it as a JSON object including metadata like ARN, version, and the secret string.
  2. Step 2: Identify expected output when secret exists

    The output is not just the secret string but a JSON object wrapping it with additional info.
  3. Final Answer:

    A JSON object containing the secret string and metadata -> Option A
  4. Quick Check:

    Output type = JSON object with secret and metadata [OK]
Quick Trick: Get-secret-value returns JSON with secret and metadata [OK]
Common Mistakes:
  • Expecting only plain text secret string
  • Assuming error when secret exists
  • Confusing with list-secrets command output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes