MDFT Pro, a well-known training agency, operates a large campus with over 10,000 students enrolled in various certification programs and training courses. Claire, the Campus Security Director, is evaluating whether their planned student recognition system using Azure Face API can scale to handle their entire student population.
The system would use a single person group to store face data for all students, enabling automatic identification during campus entry, classroom attendance tracking, and facility access control. Claire needs to determine if the Face API can support this scale of operation before proceeding with the full implementation.
Here is the code being evaluated for scalability:
static async void AddFace(string subscription_key, string
personGroupId, string personId, string imageURI)
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", subscription_key);
var endpointURI = $"https://westus.api.cognitive.microsoft.com/face/v1.0/persongroups/{personGroupId}/persons/{personId}/persistedFaces";
HttpResponseMessage response;
var body = "{ \"url\": \"" + imageURI + "\"}";
var content = new StringContent(body, Encoding.UTF8, "application/json");
response = await client.PostAsync(endpointURI, content);
}
Will this code work for a person group containing 10,000 students?
Choose the correct answer from the options below.
Explanations for each answer: