The correct answer is that weekly backups are retained for 4 weeks. This is because the ARM template snippet sets the `weeklyRetention` property to `P4W`, which is the ISO 8601 duration format where "P" denotes the period, the number indicates the quantity, and "W" stands for weeks. In Azure SQL Database backup long-term retention (LTR) policies, all retention values must be expressed in this standardized ISO 8601 duration format, so `P4W` directly translates to a retention period of exactly four weeks for weekly backups. On the DP-300 exam, this concept tests your ability to read and interpret ARM template parameters, a common task when automating backup policies. A frequent trap is confusing `P4W` with 4 days or misreading the "W" as months; remember that the letter after the number always specifies the unit—W for weeks, M for months, Y for years. A helpful memory tip: think of "P" as "Period" and the letter as the "Unit," so `P4W` is simply "Period 4 Weeks."
DP-300 Configure and manage automation of tasks Practice Question
This DP-300 practice question tests your understanding of configure and manage automation of tasks. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.
Refer to the exhibit. You are reviewing an ARM template snippet for an Azure SQL Database backup long-term retention policy. The template is deployed successfully. Which statement is true about the resulting backup retention?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Weekly backups are retained for 4 weeks.
The ARM template snippet defines a backup long-term retention policy for Azure SQL Database. The `weeklyRetention` property is set to `P4W`, which in ISO 8601 duration format means a period of 4 weeks. Therefore, weekly backups are retained for exactly 4 weeks. Option D correctly reflects this configuration.
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.
✗
Monthly backups are retained for 24 months.
Why it's wrong here
MonthlyRetention is P12M, which is 12 months.
✗
Weekly backups are retained for 8 weeks.
Why it's wrong here
WeeklyRetention is P4W, not P8W.
✗
Yearly backups are retained for 1 year.
Why it's wrong here
YearlyRetention is P5Y, which is 5 years.
✓
Weekly backups are retained for 4 weeks.
Why this is correct
The weeklyRetention property is set to P4W, which is 4 weeks.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often misread the ISO 8601 duration values (e.g., confusing P4W with 4 months or assuming P12M means 24 months) or incorrectly associate the retention period with a different backup frequency (e.g., thinking weekly retention applies to monthly backups).
Detailed technical explanation
How to think about this question
Azure SQL Database long-term retention (LTR) policies use ISO 8601 duration format (e.g., P4W for 4 weeks, P12M for 12 months). The `weeklyRetention` defines how long the most recent full weekly backup is kept; after that period, the backup is automatically deleted. In practice, if you set `weeklyRetention` to P4W, you ensure that for any given week, the backup from that week is available for exactly 4 weeks, which is useful for compliance scenarios requiring short-term weekly recovery points.
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 cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this DP-300 question in full detail.
Configure and manage automation of tasks — This question tests Configure and manage automation of tasks — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Weekly backups are retained for 4 weeks. — The ARM template snippet defines a backup long-term retention policy for Azure SQL Database. The `weeklyRetention` property is set to `P4W`, which in ISO 8601 duration format means a period of 4 weeks. Therefore, weekly backups are retained for exactly 4 weeks. Option D correctly reflects this configuration.
What should I do if I get this DP-300 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 →
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.
This DP-300 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 DP-300 exam.
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.
Sign in to join the discussion.