Courseiva

AZ-204 Practice Question: Connect to and consume Azure services and third-party services

You are building an Azure Logic App that must send an email notification when a new file is added to a SharePoint Online document library. Which connector and trigger should you use?

⚠ Common exam trap

Test-takers frequently confuse the SharePoint connector with other storage connectors (like Azure Blob Storage) or mistakenly think a polling-based HTTP approach is simpler, overlooking the native event-driven trigger that is purpose-built for this exact scenario.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the SharePoint connector with the 'When a file is created' trigger

The SharePoint connector's 'When a file is created' trigger is the correct choice because it directly monitors a SharePoint Online document library for new file additions and initiates the Logic App workflow automatically. This trigger uses SharePoint's webhook capabilities to receive real-time notifications, eliminating the need for polling or manual intervention.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use the SharePoint connector with the 'When a file is created' trigger

    Why this is correct

    The SharePoint connector is purpose-built for seamless integration with SharePoint Online, offering a robust set of actions and triggers. The 'When a file is created' trigger specifically listens for new file additions within a designated SharePoint site and document library. This event-driven trigger automatically initiates the Logic App workflow upon detection, eliminating the need for custom code or manual polling, making it the most direct and efficient solution for monitoring file creation in SharePoint.

  • Use the Office 365 Outlook connector with the 'When a new email arrives' trigger

    Why it's wrong here

    This connector and trigger combination is designed exclusively to monitor an Office 365 Outlook mailbox for incoming email messages. The 'When a new email arrives' trigger activates a Logic App only when an email is received, providing no mechanism to detect or respond to file creation events occurring within a SharePoint document library. Therefore, it is entirely misaligned with the requirement of sending an email notification based on a SharePoint file event.

  • Use the Azure Blob Storage connector with the 'When a blob is added or modified' trigger

    Why it's wrong here

    The Azure Blob Storage connector is specifically engineered to interact with Azure Blob Storage accounts, providing triggers like 'When a blob is added or modified' to react to changes in blob containers. While SharePoint Online does utilize underlying storage, its file operations are abstracted and do not directly expose Azure Blob Storage events in a way that this connector can consume for SharePoint file creation. This connector is designed for native Azure Blob Storage interactions, not for monitoring SharePoint document libraries.

  • Use the HTTP connector with a manual trigger and poll SharePoint's REST API

    Why it's wrong here

    Polling SharePoint’s REST API via an HTTP manual trigger would require custom code to handle authentication with Microsoft Entra ID, manage pagination, and detect new files by comparing timestamps or IDs—none of which is built into the connector. This approach is tempting because the HTTP connector offers flexibility for any REST endpoint, and in scenarios where no dedicated SharePoint trigger exists, manual polling is a fallback pattern. However, the correct trigger for this event-driven scenario is the “When a file is created” trigger on the SharePoint connector, which natively listens for changes without polling.

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.