You are deploying a microservice named `inventory-service` to an Azure Container Apps environment. The microservice must only accept incoming requests from other container apps within the same environment and must not be exposed to the public internet. Additionally, client requests must be routed to the same replica of `inventory-service` to support in-memory session caching.
Which two configuration settings must you apply to the Container App's ingress configuration? (Select two.)
- Set external to false.Cevap
- Configure stickySessions with affinity set to sticky.Cevap
- CEnable a system-assigned managed identity on the Container App to restrict network access.
- DConfigure a custom scaling rule in the scale section to pin client requests.
Cevap
To configure the Container App as internal-only with session persistence, you must set external to false and configure stickySessions with affinity set to sticky in the ingress settings.
To satisfy both requirements, you configure ingress settings. Setting the external flag to false blocks public internet access, confining traffic to the Container Apps environment. Setting stickySessions.affinity to sticky ensures that client sessions are routed to the same replica.
Adım Adım Çözüm
Anahtar Kavram
Configuring ingress, environment isolation, and session affinity in Azure Container Apps
Tahmini Süre:1m 30s