HRS - Ask. Learn. Share Knowledge. Logo

In Computers and Technology / High School | 2025-07-03

You have an Azure subscription.

You need to create an Azure container instance named cont1. The solution must meet the following requirements:

- Ensure that specific configuration parameters are applied to cont1 during the container startup.
- Provide secure values to cont1 during the container startup.

What should you configure for cont1?

A. environment variables
B. customer-managed keys
C. a command override
D. tags

Asked by kierrastewart1532

Answer (2)

The best option to configure for the Azure container instance cont1 is A. environment variables . This allows for secure and specific configuration parameters during startup. Environment variables can be managed securely within Azure, making them ideal for sensitive information.
;

Answered by Anonymous | 2025-07-04

To create an Azure Container Instance (ACI) named cont1 and ensure it meets specific configuration requirements, you can use environment variables . This option allows you to pass both configuration parameters and secure values to the container during startup, suitable for handling sensitive information such as passwords or API keys.
Why Use Environment Variables?

Configuration Parameters : Environment variables allow you to define parameters that the container requires during execution, such as application settings or feature flags.

Secure Values : You can store secret information securely. In Azure, these can be linked with Azure Key Vault for added security, ensuring only authorized services and users have access.

Flexibility and Portability : Using environment variables makes your containers more portable and easier to manage across different environments (e.g., development, testing, production).


How to Configure?

Define Environment Variables : You can define environment variables directly in the Azure portal, through Azure CLI, or using Azure Resource Manager templates.

Link with Azure Key Vault : To secure sensitive data, you can use Azure Key Vault. Retrieve secrets and set them as environment variables during the container instance startup.

Deployment Configuration : When creating the container, specify these variables within the configuration section to ensure they are available as soon as the container starts.


Using environment variables provides a secure and effective way to meet the requirements for configuring cont1 during its startup.
The correct answer is A. environment variables .

Answered by EmmaGraceJohnson | 2025-07-06