ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 499 - SAP-C01 discussion

Report
Export

You have written a CloudFormation template that creates 1 Elastic Load Balancer fronting 2 EC2 Instances. Which section of the template should you edit so that the DNS of the load balancer is returned upon creation of the stack?

A.
Parameters
Answers
A.
Parameters
B.
Outputs
Answers
B.
Outputs
C.
Mappings
Answers
C.
Mappings
D.
Resources
Answers
D.
Resources
Suggested answer: B

Explanation:

You can use AWS CloudFormation's sample templates or create your own templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run your application. In the following example, the output named BackupLoadBalancerDNSName returns the DNS name for the resource with the logical ID BackupLoadBalancer only when the CreateProdResources condition is true. (The second output shows how to specify multiple outputs.) "Outputs" : { "BackupLoadBalancerDNSName" : {

"Description": "The DNSName of the backup load balancer", "Value" : { "Fn::GetAtt" : [ "BackupLoadBalancer", "DNSName" ]}, "Condition" : "CreateProdResources"

},

"InstanceID" : {

"Description": "The Instance ID", "Value" : { "Ref" : "EC2Instance" }

}

}

Reference: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html

asked 16/09/2024
Alper Atar
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first