nerdexam
Microsoft

AZ-204 · Question #452

You develop a Python application for image rendering that uses GPU resources to optimize rendering processes. You deploy the application to an Azure Container Instances (ACI) Linux container. The…

The correct answer is A. Create an environment variable Set the secureValue property to the secret value. E. Mount a secret volume containing the secret value in a secrets file. A: Secure environment variables Another method (another than a secret volume) for providing sensitive information to containers (including Windows containers) is through the use of secure environment variables. E: Use a secret volume to supply sensitive information to the…

Submitted by anjalisingh· Mar 30, 2026Develop Azure compute solutions

Question

You develop a Python application for image rendering that uses GPU resources to optimize rendering processes. You deploy the application to an Azure Container Instances (ACI) Linux container. The application requires a secret value to be passed when the container is started. The value must only be accessed from within the container. You need to pass the secret value. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • ACreate an environment variable Set the secureValue property to the secret value.
  • BAdd the secret value to the container image. Use a managed identity.
  • CAdd the secret value to the application code Set the container startup command.
  • DAdd the secret value to an Azure Blob storage account. Generate a SAS token.
  • EMount a secret volume containing the secret value in a secrets file.

How the community answered

(59 responses)
  • A
    80% (47)
  • B
    12% (7)
  • C
    5% (3)
  • D
    3% (2)

Explanation

A: Secure environment variables Another method (another than a secret volume) for providing sensitive information to containers (including Windows containers) is through the use of secure environment variables. E: Use a secret volume to supply sensitive information to the containers in a container group. The secret volume stores your secrets in files within the volume, accessible by the containers in the container group. By storing secrets in a secret volume, you can avoid adding sensitive data like SSH keys or database credentials to your application code. https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-secret

Topics

#Azure Container Instances#secret management#environment variables#secret volumes

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice