Bird
0
0

Why is it recommended to use AWS-specific parameter types like AWS::EC2::KeyPair::KeyName instead of generic String for parameters?

hard📝 Conceptual Q10 of 15
AWS - CloudFormation
Why is it recommended to use AWS-specific parameter types like AWS::EC2::KeyPair::KeyName instead of generic String for parameters?
AThey automatically encrypt parameter values
BThey allow parameters to accept any string without restrictions
CThey provide automatic validation against existing AWS resources
DThey disable parameter input during stack creation
Step-by-Step Solution
Solution:
  1. Step 1: Understand AWS-specific parameter types

    AWS-specific types validate input against actual AWS resource names or IDs.
  2. Step 2: Compare with generic String type behavior

    Generic String accepts any input without validation, risking errors.
  3. Final Answer:

    They provide automatic validation against existing AWS resources -> Option C
  4. Quick Check:

    AWS-specific types validate inputs for correctness [OK]
Quick Trick: AWS-specific types validate inputs, reducing errors [OK]
Common Mistakes:
  • Thinking AWS types accept any string
  • Assuming AWS types disable input
  • Confusing validation with encryption

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes