Question 846 of 997
Develop Azure compute solutionsmediumMultiple ChoiceObjective-mapped

Quick Answer

The recommended method is to use a managed identity to connect your Node.js app to Azure App Configuration. This approach is correct because a managed identity, assigned to your Azure Web App for Containers, provides an automatically managed service principal in Azure AD, allowing your application to authenticate to the configuration store without ever handling or storing any secrets in code or environment variables. On the AZ-204 exam, this scenario tests your understanding of secure, identity-based access for PaaS services, often appearing as a distractor against connection strings or key vault references—the common trap is choosing a key vault solution when direct managed identity authentication to App Configuration is simpler and more direct. Remember the memory tip: “Managed identity means no secret to keep,” so when you see a Node.js app in Azure needing config, think identity, not keys.

AZ-204 Develop Azure compute solutions Practice Question

This AZ-204 practice question tests your understanding of develop azure compute solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are deploying a Node.js application to Azure Web Apps for Containers. The application needs to read configuration settings from Azure App Configuration. What is the recommended method to securely connect the app to the configuration store?

Question 1mediummultiple choice
Full question →

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 managed identity.

Option C is correct because using a managed identity allows the Node.js application running in Azure Web Apps for Containers to authenticate to Azure App Configuration without storing any secrets. Managed identities provide an automatically managed service principal in Azure AD, enabling secure, code-free access to the configuration store via Azure AD authentication, which is the recommended approach for production workloads.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Store connection string in environment variables.

    Why it's wrong here

    Incorrect. Storing connection strings in environment variables exposes secrets.

  • Use Key Vault references in App Settings.

    Why it's wrong here

    Incorrect. Key Vault references can be used for secrets, but App Configuration itself can be accessed via managed identity.

  • Use managed identity.

    Why this is correct

    Correct. Managed identity provides secure authentication without secrets.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Hardcode the connection string.

    Why it's wrong here

    Incorrect. Hardcoding is insecure and not recommended.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse Key Vault references (which are for retrieving secrets from Key Vault) with the method to connect to App Configuration, leading them to choose Option B, but managed identity is the recommended and most secure way to authenticate to App Configuration directly.

Detailed technical explanation

How to think about this question

Under the hood, managed identities use the Azure Instance Metadata Service (IMDS) endpoint (169.254.169.254) to obtain an access token for Azure AD, which the App Configuration SDK then uses to authenticate via OAuth 2.0. This eliminates the need for any connection string or secret in the application code or configuration, and it integrates seamlessly with Azure RBAC to grant granular permissions (e.g., App Configuration Data Reader role). A real-world scenario where this matters is in a multi-environment deployment (dev, test, prod) where connection strings would otherwise need to be rotated and managed per environment, whereas managed identities are environment-agnostic and automatically scoped.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use managed identity. — Option C is correct because using a managed identity allows the Node.js application running in Azure Web Apps for Containers to authenticate to Azure App Configuration without storing any secrets. Managed identities provide an automatically managed service principal in Azure AD, enabling secure, code-free access to the configuration store via Azure AD authentication, which is the recommended approach for production workloads.

What should I do if I get this AZ-204 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-204 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.