AI-200 Security And Observability Practice Question
When troubleshooting a Python AI application integrated with Application Insights, you want to ensure comprehensive error tracking and telemetry collection. Which TWO of the following SDK practices should you implement? (Choose two)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Wrap unhandled exception handling with telemetry_client.track_exception() to capture stack traces.
Using standard exception tracking methods and flushing telemetry buffers before application shutdown prevents data loss.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Disable the Application Insights telemetry client entirely in production to save bandwidth.
Why it's wrong here
Incorrect. Disabling telemetry blinds the operations team to production errors.
- ✓
Wrap unhandled exception handling with telemetry_client.track_exception() to capture stack traces.
Why this is correct
Correct. Tracking exceptions explicitly or via automatic SDK hooks captures failure details.
- ✗
Route all application logs exclusively to local text files on ephemeral container storage.
Why it's wrong here
Incorrect. Ephemeral container storage loses log files when containers restart.
- ✓
Explicitly call telemetry_client.flush() before application exit to ensure buffered items are transmitted.
Why this is correct
Correct. Flushing ensures asynchronous telemetry buffers are sent before process termination.
- ✗
Store plain-text passwords in telemetry custom dimensions.
Why it's wrong here
Incorrect. Storing sensitive passwords in telemetry logs violates security compliance.
About these practice questions
This AI-200 question is part of Courseiva's 503-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-200 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-200 exam.