Courseiva
Develop Azure compute solutionseasyMultiple ChoiceObjective-mapped

AZ-204 Develop Azure compute solutions Practice Question

You need to deploy a containerized application to Azure Container Instances (ACI) with a public IP address and a DNS name label. Which YAML property should you configure for the DNS name?

⚠ Common exam trap

Watch out — candidates often confuse `dnsNameLabel` with `containerGroupName` or `ipAddress`, mistakenly thinking the container group name or the IP address property itself controls the DNS label, when in fact `dnsNameLabel` is a nested property under `ipAddress` in the YAML schema.

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

dnsNameLabel

The `dnsNameLabel` property in the Azure Container Instances YAML definition is used to assign a custom DNS prefix to the container group's public IP address. When combined with the Azure region's default domain suffix (e.g., `eastus.azurecontainer.io`), this creates a fully qualified domain name (FQDN) like `<dnsNameLabel>.eastus.azurecontainer.io`, allowing clients to resolve the container group via DNS without needing the raw IP address.

Answer analysis

Option-by-option breakdown

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

  • dnsNameLabel

    Why this is correct

    The "dnsNameLabel" property is the correct configuration element used to assign a public, human-readable DNS name to an Azure Container Instance (ACI) container group. When specified, Azure automatically registers a DNS record in the format `dnsNameLabel.region.azurecontainer.io`, enabling external clients to access the containerized application via a stable, memorable FQDN rather than just an IP address. This is crucial for public internet accessibility.

  • containerGroupName

    Why it's wrong here

    The "containerGroupName" property defines the unique identifier for the Azure Container Instance resource within a specific resource group. While essential for managing and referencing the container group within the Azure control plane, it serves purely as an administrative resource name and does not directly contribute to or form part of the public DNS name used for accessing the application over the internet. It's an internal Azure resource identifier.

  • ipAddress

    Why it's wrong here

    The "ipAddress" property within an Azure Container Instance definition is used to configure the network settings, specifically determining if the container group should have a public IP address and its type. While a public IP address is a prerequisite for internet accessibility, this property itself defines the underlying network address resource, not the human-readable DNS label that resolves to that IP address. A DNS label provides a layer of abstraction over the raw IP.

  • ports

    Why it's wrong here

    The "ports" property specifies which network ports are exposed by the container within the container group, defining the internal communication endpoints for the application and the firewall rules for the container group. These ports are critical for the application's network functionality, but this property solely dictates port exposure and has no direct role in defining or configuring the public DNS name label for the container group's external access.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 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.