Bird
0
0

You want to create a reusable CloudFormation template that accepts a bucket name as input and outputs the bucket ARN. Which two sections must you include in your JSON template?

hard📝 Best Practice Q15 of 15
AWS - CloudFormation
You want to create a reusable CloudFormation template that accepts a bucket name as input and outputs the bucket ARN. Which two sections must you include in your JSON template?
AParameters and Outputs
BResources and Scripts
CFunctions and Parameters
DOutputs and Commands
Step-by-Step Solution
Solution:
  1. Step 1: Identify input and output sections needed

    To accept input like bucket name, use Parameters. To show output like ARN, use Outputs.
  2. Step 2: Confirm other sections are invalid

    Scripts, Functions, Commands are not valid top-level sections in CloudFormation templates.
  3. Final Answer:

    Parameters and Outputs -> Option A
  4. Quick Check:

    Input = Parameters, Output = Outputs [OK]
Quick Trick: Parameters take inputs; Outputs show results [OK]
Common Mistakes:
  • Using non-existent sections like Scripts or Commands
  • Confusing Resources with input/output sections
  • Forgetting to include Outputs for results

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes