exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 5 question 1 discussion

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

You need to design a solution that will execute custom C# code in response to an event routed to Azure Event Grid. The solution must meet the following requirements:
✑ The executed code must be able to access the private IP address of a Microsoft SQL Server instance that runs on an Azure virtual machine.
✑ Costs must be minimized.
What should you include in the solution?

  • A. Azure Logic Apps in the integrated service environment
  • B. Azure Functions in the Dedicated plan and the Basic Azure App Service plan
  • C. Azure Logic Apps in the Consumption plan
  • D. Azure Functions in the Consumption plan
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Vippsy
Highly Voted 4 years, 6 months ago
Answer is B. To connect to Azure virtual machines using private IP address, we must do Virtual network integration. Virtual network integration is supported only on Azure Functions Dedicated plan and Azure Logics Apps ISE. Azure Functions dedicated plan is cheaper than Azure Logic Apps ISE. https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#hosting-plans-comparison
upvoted 60 times
SpicyMonkey
3 years, 7 months ago
B (Basic) doesn't support VNet integration
upvoted 2 times
...
RandomUser
4 years, 5 months ago
Yeah, but then option B also has the "Basic" plan which does *not* allow VNet integration...
upvoted 10 times
uzairahm007
4 years, 5 months ago
you would not even have to to use Azure App Service Plan as Azure Functions Dedicated Plan fullfill all requirements but better option is D check out alekam comments below
upvoted 3 times
Spooky7
3 years, 7 months ago
What are you talking about? Azure Functions Dedicated Plan means using App Service Plan as function hosting environment.
upvoted 2 times
MrClumsy
3 years, 3 months ago
Wrong. Look here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#networking-features
upvoted 2 times
...
...
...
pantsrus
3 years, 11 months ago
Also you need to use Standard App Service Plan or above for production workloads. Basic is only for dev/test. https://azure.microsoft.com/en-us/pricing/details/app-service/windows/
upvoted 2 times
...
rdemontis
3 years, 5 months ago
Sure? Read this: https://docs.microsoft.com/en-us/azure/app-service/overview-vnet-integration Option B is the correct answer
upvoted 3 times
examineezer
3 years, 4 months ago
Yes From your link: The VNet integration feature...Requires a Standard, Premium, Premium v2, Premium v3, or Elastic Premium App Service pricing tier.
upvoted 4 times
altafpatel1984
3 years, 2 months ago
Basic also called dedicated plan
upvoted 1 times
therealss
3 years, 2 months ago
It's "Basic Dedicated environment for dev/test", to be exact, and it doesn't support VNets. https://azure.microsoft.com/en-us/pricing/details/app-service/windows/#pricing
upvoted 1 times
...
...
...
altafpatel1984
3 years, 2 months ago
man this link is for app-service, not function.
upvoted 2 times
...
...
...
BrettusMaximus
3 years, 10 months ago
Correct: Basic plan supports hybrid connections. https://docs.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections i.e. Within App Service, Hybrid Connections can be used to access application resources in any network that can make outbound calls to Azure over port 443. Hybrid Connections provides access from your app to a TCP endpoint.
upvoted 2 times
...
hikpd
3 years ago
I just read the URL you provided. You can see the networking feature table. Networking is supported in all the plans. A few pages down you can see "Virtual network integration across regions is only supported for Dedicated plan". So you need a dedicated plan only when you're doing cross-region network access.
upvoted 1 times
JayBee65
2 years, 11 months ago
If you look here https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#networking-features you will see consumption does not and dedicated does support virtual network integration.
upvoted 1 times
...
...
...
Tombarc
Highly Voted 4 years, 8 months ago
A is the correct answer, Consumption plan doesn't support vNet integration. ref: https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options#matrix-of-networking-features
upvoted 38 times
AhmedAL
4 years, 6 months ago
How do you add C# code to a Logic App. I think its needs to be a function app. You cal also chose a webapp but not sure if you need it in this case
upvoted 3 times
Lexa
4 years, 4 months ago
You can call Azure Functions from Logic Apps. The answers are not the whole solutions, the question is "What should you include in the solution?".
upvoted 4 times
pentium75
3 years, 8 months ago
I can "call Azure Functions from Logic Apps", but "the executed code" - NOT the Logic App - "must be able to access the private IP address of a Microsoft SQL Server instance that runs on an Azure virtual machine." The Logic App ISE is of no use for that case, you could easily use 'normal' Logic App. It's the function that must have access to the VNet, not the Logic App. (And Logic Apps can run inline Javascript code but no C#.)
upvoted 3 times
max_a
3 years, 6 months ago
why all this upvoting !! common you should look at your link correctly the given link: https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options#matrix-of-networking-features it says clearly, the dedicated plan support networking features !!
upvoted 2 times
examineezer
3 years, 6 months ago
It also says clearly "The VNet integration feature: Requires a Standard, Premium, Premium v2, Premium v3, or Elastic Premium App Service pricing tier."
upvoted 4 times
...
...
...
...
...
stephw
3 years, 12 months ago
Agreed: A is the only viable option - complies with the vnet integration requirement - would indeed be "part of the solution" as C# execution will require calling an Azure Function from the Logic App ...
upvoted 3 times
pentium75
3 years, 8 months ago
But "the executed code" - NOT the Logic App - "must be able to access the private IP address of a Microsoft SQL Server". To just trigger the Azure Function, Logic App would not need VNet access. The Function would.
upvoted 3 times
...
...
...
BenHung
Most Recent 1 year, 11 months ago
Selected Answer: B
Option (D) Azure Functions in the Consumption plan may not have direct access to the private IP address, as it operates in a serverless environment with limited control over the underlying infrastructure. Therefore, option (B) Azure Functions in the Dedicated plan and the Basic Azure App Service plan is the most suitable choice for this scenario.
upvoted 2 times
Elecktrus
1 year, 7 months ago
Correct, and for all people that says that Basic Azure App Service plan don't have vnet integration, read this https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration#limitations The feature is available from all App Service deployments in Premium v2 and Premium v3. It's also available in Basic and Standard tier but only from newer App Service deployments.
upvoted 1 times
...
...
Snownoodles
2 years, 8 months ago
Selected Answer: D
1. You don't need App service plan, because the C# code is in Azure Function 2. Azure function dedicated plan is more expensive than premium plan
upvoted 1 times
...
JayBee65
2 years, 11 months ago
There seems so much confusion over what looks like a simple question. Running custom C# so strongly points to a function over a logic app. I know you can call a function from a logic app but thats all exra cost, and the aim is minimising cost. B. Azure Functions in the Dedicated plan and the Basic Azure App Service plan Az function supports dedicated (but not consumption) plan supports virtual network integration: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#networking-features Basic Azure App Service plan supports virtual network integration: https://docs.microsoft.com/en-us/azure/app-service/overview-vnet-integration Must be B surely
upvoted 1 times
...
FabioVi
2 years, 11 months ago
Selected Answer: D
Answer should be D, because even though Consumption Plan does not support VNet integration, it does support Inbound IP restrictions ("...You can use access restrictions to define a priority-ordered list of IP addresses that are allowed or denied access to your app...") https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#networking-features https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options?tabs=azure-cli#inbound-access-restrictions
upvoted 1 times
...
cloudera
3 years, 1 month ago
Selected Answer: A
A. Azure Logic Apps in the integrated service environment B. Azure Functions in the Dedicated plan and the Basic Azure App Service plan C. Azure Logic Apps in the Consumption plan D. Azure Functions in the Consumption plan I wish I could pick B, but the Basic App plan doesn't support vNet integration. Consumption plans (C and D) don't support vNet integration so the best chance of getting the answer right would be A I would say.
upvoted 1 times
...
megapokerbum
3 years, 1 month ago
How can it be D? Per, https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale Networking features section, virtual network integration isn't an option. Virtual network integration Virtual network integration allows your function app to access resources inside a virtual network. Azure Functions supports two kinds of virtual network integration: The dedicated compute pricing tiers, which include the Basic, Standard, Premium, Premium v2, and Premium v3. The App Service Environment, which deploys directly into your virtual network with dedicated supporting infrastructure and is using the Isolated and Isolated v2 pricing tiers.
upvoted 1 times
...
YasInEqbal
3 years, 1 month ago
Selected Answer: D
Same question in 305 exam and option B is not even listed as an option!
upvoted 5 times
YasInEqbal
3 years, 1 month ago
Link https://www.examtopics.com/discussions/microsoft/view/67842-exam-az-305-topic-4-question-5-discussion/
upvoted 2 times
...
...
arun
3 years, 2 months ago
Selected Answer: B
Network support by function app comparison is here :- https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#networking-features
upvoted 1 times
...
icedog
3 years, 2 months ago
Selected Answer: A
I vote A Azure Logic Apps in the integrated service environment
upvoted 1 times
...
icedog
3 years, 2 months ago
Selected Answer: A
Not the best solutions to choose from but B and D are off due to lack of support for VNET integrations. That leaves only A - Logic App in ISE with a connector to some other part of the solution I suspect the wording of this question or the options are a bit bungled from what the actual questions on the exam may be.
upvoted 1 times
...
georgemich1
3 years, 2 months ago
Selected Answer: D
https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options
upvoted 1 times
...
georgemich1
3 years, 2 months ago
I go with a D https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options private site access is Yes with a Consumption plan
upvoted 1 times
...
reachmymind
3 years, 2 months ago
Selected Answer: A
A. Azure Logic Apps in the integrated service environment -Azure Logic Apps Standard plan provides connectivity to Vnet using an integration service environment B. Azure Functions in the Dedicated plan and the Basic Azure App Service plan Most Voted -Azure Functions in the Dedicated plan leverages Basic Azure App Service plan with no Vnet connectivity C. Azure Logic Apps in the Consumption plan -Azure Logic Apps Consumption plan provides no connectivity to Vnet D. Azure Functions in the Consumption plan -Azure Functions Consumption plan provides no connectivity to Vnet
upvoted 2 times
...
RASUK
3 years, 3 months ago
Definitely D! Consumption plan is the most cost-effective, serveless plan available.
upvoted 1 times
...
davignola
3 years, 3 months ago
Selected Answer: D
You can't do VNet integration on a basic plan.
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