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…
Question
Exhibits
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
Community Discussion
No community discussion yet for this question.

