You are configuring a Standard test in Azure Application Insights to monitor the public-facing endpoint of a secure retail portal (`https://portal.contoso.com`).
The requirements for the availability monitoring are:
- The test must verify that the HTTP status code returned is 200.
- The test must inspect the response body and fail if it does not contain the text `Welcome to Contoso`.
- The test must verify that the server's SSL certificate is valid and trigger a failure if the certificate is within 30 days of expiration.
Which two configuration settings must you specify in the availability test configuration? (Select two.)
- Select the Content match checkbox and enter Welcome to Contoso in the content match string field.Answer
- Select the SSL certificate validity checkbox, select Proactive lifetime check, and set the value to 30.Answer
- CSelect the Enable SSL client certificate checkbox and upload the server's public certificate.
- DAdd a custom header named Authorization with the value ManagedIdentity in the HTTP request settings.
Answer
To monitor the secure portal's availability and certificate status, you must enable Content match with the string 'Welcome to Contoso' and enable SSL certificate validity with a Proactive lifetime check threshold of 30 days.
To satisfy the requirements, the Standard test's success criteria must include Content match to validate that the payload contains the expected greeting, and SSL certificate validity with a Proactive lifetime check of 30 days to proactively warn before the server's certificate expires.
Step-by-Step Solution
Key Concept
Configuring success criteria in Application Insights Standard tests, specifically verifying response content and monitoring server SSL certificate expiration.