AWS Certified SysOps Administrator – Associate (legacy) — Question 873
A SysOps Administrator must take a team's single existing AWS CloudFormation template and split it into smaller, service-specific templates. All of the services in the template reference a single, shared Amazon S3 bucket.
What should the Administrator do to ensure that this S3 bucket can be referenced by all the service templates?
Answer options
- A. Include the S3 bucket as a mapping in each template.
- B. Add the S3 bucket as a resource in each template.
- C. Create the S3 bucket in its own template and export it.
- D. Generate the S3 bucket using StackSets.
Correct answer: B
Explanation
To share a single Amazon S3 bucket across multiple AWS CloudFormation stacks, the best practice is to define the bucket in its own dedicated template and export its output. Other service-specific templates can then import this value using the Fn::ImportValue intrinsic function, which avoids resource duplication and maintains a decoupled architecture.