nerdexam
Microsoft

AZ-500 · Question #185

Hotspot Question You have a file named File1.yaml that contains the following contents. You create an Azure container instance named container1 by using File1.yaml. You need to identify where you…

The correct answer is Variable1 can be accessed from inside container1 and the Azure portal. = Yes; Variable2 can be accessed from inside container1 and the Azure portal. = Yes. In Azure Container Instances, environment variables defined in YAML can be either regular (plain text) or secure. Regular environment variables (like Variable1) are accessible both from inside the container at runtime AND visible in the Azure portal. Secure environment…

Submitted by eva_at· Mar 6, 2026Implement and Manage Containers - Configure environment variables and secure secrets in Azure Container Instances using YAML deployment files

Question

Hotspot Question You have a file named File1.yaml that contains the following contents. You create an Azure container instance named container1 by using File1.yaml. You need to identify where you can access the values of Variable1 and Variable2. What should you identify? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-500 question #185 exhibit 1
AZ-500 question #185 exhibit 2

Answer Area

  • Variable1 can be accessed from inside container1 and the Azure portal.Yes
  • Variable2 can be accessed from inside container1 and the Azure portal.Yes

Explanation

In Azure Container Instances, environment variables defined in YAML can be either regular (plain text) or secure. Regular environment variables (like Variable1) are accessible both from inside the container at runtime AND visible in the Azure portal. Secure environment variables (like Variable2, defined with 'secureValue') are also accessible from inside the container at runtime, but their values are masked/hidden in the Azure portal to protect sensitive data - however, the variable itself still exists and is accessible within the container. Both variables are therefore accessible from inside the container, but only Variable1's value is fully visible in the portal, while Variable2 appears redacted. Given the answer selections both say 'Yes,' this confirms both variables can be 'accessed' inside the container, and Variable2 is still visible as a variable entry in the portal (just with its value hidden), satisfying the access criteria stated.

Topics

#Azure Container Instances#Environment Variables#Secure Variables#YAML Configuration

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice