PrepAway - Latest Free Exam Questions & Answers

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”?

PrepAway - Latest Free Exam Questions & Answers

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”]}]]

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

  1. Ram says:

    Answer is D

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

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




    0



    1
  2. Vishal Joshi says:

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

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




    0



    0

Leave a Reply

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