AZ-204 Practice Question: Connect to and consume Azure services and third-party services
A company uses Azure Logic Apps to automate business processes. They need to call an external REST API that requires OAuth 2.0 client credentials grant. Which connector should they use with minimal configuration?
⚠ Common exam trap
The trap here is that candidates often overthink and choose a custom connector or Swagger-based option, not realizing the built-in HTTP connector already supports OAuth 2.0 client credentials with minimal setup.
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
✓
HTTP connector
The HTTP connector in Azure Logic Apps supports OAuth 2.0 client credentials grant natively with minimal configuration. You can directly set the authentication type to 'Active Directory OAuth' and provide the tenant ID, client ID, client secret, and audience/resource URI. This avoids the need for custom code or additional connectors.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
HTTP connector
Why this is correct
The HTTP connector in Azure Logic Apps is the most direct and efficient way to interact with any REST API, especially when specific authentication methods like OAuth 2.0 client credentials are required. It provides built-in support for various authentication types, including Microsoft Entra ID (OAuth), allowing for straightforward configuration of client ID, client secret, and resource URI without needing to manually manage token acquisition or refresh logic. This makes it ideal for securely calling external APIs that protect their endpoints with standard OAuth 2.0 flows.
- ✗
HTTP + Swagger connector
Why it's wrong here
The HTTP + Swagger connector is primarily designed for consuming REST APIs that provide an OpenAPI (Swagger) definition, enabling Logic Apps to automatically generate strongly typed actions and triggers based on the API schema. While it can support OAuth 2.0 authentication, its core benefit lies in schema discovery, not authentication handling itself. Using it without a Swagger definition or solely for authentication adds unnecessary complexity and overhead compared to the simpler HTTP connector, which is sufficient for direct API calls with standard authentication.
- ✗
Azure Functions connector
Why it's wrong here
The Azure Functions connector is specifically designed to invoke an Azure Function, which is a serverless compute service. Its purpose is to execute custom code logic within a Logic App workflow, not to directly call an external REST API. While an Azure Function *could* be written to then call an external API, using this connector for that purpose introduces an unnecessary intermediary layer, increasing latency, operational complexity, and compute costs compared to a direct HTTP call from the Logic App.
- ✗
Custom connector
Why it's wrong here
A custom connector requires you to manually implement the OAuth 2.0 client credentials flow, including token acquisition, refresh logic, and HTTP header injection, whereas the HTTP connector with Microsoft Entra ID authentication handles this automatically. It is tempting because custom connectors are designed for any REST API lacking a prebuilt connector, and would be correct if the API used a non-standard authentication scheme unsupported by built-in connectors.
Go deeper
Related to this question
About these practice questions
This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.