exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 129 discussion

A SysOps administrator is creating two AWS CloudFormation templates. The first template will create a VPC with associated resources, such as subnets, route tables, and an internet gateway. The second template will deploy application resources within the VPC that was created by the first template. The second template should refer to the resources created by the first template.

How can this be accomplished with the LEAST amount of administrative effort?

  • A. Add an export field to the outputs of the first template and import the values in the second template.
  • B. Create a custom resource that queries the stack created by the first template and retrieves the required values.
  • C. Create a mapping in the first template that is referenced by the second template.
  • D. Input the names of resources in the first template and refer to those names in the second template as a parameter.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
marcelodba
Highly Voted 1 year, 11 months ago
Selected Answer: A
A , You have to export first then import on 2nd template
upvoted 5 times
...
wooyourdaddy
Highly Voted 1 year, 6 months ago
Selected Answer: A
Note: To reference a resource in another AWS CloudFormation stack, you must first create cross-stack references. To create a cross-stack reference, use the export field to flag the value of a resource output for export. Ref link: https://repost.aws/knowledge-center/cloudformation-reference-resource Ref link: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-crossstackref.html
upvoted 5 times
...
james2033
Most Recent 8 months, 3 weeks ago
Selected Answer: A
'Export' output fields and 'Fn::ImportValue' , see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-crossstackref.html (1) https://s3.amazonaws.com/cloudformation-examples/user-guide/cross-stack/SampleNetworkCrossStack.template --> 'Export' (2) https://s3.amazonaws.com/cloudformation-examples/user-guide/cross-stack/SampleWebAppCrossStack.template --> 'Fn::ImportValue' "Export": { "Name": { "Fn::Sub": "${AWS::StackName}-VPCID" } } then "GroupSet": [ { "Fn::ImportValue": { "Fn::Sub": "${NetworkStackName}-SecurityGroupID" } } ],
upvoted 3 times
...
noahsark
1 year, 9 months ago
Selected Answer: A
https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-reference-resource/
upvoted 2 times
...
michaldavid
1 year, 11 months ago
Selected Answer: A
aaaaaa
upvoted 1 times
...
BugsBunny9998666
1 year, 11 months ago
Selected Answer: A
Its A, this question pop up in old topic for sys ops, there over 15 people voted A
upvoted 2 times
BugsBunny9998666
1 year, 11 months ago
here are some old comments A is correct! The optional Mappings section matches a key to a corresponding set of named values. For example, if you want to set values based on a region, you can create a mapping that uses the region name as a key and contains the values you want to specify for each specific region. You use the Fn::FindInMap intrinsic function to retrieve values in a map. You can't include parameters, pseudo parameters, or intrinsic functions in the Mappings section. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html A is correct, mappings have nothing to do in referencing from one stack to the other
upvoted 1 times
...
...
Fatoch
1 year, 12 months ago
It's c Answer is C
upvoted 2 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