Courseiva

SC-100 App Service Authentication (EasyAuth) Practice Question

Which TWO actions should you take to secure Azure Functions with HTTP triggers?

⚠ Common exam trap

Candidates often mistake monitoring tools like Application Insights for security controls, but they do not restrict access.

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

✓

Enable App Service Authentication (EasyAuth)

Option A is correct because enabling App Service Authentication (EasyAuth) on the Function App enforces identity verification via Microsoft Entra ID or other identity providers before requests reach the function, providing strong authentication for HTTP triggers. Option B is correct because configuring network restrictions (access restrictions / IP allowlists) on the Function App limits inbound HTTP traffic to trusted IP ranges, reducing exposure to unauthorized or malicious callers. Option C is wrong because setting the authorization level to anonymous removes the function key requirement and allows unauthenticated access, weakening security. Option D is wrong because Application Insights is a monitoring and telemetry service, not a security control. Option E is wrong because function keys alone are shared secrets that can be leaked and do not provide robust authentication or network-level protection.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Enable App Service Authentication (EasyAuth)

    Why this is correct

    App Service Authentication (EasyAuth) is built into the App Service platform and sits in front of your function code. When enabled, it requires every HTTP request to present a valid token from a configured identity provider (e.g., Microsoft Entra ID), and it rejects unauthenticated requests before they reach your function. It also gives you access to authenticated user claims in your code, so you can enforce fine-grained authorization beyond mere presence of a token.

  • ✓

    Configure network restrictions to allow only specific IP ranges

    Why this is correct

    Configuring network restrictions on an Azure Functions app creates a front-end firewall through the App Service Access Restrictions feature. By specifying allowed CIDR ranges, all inbound requests from outside those ranges are rejected at the platform edge, preventing anonymous internet traffic from even reaching your function host. This is particularly effective for functions that only need to be triggered by internal systems or a known set of callers, and it works alongside authentication.

  • ✗

    Set authorization level to anonymous

    Why it's wrong here

    Setting the authorization level to anonymous means that your HTTP-triggered function does not require any function key or token in the request. Any caller on the internet can invoke the function endpoint and, if the code has side effects such as writing to a database or sending emails, this can lead to abuse, data exposure, or resource exhaustion. In production, anonymous access should only be used when another trusted gateway or API Management layer is in front of the function.

  • ✗

    Enable Application Insights

    Why it's wrong here

    Application Insights is a diagnostics and monitoring service that collects telemetry such as request rates, failures, and performance metrics from your function app. Enabling it gives you visibility into anomalies and latencies, but it does not filter or validate incoming requests. It is a security complement because it helps you detect attacks, but it is not a security control in itself and does not reduce the attack surface.

  • ✗

    Use function keys only

    Why it's wrong here

    Function keys are static shared secrets that are scoped either to an individual function or the entire host, and they are included in the request header x-functions-key. While they provide a level of access control, they are not tied to a user identity and can be easily shared, leaked through client side code, or embedded in logs. Relying on function keys as the sole authentication mechanism is less secure than requiring federated identity through EasyAuth, and it lacks the ability to enforce per-user claims or roles.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

This SC-100 question is part of Courseiva's 605-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SC-100 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 SC-100 exam.