Which configuration should you use?

DRAG DROP
You plan to deploy a cloud service named contosoapp that has a web role named
contosoweb and a worker role named contosoimagepurge.
You need to ensure the service meets the following requirements:
+ Contosoweb can be accessed over the Internet by using http.
+ Contosoimagepurge can only be accessed through tcp port 5001 from contosoweb.
+ Contosoimagepurge cannot be accessed directly over the Internet.

Which configuration should you use? To answer, drag the appropriate configuration setting
to the correct location in the service configuration file. Each configuration setting may be
used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.

DRAG DROP
You plan to deploy a cloud service named contosoapp that has a web role named
contosoweb and a worker role named contosoimagepurge.
You need to ensure the service meets the following requirements:
+ Contosoweb can be accessed over the Internet by using http.
+ Contosoimagepurge can only be accessed through tcp port 5001 from contosoweb.
+ Contosoimagepurge cannot be accessed directly over the Internet.

Which configuration should you use? To answer, drag the appropriate configuration setting
to the correct location in the service configuration file. Each configuration setting may be
used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.

Answer:

Explanation:



Leave a Reply 12

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


jaido

jaido

this is so tiny i can hardly see what’s written… i guess dats a minus one for me

ehshaikh

ehshaikh

<ServiceDefinition name= “contosoapp”

joni

joni

is this correct?

Jony Jony

Jony Jony

I also don’t know papa!

BX

BX

The first block

The second block

The last block

BX

BX

Try again

The first block

The second block

The last block

BX

BX

Looks like the comment system does not like left angle bracket

Try again

The first block
InputEndpoint name=”Endpoint1″ protocol=”http” port=”80″ />

The second block
InputEndpoint name=”Endpoint1″ protocol=”tcp” port=”5001″ />

The last block
NetworkTrafficRules> !– already in the question —
OnlyAllowTrafficTo> !– already in the question —

Destinations>
RoleEndpoint endpointName=”Endpoint1″ roleName=”contosoimagepurge”/>
/Destinations>
WhenSource matches=”AnyRule”>
FromRole roleName=”contosoweb”/>
/WhenSource>

challenge

challenge

Agree

challenge

challenge

However even the ANSWERS given for the question seem wrong to me – how can you have two endpoints with the same name “Endpoint1” that reference different ports?

I think this: InputEndpoint name=”Endpoint1″ protocol=”tcp” port=”5001″

actually should be: InternalEndpoint name=”InternalEndpoint1″ protocol=”tcp” port=”5001″

and.. then

RoleEndpoint endpointName=”InternalEndpoint1″ roleName=”contosoimagepurge”/>
/Destinations>
WhenSource matches=”AnyRule”>
FromRole roleName=”contosoweb”/>

see:

http://www.codeproject.com/Articles/331391/Azure-Role-Endpoints-and-Network-Traffic-Rules

Prady

Prady

InternalEndpoint is correct for contosoimagepurge.
Contosoimagepurge can only be accessed through tcp port 5001 from *contosoweb*
contosoweb is an internal role and hence InternalEndpoint should be used.
“An internal endpoint is available only to other role instances running within the service; it is not available to clients outside the service.”
https://msdn.microsoft.com/en-us/library/azure/gg557552.aspx#InternalEndpoint