Bird
0
0

You wrote this AWS CLI command to create a manual snapshot but got an error:

medium📝 Debug Q14 of 15
AWS - RDS and Relational Databases
You wrote this AWS CLI command to create a manual snapshot but got an error:
aws rds create-db-snapshot --db-instance-identifier mydbinstance
What is missing that causes the error?
AThe <code>--region</code> parameter is required for all commands.
BThe <code>--db-instance-identifier</code> value is incorrect and must be the snapshot name.
CThe <code>--db-snapshot-identifier</code> parameter with a snapshot name is missing.
DThe command must be run with sudo privileges.
Step-by-Step Solution
Solution:
  1. Step 1: Check required parameters for create-db-snapshot

    The command requires both --db-instance-identifier and --db-snapshot-identifier to name the snapshot.
  2. Step 2: Identify missing parameter

    The command lacks --db-snapshot-identifier, so AWS cannot create the snapshot without a name.
  3. Final Answer:

    The --db-snapshot-identifier parameter with a snapshot name is missing. -> Option C
  4. Quick Check:

    Missing snapshot ID causes error [OK]
Quick Trick: Always provide snapshot name with --db-snapshot-identifier [OK]
Common Mistakes:
MISTAKES
  • Forgetting to specify snapshot identifier
  • Assuming region is always mandatory
  • Thinking sudo is needed for AWS CLI commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes