HOTSPOT - You need to implement the bindings for the CheckUserContent function. How should you complete the code segment? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
The "content" parameter is of type "string" so it must be QueueTrigger.
For example BlobTrigger uses Stream type, CosmosDBTrigger uses IReadOnlyList<> type, it seems the Table Storage has no trigger binding.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?tabs=csharp#supported-bindings
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger
https://docs.microsoft.com/cs-cz/azure/azure-functions/functions-bindings-storage-blob-trigger
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger
Agree with Azure Queue Storage trigger indeed (see example on https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-trigger?tabs=csharp#example)
BlobTrigge can also use string parameter
[FunctionName("BlobTriggerCSharp")]
public static void Run([BlobTrigger("samples-workitems/{name}")] Stream myBlob, string name, ILogger log)
{
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp
Another CSI Miami question from Microsoft.
Yes, detectives, the content has to be a Stream if it is Blob trigger.
Microsoft (don't be evil) did not give any information on how the function is triggered, but stereotypically put the red-herring in the description: " website shows the content from azure storage blob". Of course that does not mean the function is triggered from it. Next my only clue is the type of this parameter.
Microsoft says .Net knowledge is required and any SDK is enough. But how will a javascript person know this that it is Stream and not the content given as String?
I think it should be BlobTrigger/Blob because the output it has the Stream data type and from where the binding expression will come ({name}) if it's not specified in the trigger. Also, blob trigger also receives the content as string.
Anyways, this is an awful question. Shame on Microsoft
Requirement/question is unclear. Think the idea is that the function reads the uploaded data by the user. So it should be triggered by the Blob trigger. After the check it updates the content in the blob storage. So blob storage is the output parameter.
Terrible requirements that leave us questioning the actual implementation. But I have to agree that QueueTrigger is the first answer because the requirements state "accepts user generated content as a string". That can only be the QueueTrigger. Blob for the output is not in question.
Blob trigger seems correct. trigger binding can be string if the content is small.
Binding to string, or Byte[] is only recommended when the blob size is small. This is recommended because the entire blob contents are loaded into memory. For most blobs, use a Stream or CloudBlockBlob type. For more information, see Concurrency and memory usage.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=in-process%2Cextensionv5&pivots=programming-language-csharp
It is really annoying the way the question is worded. Where in the specs is written the source and the target of the Function ?!? It is true that we can infer it from the possible answers. But why dont ask then "which are valid input / output" for the function ?
The question has nothing to do with the architecture or design. It's actually asking if you can recognize valid trigger and output bindings. The only valid bindings are Queue Trigger (string) and Blob output (File.Write supports writing to a stream).
I believe this is blobtrigger --> user upload contents into blob storage ...
Need send to a service ... So I am think send to a queue for processing ...
Just from the given info ...
Depends on your interpretation for what is final step for azure function, whether to send the contents to the service, or remove the contents from the blob storage ... The requirements are not clear ...
This is tricky, storage will be my general choice, however this statement "Messages are sent to contentuploadservice" leading me to believe this is a service bus.
I believe the answer is QueueTrigger and Queue. This is an architectural design issue -- the entire reason to do user content auditing is to prohibit bad content from being stored and used. Therefore, use a queue to store these messages until they are verified. No need to store content in a blob until then -- Azure Storage Queue perfect solution.
Well, based what information was given it seems that entire design looks little bit different. User post content and it is saved in BlobStorage and available immediately. After that check is done and if content is invalid then it is replaced. So given answer is correct.
This section is not available anymore. Please use the main Exam Page.AZ-204 Exam Questions
Log in to ExamTopics
Sign in:
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.
MohmmadFayez
Highly Voted 3 years, 10 months agoLucario95
3 years, 5 months agoKingChuang
2 years, 4 months agowarchoon
2 years, 1 month agoMiraA
3 years, 7 months agoPhilLI
3 years, 4 months agoMev4953
3 years, 3 months agogmishra88
Highly Voted 2 years, 7 months agooverhill
5 months, 3 weeks agooskx2
Most Recent 1 year, 1 month agoraymond_abcd
1 year, 3 months agoLSandro
1 year, 6 months agoDianahu
1 year, 9 months agoJH81
1 year, 11 months agole129
2 years, 8 months agoshawnz
3 years, 3 months agoleonidn
3 years, 3 months agogfiorini
3 years, 5 months agogmishra88
2 years, 7 months agophvogel
3 years, 6 months agoning
3 years, 8 months agoning
3 years, 8 months agomcanic
3 years, 4 months agoj888
3 years, 9 months agoj888
3 years, 9 months agoSuperPetey
4 years agoSpooky7
3 years, 11 months agowarchoon
2 years, 1 month agoclarionprogrammer
4 years, 1 month agokwaazaar
4 years, 1 month ago