Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-304 topic 4 question 20 discussion

Actual exam question from Microsoft's AZ-304
Question #: 20
Topic #: 4
[All AZ-304 Questions]

DRAG DROP -
The developers at your company are building a static web app to support users sending text messages. The app must meet the following requirements:
✑ Website latency must be consistent for users in different geographical regions.
✑ Users must be able to authenticate by using Twitter and Facebook.
✑ Code must include only HTML, native JavaScript, and jQuery.
✑ Costs must be minimized.
Which Azure service should you use to complete the architecture? To answer, drag the appropriate services to the correct locations. Each service 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.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Azure App Service plan (Basic)
With App Service you can authenticate your customers with Azure Active Directory, and integrate with Facebook, Twitter, Google.

Box 2: Azure Functions -
You can send SMS messages with Azure Functions with Javascript.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory-b2c/partner-whoiam https://www.codeproject.com/Articles/1368337/Implementing-SMS-API-using-Azure-Serverless-Functi

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Koba
Highly Voted 3 years, 1 month ago
I think CDN & Function https://techcommunity.microsoft.com/t5/azure-developer-community-blog/azure-on-the-cheap-azure-front-door-caching-vs-azure-cdn/ba-p/1372262
upvoted 63 times
altafpatel1984
2 years, 2 months ago
I guess CDN can host only static contents like js, css, images. not Html
upvoted 1 times
...
aspirin
2 years, 11 months ago
CDN & Function because "Costs must be minimized."
upvoted 4 times
...
[Removed]
3 years, 1 month ago
Agreed, content delivery and function
upvoted 2 times
...
sjai
2 years, 6 months ago
How would you register the App for B2C Authentication with CDN
upvoted 1 times
Spooky7
2 years, 6 months ago
You doing that in your Azure AD B2C tenant. After that your web application can simply do http request to get token.
upvoted 1 times
...
rdemontis
2 years, 4 months ago
Registering an app on Azure AD B2C is independent of the platform hosting the app itself. What you need to provide is the url of the app where the access token should be returned. In this case we are talking about an SPA and the following document can help you understand the process better: https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-spa
upvoted 1 times
...
...
...
Stephan99
Highly Voted 3 years, 1 month ago
1. Azure CDN 2. Azure Logic app to Send SMS
upvoted 28 times
BrettusMaximus
2 years, 9 months ago
Logic Apps cannot be triggered from Storage events, only functions can be triggered.
upvoted 9 times
dennnnnnnnnn
2 years, 8 months ago
The request for user to send the sms from the website is implemented by javascript and jquery. This send http request to service endpoint trigger the logic apps
upvoted 1 times
...
sidvic
2 years, 8 months ago
it's not true https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage?tabs=single-tenant#add-blob-storage-trigger
upvoted 1 times
...
booboo2k
2 years, 7 months ago
yes, correct.
upvoted 3 times
...
...
aabdous
2 years, 7 months ago
I'm not agree, you need an app service to host contents and cdn for cache and delivery
upvoted 2 times
...
...
cloudera
Most Recent 2 years ago
The website itself is hosted on Storage (at the centre of the arch presented) so you don't need an App Service plan. But storage/blob storage can only host static websites. Therefore, you need the Azure function to make it dynamic (together with JS and jQuery), and then you can use Logic App to send SMS. FYI AWS s3 with Function/Lambda can o the same thing. This is one of the smartest and cheapest ways of hosting a website.
upvoted 1 times
...
Choquito
2 years, 1 month ago
CDN is not an azure service. Azure Front Door should be the answer and azure functions
upvoted 1 times
...
anupam77
2 years, 1 month ago
I think:- >> Azure App Service Plan Because: "Users must be able to authenticate by using Twitter and Facebook" https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-facebook https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization >> Azure Function https://www.c-sharpcorner.com/article/how-to-send-read-messages-from-azure-service-bus-queues-using-azure/
upvoted 3 times
...
et020421
2 years, 1 month ago
CDN is best balance between cost and geographic latency requirements. Sending SMS from logic apps seems to be the way Microsoft wants us to go. https://docs.microsoft.com/en-us/azure/communication-services/quickstarts/sms/logic-app
upvoted 1 times
...
qerem
2 years, 3 months ago
"Code must include only HTML, native JavaScript, and jQuery." Azure Function supports only node.js not native JavaScript so i think Logic App
upvoted 1 times
...
sujitwarrier11
2 years, 3 months ago
I think its CDN as they have mentioned App Service Plan and not App Service.
upvoted 1 times
...
Dpejic
2 years, 3 months ago
On exam 24.12.2021
upvoted 1 times
...
Dpejic
2 years, 3 months ago
On Exam today 22-dec-2021
upvoted 1 times
...
parkranger
2 years, 5 months ago
app service (Web) is fine, but it does not meet the requirement of "Website latency must be consistent for users in different geographical regions." --- so backend server (static page from storage account) and cache through CDN to meet the geographical region requirement
upvoted 2 times
...
chichi0307
2 years, 6 months ago
App service plan ( provide built in authentication/ authorisation - Facebook Twitter login) Azure Function
upvoted 2 times
...
syu31svc
2 years, 6 months ago
https://docs.microsoft.com/en-us/azure/storage/blobs/static-website-content-delivery-network You can enable Azure Content Delivery Network (CDN) to cache content from a static website that is hosted in an Azure storage account Service to send SMS is definitely Azure Functions for "Costs must be minimized"
upvoted 1 times
sjai
2 years, 6 months ago
What would you do for B2C authentication
upvoted 2 times
...
...
poplovic
2 years, 6 months ago
quite simple. 1. CDN for static web app and meet the geo requirement 2. Function: two steps step1. add a storage trigger function https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function step 2. in the function (javascript), send the sms you can search here https://www.serverlesslibrary.net/?filtertext=sms and one example of https://github.com/0GiS0/azure-functions-loves-twilio
upvoted 2 times
...
nkv
2 years, 7 months ago
came in exam on 20-sep-21, I passed, i choose CDN & Function
upvoted 7 times
...
az_architect
2 years, 7 months ago
I went the discussions and it seems that CDN and Fuction have won the war and are correct answers. :)
upvoted 4 times
...
g_db1
2 years, 8 months ago
hi there, not a native english speaker here, so i need a clarification on what "Website latency must be consistent for users in different geographical regions" should means. The cdn makes the latency low for every user on the web, regardless of its geographical location due to the pop. So, should I remove the cdn from the possible correct options?
upvoted 1 times
Pinto
2 years, 8 months ago
means that it should be same. If from 1 place the page takes 1 second to load, then from other place on the planet also it should also take 1 second to load only. There should not be much variation. If from 1 place it takes 1 second but from another place it takes 5 seconds, then we are not meeting the requirements of the question. CDN is correct here.
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 ...