exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 13 question 1 discussion

Actual exam question from Microsoft's AZ-300
Question #: 1
Topic #: 13
[All AZ-300 Questions]

You need to configure a host name for WebApp2.
What should you do first?

  • A. In Azure AD, add contoso.com as a custom domain name
  • B. In the public DNS zone of contoso.onmicrosoft.com, add an NS record
  • C. In Azure AD, add webapp2.azurewebsites.net as a custom domain name
  • D. In the public DNS zone of contoso.com, add a CNAME record
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Scenario: Ensure that webapp2.azurewebsites.net can be accessed by using the name app2.contoso.com
When you create a Cloud Service, Azure assigns it to a subdomain of cloudapp.net. For example, if your Cloud Service is named "contoso", your users will be able to access your application on a URL like http://contoso.cloudapp.net. Azure also assigns a virtual IP address.
However, you can also expose your application on your own domain name, such as contoso.com.
References:
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name-portal

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
cloudnoob19
Highly Voted 5 years, 6 months ago
Shouldn't it be D. In the public DNS zone of contoso.com, add a CNAME record of app2.contoso.com to webapp2.azurewebsites.net
upvoted 55 times
onlyfunmails
5 years, 4 months ago
its already exist as per Existing Environment - The network contains an Active Directory forest named contoso.com. All domain controllers are configured as DNS servers and host the contoso.com DNS zone.
upvoted 1 times
Ekramy_Elnaggar
5 years, 4 months ago
existing environment here means the Onpremise environment, not Azure Environment
upvoted 5 times
tartar
4 years, 8 months ago
D is ok
upvoted 1 times
...
...
...
Ekramy_Elnaggar
5 years, 4 months ago
Correct
upvoted 5 times
...
...
P0d
Highly Voted 4 years, 11 months ago
Answer is D: Steps which need: 1) Choose appservice plan 2) Verify domain 3) Map Cname record or IP + TXT record asuid.subdomain of your app in DNS 4) In app add your custom domain name. Thus we need just add record appname.websites.com in DNS. For the custom name we need to add DNS record in Public DNS zone
upvoted 7 times
...
MayurHG
Most Recent 4 years, 7 months ago
A, because webapp2.azurewebsites.net can be accessed by using the name app2.contoso.com. We have to add custom domain first.
upvoted 2 times
...
anishk
4 years, 7 months ago
Answer seems A This tutorial shows you how to buy an App Service domain and assign DNS names to Azure App Service https://docs.microsoft.com/en-us/azure/app-service/manage-custom-dns-buy-domain
upvoted 2 times
...
colinquek
4 years, 8 months ago
D What is a CNAME Record? A Canonical Name (CNAME) Record is used in the Domain Name System (DNS) to create an alias from one domain name to another domain name. A common example is the www subdomain which is provided as an alias to the root domain name - users accessing “www.example.com” are referred to the root domain (or DNS zone apex) “example.com”. https://ns1.com/resources/cname
upvoted 2 times
...
tundervirld
4 years, 8 months ago
Answer: D Explanation: To be able to access app2.contoso.com through webapp2.azurewebsites.net is CNAME. Reference: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
upvoted 1 times
...
Rooh
4 years, 8 months ago
answer is D definitely
upvoted 3 times
...
gboyega
4 years, 10 months ago
D is the answer From the Documentation https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain 1.It goes ahead to add the CNAME to the domain registrar first 2. it then goes to custom domain under app service to add and validate it
upvoted 4 times
...
tmurfet
4 years, 10 months ago
There's no mention of contoso.com as a *public* DNS zone in the case study requirements -- only the on-premise DNS is mentioned. So how do we know if the public DNS zone for contoso.com exists?
upvoted 1 times
Tombarc
4 years, 10 months ago
That's something I also noticed. It doesn't mention *public* DNS, it's mentioned all the offices are connected via private links, so why would we want a public DNS? I would pick option A.
upvoted 1 times
Tombarc
4 years, 10 months ago
Also, looking at the whole context, Contoso is moving to Azure and still uses the default domain "onmicrosoft.com". The requirements : "1: Synchronize on-premises Active Directory to Azure Active Directory (Azure AD)" "2: Migrate App1 and App2 to two Azure web apps named WebApp1 and WebApp2." You cannot synchronize the on-prem AD to Azure AD if there is a custom domain in Azure. The question asks: "What do you do first?"
upvoted 1 times
...
...
...
dumbu
4 years, 10 months ago
I think given answer C is correct, as the custom domain is already in place the app got contoso.com instead of cloudapp.net. As part of the requirement it needs to access using azurewebsites.net so adding a custom domain in AD will give app2.azurewebsites.net
upvoted 1 times
...
kondapaturi
4 years, 11 months ago
https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name-portal .. D is correct
upvoted 2 times
...
lepperboy
5 years ago
I'm thinking it is D also. That is the only solution I see working.
upvoted 2 times
...
DP80
5 years ago
Answer is D => https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name-portal
upvoted 2 times
...
Khang
5 years, 2 months ago
Should be D.
upvoted 3 times
...
NeerajKS
5 years, 3 months ago
Option D is the correct answer.
upvoted 5 times
...
PDR
5 years, 3 months ago
answer is D - the requirement is to access via apps.contoso.com and the on premises AD manages the DNS for contoso.com so it can only be in there that the records are set and it would require a cname as it needs to map to webapp2.azurewebsites.net - azurewebsites.net is a domain controlled by azure and assigned to webapps
upvoted 2 times
PDR
5 years, 3 months ago
so you could not as azurewebsites.net as a custom domain name as it would be imposible to verify as it is owned by MS
upvoted 2 times
...
...
RPAL
5 years, 4 months ago
Nothing to do with AD here.. Map a wildcard domain (for contoso.com) by using a CNAME record. Option D is correct
upvoted 4 times
SunnyAU
4 years, 8 months ago
Thats right. AD custom domains are for giving AD users a username that has the custom domain in it. In this question, we are dealing with Web Apps and external access to it. We would change DNS and add a CNAME.
upvoted 1 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