Which code snippet below returns the URL of a load balanced web site created in CloudFormation…

Which code snippet below returns the URL of a load balanced web site created in
CloudFormation with an AWS::ElasticLoadBalancing::LoadBalancer resource name
“ElasticLoad Balancer”?

Which code snippet below returns the URL of a load balanced web site created in
CloudFormation with an AWS::ElasticLoadBalancing::LoadBalancer resource name
“ElasticLoad Balancer”?

A.
“Fn::Join” : [“”. [ “http://”, {“Fn::GetAtr” : [ “ElasticLoadBalancer”,”DNSName”]}]]

B.
“Fn::Join” : [“.”, [ “http://”, {“Ref” : “ElasticLoadBalancerDNSName”}]]

C.
“Fn::Join” : [“”. [ “http://”, {“Ref” : “ElasticLoadBalancerUrl”}]]

D.
“Fn::Join” : [“”. [ “http://”, {“Fn::GetAtr” : [ “ElasticLoadBalancer”,”Url”]}]]



Leave a Reply 7

Your email address will not be published. Required fields are marked *


raysmithvic1978

raysmithvic1978

A

Ram

Ram

Answer is D

Declaration
JSON
{ “Fn::GetAtt” : [ “logicalNameOfResource”, “attributeName” ] }

Because the attribute in question being asked is URL and not DNS Name

Vishal Joshi

Vishal Joshi

A is the answer with following correction in the intrinsic function: GetAtr should be GetAtt.

“Fn::Join” : [“”. [ “http://”, {“Fn::GetAtt” : [ “ElasticLoadBalancer”,”DNSName”]}]]