Question 184 of 999

Quick Answer

The correct combination is Azure Monitor Metrics and Azure Monitor Logs. Azure Monitor Metrics is the right choice for real-time querying of custom metrics from AKS because it stores numeric time-series data with sub-minute granularity, enabling near-instant dashboard updates and alerts through Azure Dashboards or Grafana. Azure Monitor Logs, powered by Log Analytics, handles the one-year retention requirement by offering configurable retention up to 730 days and supports KQL queries for compliance audits. On the AZ-305 exam, this scenario tests your understanding of the separation between time-series metrics for operational speed and log-based data for long-term storage. A common trap is choosing Azure Monitor Metrics for logs or assuming Application Insights handles both, but Metrics lacks log retention and Logs lacks sub-minute granularity. Memory tip: think “Metrics for speed, Logs for need”—real-time dashboards need Metrics, compliance archives need Logs.

AZ-305 Practice Question: Design identity, governance, and monitoring solutions

This AZ-305 practice question tests your understanding of design identity, governance, and monitoring solutions. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are designing a monitoring solution for a critical application running on Azure Kubernetes Service (AKS). The application generates custom metrics that need to be queried in real-time for dashboards. You also need to retain logs for one year for compliance. Which combination of services should you use?

Question 1hardmultiple choice
Read the full NAT/PAT explanation →

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

Azure Monitor Metrics and Azure Monitor Logs

Azure Monitor Metrics is the correct choice for real-time querying of custom metrics because it stores numeric time-series data with sub-minute granularity and supports near real-time alerting and dashboarding via Azure Dashboards or Grafana. Azure Monitor Logs (Log Analytics) is required for retaining logs for one year, as it offers configurable retention up to 730 days (2 years) and supports KQL queries for compliance and audit needs. Together, they provide a unified monitoring solution for AKS that meets both real-time metric querying and long-term log retention requirements.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Azure Monitor Metrics and Azure Monitor Logs

    Why this is correct

    Metrics for real-time dashboards, Logs for long-term log retention and querying.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Prometheus and Azure Monitor Logs

    Why it's wrong here

    Prometheus is a metrics solution, but Azure Monitor already provides Metrics; Logs would be needed for log retention.

  • Azure Data Explorer and Azure Blob Storage

    Why it's wrong here

    Data Explorer is not the primary monitoring tool for AKS; Blob Storage alone doesn't support real-time querying.

  • Application Insights and Azure Storage

    Why it's wrong here

    Application Insights is for app telemetry, not infrastructure metrics; Storage is for archival, not real-time querying.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse Prometheus as the only way to collect custom metrics in AKS, but Azure Monitor Metrics natively supports custom metrics via the Azure Monitor agent and does not require a separate Prometheus deployment for real-time dashboards.

Detailed technical explanation

How to think about this question

Azure Monitor Metrics uses a time-series database that stores metrics for up to 93 days by default, but you can extend retention by routing to Log Analytics, which uses Kusto Query Language (KQL) for complex queries. For AKS, custom metrics can be collected via the Metrics API or the Container Insights agent, which sends both metrics and logs to the same Log Analytics workspace, enabling correlation between real-time performance and historical log data. In a real-world scenario, you might use Azure Monitor Metrics for live dashboards showing CPU/memory of pods, while Azure Monitor Logs retains container stdout/stderr logs for one year to meet compliance audits.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-305 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-305 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-305 question test?

Design identity, governance, and monitoring solutions — This question tests Design identity, governance, and monitoring solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Azure Monitor Metrics and Azure Monitor Logs — Azure Monitor Metrics is the correct choice for real-time querying of custom metrics because it stores numeric time-series data with sub-minute granularity and supports near real-time alerting and dashboarding via Azure Dashboards or Grafana. Azure Monitor Logs (Log Analytics) is required for retaining logs for one year, as it offers configurable retention up to 730 days (2 years) and supports KQL queries for compliance and audit needs. Together, they provide a unified monitoring solution for AKS that meets both real-time metric querying and long-term log retention requirements.

What should I do if I get this AZ-305 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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