Soru

Zorluk: OrtaDeploy and Configure Azure Container Apps

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.)

  1. Set external to false.Cevap
  2. Configure stickySessions with affinity set to sticky.Cevap
  3. C
    Enable a system-assigned managed identity on the Container App to restrict network access.
  4. D
    Configure 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

1
Analyze the isolation requirement.
The microservice must only be accessible within the Container Apps environment.
Setting the external property to false in the ingress configuration achieves this environment-level isolation.
2
Analyze the session affinity requirement.
Requests from a client must route to the same replica instance for caching.
Enabling stickySessions with the affinity property set to sticky ensures that requests from the same client are pinned to the same container replica.

Anahtar Kavram

Configuring ingress, environment isolation, and session affinity in Azure Container Apps
Tahmini Süre:1m 30s
Bu soruyu puanla