You want to authenticate your client application to the Azure AI Speech service without exposing your subscription key in the client-side code. What is the recommended approach?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Use a backend service to request a short-lived authorization token using the subscription key, and pass the token to the client

For client-side applications (like browser apps), the secure pattern is to host a backend service that holds the subscription key, calls the token endpoint to get an authorization ...

๐Ÿ“‹Part of Microsoft Certified: Azure AI Engineer Associate (AI-102) ยท Azure Certification Practice
Real Exam ScenarioAzure AI Speech

You want to authenticate your client application to the Azure AI Speech service without exposing your subscription key in the client-side code. What is the recommended approach?

โœ“ Correct Answer & ExplanationAzure AI Speech

Correct Answer

Use a backend service to request a short-lived authorization token using the subscription key, and pass the token to the client

Why This Answer Is Correct

For client-side applications (like browser apps), the secure pattern is to host a backend service that holds the subscription key, calls the token endpoint to get an authorization token (valid for 10 minutes), and provides that token to the client.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure AI Speech โ€” a core concept tested in Microsoft Certified: Azure AI Engineer Associate (AI-102). Understanding Azure AI Speech is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.