Courseiva
Implement an instrumentation strategyhardMultiple ChoiceObjective-mapped

AZ-400 Implement an instrumentation strategy Practice Question

You are designing an instrumentation strategy for a microservices application deployed to Azure Kubernetes Service (AKS) using Azure Pipelines. The application emits custom metrics using OpenTelemetry. You need to ensure that all pipeline-related events (build, release, and test results) are correlated with application telemetry to enable end-to-end traceability. What should you do?

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

Set a unique Correlation ID in the pipeline variables and pass it to the application's OpenTelemetry instrumentation as a span attribute.

Setting a unique Correlation ID in pipeline variables and passing it as a span attribute to OpenTelemetry allows end-to-end traceability by linking pipeline events with application telemetry. Option A is incorrect because Application Insights can ingest pipeline telemetry, but that alone does not correlate with application telemetry; you need a shared correlation ID. Option B is wrong because storing pipeline logs in Log Analytics and querying with metrics does not provide real-time correlation at the span level. Option C is incorrect because deployment gates based on application metrics do not create correlation; they only block deployments based on conditions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure Application Insights to ingest pipeline telemetry via a custom exporter.

    Why it's wrong here

    Application Insights does not natively ingest Azure Pipelines execution data, and a custom exporter would still require manual mapping of pipeline stages/runs to application spans. This approach fails to provide a reliable correlation mechanism because pipeline telemetry and application telemetry remain in separate schemas without a shared unique context.

  • Store pipeline logs in an Azure Log Analytics workspace and query them together with application metrics.

    Why it's wrong here

    Storing pipeline logs in a Log Analytics workspace allows centralized querying, but without a shared Correlation ID you cannot deterministically join pipeline logs to application metrics. Queries based on timestamps alone are fragile and cannot reconstruct a single end-to-end transaction across the pipeline and running service.

  • Use Azure Pipelines' Checks feature to enforce deployment gates based on application metrics.

    Why it's wrong here

    Azure Pipelines Checks are an approval/gating mechanism that can block deployments based on metrics, but they do not establish any linkage between pipeline execution and application telemetry. Using Checks does not add tracing context or a correlation identifier, so it cannot solve the instrumentation strategy.

  • Set a unique Correlation ID in the pipeline variables and pass it to the application's OpenTelemetry instrumentation as a span attribute.

    Why this is correct

    Setting a unique Correlation ID in pipeline variables and passing it into the application's OpenTelemetry instrumentation as a span attribute creates a shared context for all telemetry emitted during that pipeline run. This allows you to query Application Insights for every span and log associated with a specific build/deployment, enabling end-to-end traceability from pipeline to application.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

About these practice questions

This AZ-400 question is part of Courseiva's 823-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 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 AZ-400 exam.