exam questions

Exam AZ-305 All Questions

View all questions & answers for the AZ-305 exam

Exam AZ-305 topic 6 question 1 discussion

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

You need to recommend a solution for the App1 maintenance task. The solution must minimize costs.
What should you include in the recommendation?

  • A. an Azure logic app
  • B. an Azure function
  • C. an Azure virtual machine
  • D. an App Service WebJob
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
techrat
Highly Voted 1 year, 10 months ago
I am confident it's B. Azure Function. I had this question on the exam today, and I got 979, in the Design Infrastrcture Solutions, I was 100% correct, and this quesiton belongs to this catagory.
upvoted 27 times
...
Tusharsp
Highly Voted 2 years, 2 months ago
Selected Answer: A
Azure function will need to be run from every region. This will need 2 functions. Logic app can be created centrally and executed for both regions as per given requirement. "The PowerShell script will run from a central location."
upvoted 26 times
pkkalra
2 years, 1 month ago
Azure function as a resource is created in a region but it can access data store from a different region if access is provided. A single function from a region should be able to do the job. I have no reason to believe that a logic app can access data store from two regions but a function cannot. Answer is B.
upvoted 8 times
...
AzureJobsTillRetire
2 years, 2 months ago
You can create a Consumption logic app in multi-tenant Azure Logic Apps by using the JSON file for a logic app workflow definition. You can then manage your logic app by running the cmdlets in the Az.LogicApp PowerShell module. Reference: https://docs.microsoft.com/en-us/azure/logic-apps/quickstart-logic-apps-azure-powershell
upvoted 2 times
...
AzureJobsTillRetire
2 years, 2 months ago
"Azure Functions resources are region-specific and can't be moved across regions. You must create a copy of your existing function app resources in the target region, then redeploy your functions code over to the new app." https://learn.microsoft.com/en-us/azure/azure-functions/functions-move-across-regions
upvoted 4 times
...
...
kyakya
Most Recent 1 month ago
Selected Answer: B
D. an App Service WebJob is wrong because App1 is on Linux System, Powershell cannot run on Linux
upvoted 1 times
jajajaf342
6 days, 21 hours ago
First off, Linux absolutely does support PowerShell (PowerShell Core / PowerShell 7) Aside from this, we're talking about the maintenance tasks, not the app itself. Therefore the answer is B.
upvoted 1 times
...
...
[Removed]
3 months, 2 weeks ago
Selected Answer: B
B is correct
upvoted 1 times
...
[Removed]
3 months, 2 weeks ago
B is correct
upvoted 1 times
...
_punky_
4 months, 1 week ago
Selected Answer: B
B: Geographical scaling: You can configure Azure Functions to handle tasks across regions (US East and EU West) without needing multiple instances or complex routing.
upvoted 3 times
...
Semualulus
5 months, 2 weeks ago
Selected Answer: B
The question mentions "minimize cost" While Logic Apps can also schedule and execute tasks, they are generally more suited for orchestrating complex workflows. For this simple task, an Azure Function is more cost-effective.
upvoted 2 times
...
raj29oct
5 months, 3 weeks ago
you can run PowerShell scripts using Azure Logic Apps, although it requires integration with other Azure services because Logic Apps itself does not execute PowerShell scripts directly. One common approach is to use Azure Automation within your Logic App workflow, hence azure function is ideal choice, with less efforts
upvoted 1 times
...
Watcharin_start
7 months ago
Selected Answer: B
I thought it should be Azure function ( go with `B`) Because this requirement of maintenance task was not need any workflow logic to complete the task. They just need to execute the PowerShell script for copies the file that made by App1. That reason we could be simplify process with create the Azure function for completely objective. So, Azure function can access data in any storage account that we want by allow access policy.
upvoted 4 times
...
23169fd
8 months, 1 week ago
Selected Answer: B
zure Functions are ideal for running scheduled tasks, such as hourly PowerShell scripts, without the overhead of maintaining a virtual machine. They offer a serverless compute service that allows you to execute code on-demand without having to provision and manage infrastructure, thereby minimizing cost
upvoted 3 times
...
Chenn
10 months ago
The correct answer is B. an Azure Function. Azure Functions is a serverless compute service that lets you run event-triggered code without having to explicitly provision or manage infrastructure. In this case, you can create a timer-triggered function that runs your PowerShell script every hour. This approach is cost-effective because with Azure Functions, you only pay for the time your code runs. Option A, Azure Logic App, is more suited for workflows and would be an overkill for this scenario. Option C, an Azure Virtual Machine, would require you to manage the infrastructure and would be more costly. Option D, an App Service WebJob, could also work but it would require an App Service plan which might be more expensive than Azure Functions. Therefore, Azure Functions would be the most cost-effective solution for this scenario.
upvoted 1 times
...
Lazylinux
10 months, 1 week ago
Selected Answer: B
I would agree with B and below show why https://learn.microsoft.com/en-us/azure/azure-functions/functions-compare-logic-apps-ms-flow-webjobs
upvoted 2 times
...
ubdubdoo
10 months, 3 weeks ago
Azure Logic Apps does not have a native connector to directly run PowerShell scripts within its workflows
upvoted 2 times
...
varinder82
11 months, 2 weeks ago
Final Answer: an Azure logic app
upvoted 1 times
...
177c705
1 year ago
B. an Azure function
upvoted 2 times
...
[Removed]
1 year ago
Selected Answer: B
PowerShell script and every hour, this is Azure Function for sure.
upvoted 4 times
...
BShelat
1 year, 2 months ago
"Every hour, you will run a maintenance task by invoking a PowerShell script that copies files from all the App1 instances. " --> This shows that require coding for copying is taken care of by PowerShell script and now it just need to be scheduled and executed. Logic App does not need coding Azure Functions need coding. So ruling out Azure Functions. Answer is Logic App.
upvoted 1 times
mtc9
12 months ago
Bro you need to run a PS script, which can be the code of the function
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