exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 5 question 5 discussion

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

You are designing a message application that will run on an on-premises Ubuntu virtual machine. The application will use Azure Storage queues.
You need to recommend a processing solution for the application to interact with the storage queues. The solution must meet the following requirements:
✑ Create and delete queues daily.
✑ Be scheduled by using a CRON job.
✑ Upload messages every five minutes.
What should developers use to interact with the queues?

  • A. Azure CLI
  • B. AzCopy
  • C. Azure Data Factory
  • D. .NET Core
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Incorrect Answers:
A: It is not possible to have Linux running in Windows Azure
B: AzCopy is a command-line utility that you can use to copy blobs or files to or from a storage account.
Reference:
https://docs.microsoft.com/en-us/azure/storage/queues/storage-tutorial-queues

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
Yamaneko
Highly Voted 4 years, 6 months ago
I would say answer is D which can insert message (upload message) https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues?tabs=dotnet#insert-a-message-into-a-queue which A can't https://docs.microsoft.com/en-us/cli/azure/storage/queue?view=azure-cli-latest
upvoted 37 times
pentum7
4 years, 6 months ago
Agreed
upvoted 1 times
...
jhoomtv
4 years, 4 months ago
It has PUT - Adds a new message to the back of the message queue.
upvoted 4 times
jhoomtv
4 years, 4 months ago
https://docs.microsoft.com/en-us/cli/azure/storage/message?view=azure-cli-latest
upvoted 4 times
...
...
pentium75
3 years, 8 months ago
I think Azure CLI can change over time, and it's not a good practice to use commandline tools in an application.
upvoted 3 times
cfsxtuv33
3 years, 5 months ago
So, it's safe to say you agree with the given answer, ".NET Core."
upvoted 2 times
...
...
...
Elecktrus
Highly Voted 4 years, 4 months ago
I think that should be A, because: - Azure CLI can be installed in Ubuntu: https://docs.microsoft.com/es-es/cli/azure/install-azure-cli-apt - Azure CLI supports upload messages to storage queues https://docs.microsoft.com/en-us/cli/azure/storage/message?view=azure-cli-latest - Azure CLI support create/delete queues https://docs.microsoft.com/en-us/cli/azure/storage/queue?view=azure-cli-latest - And of course, can be scheduled by CRON https://docs.microsoft.com/es-es/azure/batch/quick-create-cli
upvoted 22 times
ArifUK
4 years, 4 months ago
All of these are good, however, only .net is a developer friendly 'development' language. probably that's why it'll be D - .net core on Linux.
upvoted 4 times
d0bermannn
3 years, 9 months ago
Is it really 'All of these are good' for developers? ADF and AzCopy also are dev tools now?)
upvoted 1 times
...
rdemontis
3 years, 5 months ago
ok, probably you are right but if this is the correct explanation this exam question borders on the ridiculous. IMHO of course
upvoted 1 times
...
...
levo017
4 years, 2 months ago
While Azure Cli does satisfy all requirements, the question is asking what DEVLOPERS should be using. Azure Cli is more like an Admin's tool. So D for NET Core.
upvoted 7 times
...
aspirin
4 years ago
Azure CLI is written in Python, it is also developer friendly and ideal for executing by a CRON job.
upvoted 2 times
...
AberdeenAngus
2 years, 11 months ago
That CLI link is for a queue in a storage account, not a service bus. Dotnet Core is the answer (Core because it also runs on Linux). Create an executable which is run by the cron job.
upvoted 1 times
...
...
BenHung
Most Recent 1 year, 11 months ago
Selected Answer: D
Developers should use .NET Core to interface with Azure Storage Queues. Using .NET Core, developers can write application code suitable for creating and deleting queues periodically, scheduling them on a CRON job schedule, and uploading messages every five minutes. Azure CLI is a command-line tool, AzCopy is a tool for data migration, and Azure Data Factory is a data integration service, none of these options are optimal for interacting with Azure Storage Queues. So, the answer is D - .NET Core.
upvoted 2 times
...
DoctorCOmputer
3 years, 4 months ago
A. Azure CLI
upvoted 2 times
...
tteesstt
3 years, 6 months ago
There's a distinction between application and script. D is the answer.
upvoted 3 times
...
syu31svc
3 years, 7 months ago
https://docs.microsoft.com/en-us/azure/storage/queues/storage-tutorial-queues?tabs=dotnet Download and install the .NET Core SDK version 3.1 or later. Answer is D
upvoted 2 times
...
poplovic
3 years, 7 months ago
Azure Cli and .NET core both work. But .NET core is recommended in this case, especially for the "every 5 minutes" requirement. No easy way to do it in Azure cli but very doable in .NET core.
upvoted 5 times
...
Gautam1985
3 years, 8 months ago
correct
upvoted 1 times
...
gssd4scoder
3 years, 8 months ago
Az CLI i is limited to provisioning and Data Factory can't be scheduloed by CRON. Anyway I think best option is to use .NET Core executable.
upvoted 1 times
...
bklim8
3 years, 8 months ago
Azcopy and it can be support by cron job
upvoted 2 times
...
dennnnnnnnnn
3 years, 9 months ago
D, because Azure CLI is not "a processing solution", it is just a command line With .NET Core, you can develop a process to "upload messages every five minutes", which is not can be done by Azure CLI only.
upvoted 2 times
...
mactone
3 years, 11 months ago
Very sure it is D because .Net core is what we are using at working place
upvoted 5 times
...
demonite
4 years ago
Although Az CLI meets all the requirements, the best answer is .Net. After all a complete application with processing middle tier app makes more sense and since the devs are writing it, might as well be .net
upvoted 3 times
...
xaccan
4 years, 3 months ago
D is correct
upvoted 6 times
...
milind8451
4 years, 3 months ago
Right ans.
upvoted 3 times
...
Blaaa
4 years, 3 months ago
D is correct
upvoted 3 times
...
jhoomtv
4 years, 4 months ago
I lost between A or D
upvoted 3 times
rmendozakudaw
3 years, 1 month ago
"The application will use" that's why it's D
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