Courseiva

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

Which TWO actions can you take to improve the performance of an Azure App Service web app that makes calls to an external API? (Choose two.)

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 async/await patterns in the code to avoid blocking threads.

Options D and E are correct. Caching responses with Azure Cache for Redis reduces redundant API calls, improving performance. Using async/await patterns prevents blocking threads, allowing the web app to handle more concurrent requests efficiently. Option A (connection pooling) can help but is not as directly impactful for performance in this scenario. Option B (parallel requests) may increase load on the API without guaranteed performance gain. Option C (scaling out) increases capacity but does not improve per-request latency or reduce redundant calls.

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 a connection pool to reuse connections to the API.

    Why it's wrong here

    Connection pooling is good but not the best option among these.

  • Send multiple requests in parallel to the API.

    Why it's wrong here

    Parallel requests may increase concurrency but not necessarily improve performance.

  • Scale out the App Service to more instances.

    Why it's wrong here

    Scaling out improves throughput, not latency per request.

  • Use async/await patterns in the code to avoid blocking threads.

    Why this is correct

    Async/await improves scalability and responsiveness.

  • Implement caching of API responses using Azure Cache for Redis.

    Why this is correct

    Caching reduces latency and load on the API.

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.