Question 111 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 111 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

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:

Triggers and action blocks

Tier blob

Ep) blob is older than the defined value, ter itto Cool or Archieve tier.
Path x o
Archive v

* Blob path
* Blob tier

[wren there are messages in a queue
“QueueName processing

Sew aoanced egeans ©
Connected to testConnectin. Change connection

‘Check Lastilodified timestamp and whether older than the tier age

variable
ticks{items(For_each)? | is less than \/ ticksfaddDaysinMonth),
[LastModified variables(TierAgelnDays'))

en
“Queue Name processing v

“Message = EPath x

Connected to testConnection. Change connection

Answer area

trigger or action block

Dist blobs

Ey For each

EA) scan at blobs in this folder
“Select an oupt fr
peevoos steps.” (EWA

€

trigger or action block

trigger or action block

Ladd an action

EG ittaise

trigger or action block

Ladd an action

SLAdd an action

trigger or action block

Explanations

Triggers and action blocks Answer area

Hai [Gi setter age variable L
Ep) I blob is older than the defined value, tier ito Cool or Archieve tier. fo fe
» Blob path Path x o wv
*Blobtier Archive v By Foreach
EA) scan at blobs in this folder x

“Select an ouput tr
peevoos steps.” (EWA

[wren there are messages in a queue
“QueueName — processing

‘Show advonces opsons Y
Connected to testConnectin. Change connection

‘Check Lastiloditied timestamp and whether older than the ter age
variable
ticksfitems(For_each)? is less than ~  ticksfaddDaysinMonthi),
[LastModified] variables(TierAgelnDays'))

& blob is older than the defined value, tier itto Cool or Archieve tier.

» Blob path Path x oO
* Blob tier Archive Me

Connected to testConnecton. Change connection

Ladd an action SLAdd an action

Ladd an action

‘Check Lastiodified timestamp and whether older than the tier age

variable
ticks{items(For_each)? | is less than \/ ticksfaddDaysinMonth),
[LastModified variables(TierAgelnDays'))

en
“Queue Name processing v

“Message = EPath x

Connected to testConnection. Change connection

Box 1: Reoccurance.

To regularly run tasks, processes, or jobs on specific schedule, you can start your logic app workflow with the built-in Recurrence - Schedule trigger.

You can set a date and time as well as a time zone for starting the workflow and a recurrence for repeating that workflow.

Set the interval and frequency for the recurrence.

In this example, set these properties to run your workflow every week.

Ey ree

“Interval Frequency

‘Add new parameter

Hour
+N
l Minute

‘Second

Enter custom value

Box 2: Condition.

To run specific actions in your logic app only after passing a specified condition, add a conditional statement.

This control structure compares the data in your workflow against specific values or fields.

You can then specify different actions that run based on whether or not the data meets the condition.

Box 3: Put a message on a queue - The path for any item that is not archived must be placed in an existing queue.

Note: Under If true and If false, add the steps to perform based on whether the condition is met.

Box 4: ..tier it to Cool or Archive tier.

Archive item.

Box 5: List blobs 2 - Reference: https://docs.microsoft.com/en-us/azure/connectors/connectors-native-recurrence https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-control-flow-loops https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-control-flow-conditional-statement.