exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 27 discussion

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

DRAG DROP -
A company backs up all manufacturing data to Azure Blob Storage. Admins move blobs from hot storage to archive tier storage every month.
You must automatically move blobs to Archive tier after they have not been modified within 180 days. The path for any item that is not archived must be placed in an existing queue. This operation must be performed automatically once a month. You set the value of TierAgeInDays to -180.
How should you configure the Logic App? To answer, drag the appropriate triggers or action blocks to the correct trigger or action slots. Each trigger or action block 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:

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
Cricketer
Highly Voted 1 year, 8 months ago
Logic App is not part of 204 exam since March 2021
upvoted 128 times
SnakePlissken
1 year, 7 months ago
You're right!! Let's not waste our time with questions about Logic Apps anymore! Please upvote Cricketer!
upvoted 7 times
...
jay158
1 year, 5 months ago
See Notes from 'fabulousethiopia': we still get questions about logic app https://www.examtopics.com/exams/microsoft/az-204/
upvoted 2 times
...
if54uran
1 year, 6 months ago
In the official document logic apps are still included. https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4oZ7B Can you provide a source?
upvoted 2 times
nocap
1 year, 6 months ago
In the linked document it actually confirms Logic Apps are no longer part of the criteria in the comparison of this section "Connect to and consume Azure services and third-party services"
upvoted 7 times
...
...
...
MariusN
Highly Voted 2 years, 1 month ago
For Box 3, refer to the answer's text that says "Put a message on a queue". The answer's graphic implies "When there are messages in a queue" forBox 3 by mistake.
upvoted 42 times
...
ivan0590
Most Recent 8 months ago
Admin, please correct this answer. The box 3 shown in the image (When there are messages in a queue) differs from the solution (Put a message on a queue). "Put a message on a queue" is the right answer!
upvoted 3 times
...
ning
1 year, 4 months ago
No idea, what is the last box ... For the condition, tick less than is older than ...
upvoted 2 times
...
crepatata
1 year, 7 months ago
Probably, you should use "Insert Entity" in case it should be archived and in the 5th step archive all the entities in that path?
upvoted 2 times
...
Pomphard
1 year, 8 months ago
It is clear that : box 1 should be recurrence box 2 should be the condition However, there is confusion about the condition, and rightly so: the right half, ticks(addDaysInMonth(), variables("TierAgeInDays")) has a few problems, first off: addDaysInMonth() doesn't exist as a function at all Second, ticks does not accept two parameters as is done here. (see reference:https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#date-and-time-functions) So, the condition block is bogus. However, they probably wanted to write something like: addDays(utcNow(), variables("TierAgeInDays")) which IS valid. The less-than will return true for anything older, which leaves the next boxes to be: box 3: Tier blob box 4: Message queue box 5: optional, they probably want to show the results with list blob2
upvoted 14 times
BrettusMaximus
1 year, 7 months ago
Totally agree, however Box 5 should be "Insert Entity" as it occurs for every blob. A good developer would want to track "Processing" and record the state of an archive transaction or not.
upvoted 1 times
...
...
XYZ2
1 year, 8 months ago
About condition "the Ticks property to display the number of ticks that have elapsed since the beginning of the twenty-first century" Basically, if left side has a bigger value, then it's been updated less then 180 days ago, and should not be archived Condition says "if left value less than right value", then we have: If yes (true), it should be archived (left value less than right value, less ticks, older than 180 days) If no (false) - do not put it to archive (left value greater than right value, more ticks, newer than 180 days) So, current answer is Box 1 Recurrence Box 2 Condition Box 3 Tier blob (item last modified < current date - 180 days) Box 4 Put a message on a queue Box 5 .... still not sure...
upvoted 6 times
...
gchen
1 year, 9 months ago
BOX 1: Recurrence BOX 2: Condition BOX 3: Tier blob ==> condition is older than 180 days BOX 4: Put a message on a queue BOX 5: List blob2 ==> check the next one
upvoted 6 times
...
pieronegri
1 year, 9 months ago
I think the false branch needs "The path for any item that is not archived must be placed in an existing queue." as it is about items which are not archived (last modified is >= adddays(-180)). the true branch needs archiving. Last action, listing, is not needed per se. Just to show the results.
upvoted 1 times
...
minsma
1 year, 10 months ago
I think this is the correct answer: http://prntscr.com/zqmpjl
upvoted 5 times
...
cbn
1 year, 10 months ago
Box 1 Recurrence Box 2 Condition Box 3 Tier blob (item last modified < current date - 180 days) Box 4 Put a message on a queue Box 5 When there are messages in a queue / blank
upvoted 19 times
atomicicebreaker
1 year, 8 months ago
Box 3 - you need to tier blob when modified > currentDate - 180 days, and the condition is set to "less than" so true -> blobs to ignore, false -> blobs to tier
upvoted 4 times
...
ning
1 year, 4 months ago
No, you cannot do multiple trigger in the designer In code view, you can
upvoted 1 times
...
clarionprogrammer
1 year, 8 months ago
This is the right answer.
upvoted 1 times
...
Juanlu
1 year, 9 months ago
I thing, after analyse all comments, this is the good one !
upvoted 2 times
...
...
Archimedes
1 year, 10 months ago
The condition is "LastModified" "less than" (Date - 180). (TierAgeInDays is a negative value of -180). If this statement is true, it means that the blob has been modified before 180 days from now. Hence it should be archived. So boxes 3 and 4 should be swapped. Correct me if I am wrong. Box 5 is immaterial. Not covered in the question scope. So, I am Ok with listing the blobs for Box 5.
upvoted 7 times
jvyas
1 year, 3 months ago
"You must automatically move blobs to Archive tier after they have not been modified within 180 days. " If condition block returns true meaning the block has been modified within 180 days and should not be archived.
upvoted 1 times
jvyas
1 year, 3 months ago
Sorry I did not realize it was -180.
upvoted 1 times
...
...
...
Kibb
1 year, 11 months ago
Aren't 3 and 4 swapped? The question sais place in queue if the messages AREN'T archived (so not older than 180 days)
upvoted 5 times
...
rajwit
1 year, 11 months ago
there is different discussion https://www.examtopics.com/exams/microsoft/az-203/view/7/ I believe Box 1 Recurrence Box 2 Condition Box 3 Put a message on a queue Box 4 Tier blob Box 5 List Blob
upvoted 8 times
xofowi5140
1 year, 11 months ago
But the workflow is not the same
upvoted 1 times
...
...
sleepyboy777
1 year, 11 months ago
It might make sense to List blobs 2 to see what files are there at the end of the operation, but the question does not specify that
upvoted 1 times
...
reggina
1 year, 11 months ago
for the condition, True means the blob is older than the limit so 3 and 4 should be switched. https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#ticks
upvoted 16 times
internalK
1 year, 11 months ago
Yes, condition is Ticks(item.LastModified)<Ticks(today-180) --> Box3 & Box4 should be switched. If the condition is true means that the item must be archived.
upvoted 7 times
...
borntolearn
1 year, 11 months ago
I disagree because if you read the condition, it is saying that if the item is less than age(180) which is different from the condition's description.
upvoted 3 times
[Removed]
1 year, 11 months ago
No, it says "if the item was modified at a time more than 180 days ago". Notice that "TierAgeInDays" is a negative value of -180. So if you add it to the current date it is 180 days ago. In Pesudcode this would be : If("LastModified" < Today-180d)
upvoted 10 times
...
...
...
Member777
2 years ago
Box 1 Recurrence Box 2 Condition Box 3 Put a message on a queue Box 4 Tier blob Box 5 When there are messages in a queue
upvoted 11 times
altafpatel1984
1 year ago
Please don't misguide people.
upvoted 2 times
...
cbn
1 year, 10 months ago
I think it should be Box 3 Tier blob (item last modified < current date - 180 days) Box 4 Put a message on a queue
upvoted 9 times
...
Cornholioz
1 year, 12 months ago
Wrong for 4 & 5. The WHEN is not a condition like in a WHEN block of code. It gets processed after the IF condition. So in the IF condition for true, you want to put into the queue already. Box 5 should either be empty or (just for fun) list the blobs.
upvoted 3 times
xofowi5140
1 year, 11 months ago
Cornholioz what is the correct order for you?
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 ...