Question 920
A Python Function needs to query Azure Cosmos DB but developer keys were placed in app settings without rotation. Which lasting release or operating safeguard most directly reduces recurrence of this specific problem?
Explanation
Correct Answer
This safeguard targets recurrence after the fix: Audit the least-privileged roles and rotate removed credentials. It controls the exact risk in A Python Function needs to query Azure Cosmos DB but developer keys were placed in app settings without rotation. The targeted engineering repair remains Enable managed identity and grant the supported Cosmos DB data-plane authorization.
Incorrect Answers
Colliding task hub configuration allows distinct environments to interfere. This is a separate requirement; the current case instead hinges on: This safeguard targets recurrence after the fix: Audit the least-privileged roles and rotate removed credentials. The matching answer is: Audit the least-privileged roles and rotate removed credentials.
The alternative addresses: The configured plan/function timeout is shorter than worst-case work duration. The reported constraint here is different: This safeguard targets recurrence after the fix: Audit the least-privileged roles and rotate removed credentials. The case-specific choice is: Audit the least-privileged roles and rotate removed credentials.
Missing or incompatible binding extensions prevent trigger listener initialization. By contrast, the relevant technical condition here is: This safeguard targets recurrence after the fix: Audit the least-privileged roles and rotate removed credentials. The appropriate selection is: Audit the least-privileged roles and rotate removed credentials.