exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 616 discussion

Exam question from Amazon's AWS-SysOps
Question #: 616
Topic #: 1
[All AWS-SysOps Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
saumenP
Highly Voted 2 years, 7 months ago
Ans is C https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-ug.pdf#best-practices
upvoted 9 times
...
jpush
Highly Voted 2 years, 6 months ago
When you organize your AWS resources based on lifecycle and ownership, you might want to build a stack that uses resources that are in another stack. You can hard-code values or use input parameters to pass resource names and IDs. However, these methods can make templates difficult to reuse or can increase the overhead to get a stack running. Instead, use cross-stack references to export resources from a stack so that other stacks can use them. Stacks can use the exported resources by calling them using the Fn::ImportValue function. For example, you might have a network stack that includes a VPC, a security group, and a subnet. You want all public web applications to use these resources. By exporting the resources, you allow all stacks with public web applications to use them Ans is C
upvoted 7 times
...
albert_kuo
Most Recent 10 months ago
Selected Answer: C
By creating a separate CloudFormation template specifically for creating the S3 bucket and exporting it, you establish a central resource that can be referenced by other service-specific templates. This allows different templates to import the S3 bucket and utilize it as a shared resource.
upvoted 1 times
...
antthomas
2 years, 1 month ago
Selected Answer: C
When you organize your AWS resources based on lifecycle and ownership, you might want to build a stack that uses resources that are in another stack. You can hard-code values or use input parameters to pass resource names and IDs. However, these methods can make templates difficult to reuse or can increase the overhead to get a stack running. Instead, use cross-stack references to export resources from a stack so that other stacks can use them. Stacks can use the exported resources by calling them using the Fn::ImportValue function. For example, you might have a network stack that includes a VPC, a security group, and a subnet. You want all public web applications to use these resources. By exporting the resources, you allow all stacks with public web applications to use them
upvoted 1 times
...
RicardoD
2 years, 6 months ago
C is the answer Whenever you have a resource that will be used by many stacks, it is best practice to create a template for this resource and export it to be used by other stack templates
upvoted 3 times
...
solotvun
2 years, 6 months ago
answer is C
upvoted 1 times
...
abhishek_m_86
2 years, 6 months ago
C. Create the S3 bucket in its own template and export it. Seem correct
upvoted 2 times
...
Radhaghosh
2 years, 6 months ago
A. Include the S3 bucket as a mapping in each template. - Wrong (as bucket info is not changing) B. Add the S3 bucket as a resource in each template. C. Create the S3 bucket in its own template and export it. - Best approach D. Generate the S3 bucket using StackSets. (not Required)
upvoted 1 times
...
jackdryan
2 years, 6 months ago
I'll go with C
upvoted 1 times
...
MFDOOM
2 years, 6 months ago
C. Create the S3 bucket in its own template and export it.
upvoted 1 times
...
waterzhong
2 years, 6 months ago
Answer should be C.
upvoted 2 times
...
shammous
2 years, 6 months ago
As all services are set in a separate template including S3, the right answer is to export it’s templates to other ones, hence answer C should be the correct one.
upvoted 1 times
...
Zia1981
2 years, 7 months ago
It should be A - Mapping is a static variable for the template. Why we are not choosing "A"?
upvoted 4 times
angelsrp
2 years, 6 months ago
I think because they do not specify that the bucket exists already, that's a common tricky sentence in these exams. Hence ans C
upvoted 2 times
...
...
gretch
2 years, 7 months ago
it's C B doesn't make any sense, so every stack will create the same bucket?!
upvoted 2 times
...
mano29
2 years, 7 months ago
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html As per that answer is B
upvoted 1 times
...
ezat
2 years, 7 months ago
I'll choose C
upvoted 1 times
...
leowenlu
2 years, 7 months ago
my guess is C
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago