easymultiple choiceObjective-mapped

A company uses Microsoft Entra ID (Microsoft Entra ID). They need to generate periodic reports of user sign-ins and audit activities for compliance. They want to store the logs for 1 year. Which Azure service should they use?

Question 1easymultiple choice
Full question →

A company uses Microsoft Entra ID (Microsoft Entra ID). They need to generate periodic reports of user sign-ins and audit activities for compliance. They want to store the logs for 1 year. Which Azure service should they use?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Microsoft Entra ID sign-in logs and audit logs with retention set to 1 year in the Azure portal

Microsoft Entra ID does not natively support retention longer than 30 days (or 90 with P2) in the portal.

B

Best answer

Azure Monitor Log Analytics workspace with Microsoft Entra ID diagnostic settings

Diagnostic settings send logs to Log Analytics, which allows configurable retention up to 2 years (or more).

C

Distractor review

Azure Storage account with lifecycle management

Storage can store logs, but querying and generating reports directly is not efficient; Log Analytics is designed for this.

D

Distractor review

Azure Event Hubs for streaming

Event Hubs is for real-time data ingestion, not for long-term retention and reporting.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

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.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • 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.

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.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-305 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Azure Monitor Log Analytics workspace with Microsoft Entra ID diagnostic settings — Microsoft Entra ID sign-in and audit logs are retained only for 30 days (90 days with P2) by default. To retain logs for 1 year, you must stream them via diagnostic settings to an Azure Monitor Log Analytics workspace where you can configure retention up to 2 years (and beyond with additional cost). Storing in storage account is possible but less query-friendly. Event Hubs is for real-time streaming, not long-term storage.

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

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.