- A
Use Elastic Database Jobs to run T-SQL that initiates failover and logs results.
Why wrong: Elastic Database Jobs is not supported for Managed Instance.
- B
Create an Azure Automation runbook with PowerShell that uses the Az.Sql module to perform failover and log to a table.
Why wrong: Requires external Azure Automation account.
- C
Use Azure Data Factory to execute a stored procedure that performs failover.
Why wrong: Data Factory is not designed for failover orchestration.
- D
Create a SQL Agent job with T-SQL that performs the planned failover using ALTER AVAILABILITY GROUP and logs the results to a table.
SQL Agent is available and can perform failover with T-SQL.
Quick Answer
The answer is to create a SQL Agent job with T-SQL that performs the planned failover using ALTER AVAILABILITY GROUP and logs the results to a table. This is correct because Azure SQL Managed Instance supports SQL Agent natively, allowing you to run T-SQL scripts that execute the ALTER AVAILABILITY GROUP command to trigger a planned failover within a failover group, while also writing status and timestamps to a user-defined logging table for compliance. On the DP-300 exam, this scenario tests your understanding of Managed Instance’s built-in automation capabilities versus external services—a common trap is assuming you need Elastic Database Jobs or Azure Automation, but those are either unsupported on Managed Instance or violate the “self-contained” requirement. Remember the key constraint: the solution must live entirely inside the Managed Instance, which points directly to SQL Agent. Memory tip: “Agent handles the failover, logs the data—no external tools, no drama.”
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. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. 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 a database administrator for a multinational corporation that uses Azure SQL Managed Instance. The instance is part of a failover group for disaster recovery. You need to automate the process of testing the failover group by performing a planned failover to the secondary region and then failing back. The test must be performed monthly during a maintenance window. The automation must ensure that the failover group is in a healthy state before and after the test and must log the results to a table. Additionally, the solution must be self-contained within the Managed Instance and not rely on external tools. 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
Create a SQL Agent job with T-SQL that performs the planned failover using ALTER AVAILABILITY GROUP and logs the results to a table.
Option D is correct. SQL Agent jobs on Managed Instance can execute T-SQL commands to perform failover using the ALTER AVAILABILITY GROUP command (which is available for failover groups) and log results. Option A is incorrect because Elastic Database Jobs is not available for Managed Instance. Option B is incorrect because Azure Automation requires external setup. Option C is incorrect because Data Factory is not for failover orchestration.
Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use Elastic Database Jobs to run T-SQL that initiates failover and logs results.
Why it's wrong here
Elastic Database Jobs is not supported for Managed Instance.
- ✗
Create an Azure Automation runbook with PowerShell that uses the Az.Sql module to perform failover and log to a table.
Why it's wrong here
Requires external Azure Automation account.
- ✗
Use Azure Data Factory to execute a stored procedure that performs failover.
Why it's wrong here
Data Factory is not designed for failover orchestration.
- ✓
Create a SQL Agent job with T-SQL that performs the planned failover using ALTER AVAILABILITY GROUP and logs the results to a table.
Why this is correct
SQL Agent is available and can perform failover with T-SQL.
Related concept
Static NAT maps one inside address to one outside address.
Common exam traps
Common exam trap: NAT rules depend on direction and matching traffic
NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.
Detailed technical explanation
How to think about this question
NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.
KKey Concepts to Remember
- Static NAT maps one inside address to one outside address.
- PAT allows many inside hosts to share one public address using ports.
- Inside local and inside global describe the private and translated addresses.
- NAT ACLs identify traffic for translation, not always security filtering.
TExam Day Tips
- Identify inside and outside interfaces first.
- Check whether the scenario needs static NAT, dynamic NAT or PAT.
- Do not confuse NAT matching ACLs with normal packet-filtering intent.
Key takeaway
NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Real-world example
How this comes up in practice
An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.
What to study next
Got this wrong? Here's your next step.
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related DP-300 NAT questions on configuration and troubleshooting.
- →
Configure and manage automation of tasks — study guide chapter
Learn the concepts, then practise the questions
- →
Configure and manage automation of tasks practice questions
Targeted practice on this topic area only
- →
All DP-300 questions
953 questions across all exam domains
- →
Microsoft Azure Database Administrator Associate DP-300 study guide
Full concept coverage aligned to exam objectives
- →
DP-300 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DP-300 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Plan and configure a high availability and disaster recovery environment practice questions
Practise DP-300 questions linked to Plan and configure a high availability and disaster recovery environment.
Plan and implement data platform resources practice questions
Practise DP-300 questions linked to Plan and implement data platform resources.
Monitor, configure, and optimize database resources practice questions
Practise DP-300 questions linked to Monitor, configure, and optimize database resources.
Configure and manage automation of tasks practice questions
Practise DP-300 questions linked to Configure and manage automation of tasks.
Plan and configure high availability and disaster recovery practice questions
Practise DP-300 questions linked to Plan and configure high availability and disaster recovery.
Implement a secure environment practice questions
Practise DP-300 questions linked to Implement a secure environment.
DP-300 fundamentals practice questions
Practise DP-300 questions linked to DP-300 fundamentals.
DP-300 scenario practice questions
Practise DP-300 questions linked to DP-300 scenario.
DP-300 troubleshooting practice questions
Practise DP-300 questions linked to DP-300 troubleshooting.
Practice this exam
Start a free DP-300 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 DP-300 question test?
Configure and manage automation of tasks — This question tests Configure and manage automation of tasks — Static NAT maps one inside address to one outside address..
What is the correct answer to this question?
The correct answer is: Create a SQL Agent job with T-SQL that performs the planned failover using ALTER AVAILABILITY GROUP and logs the results to a table. — Option D is correct. SQL Agent jobs on Managed Instance can execute T-SQL commands to perform failover using the ALTER AVAILABILITY GROUP command (which is available for failover groups) and log results. Option A is incorrect because Elastic Database Jobs is not available for Managed Instance. Option B is incorrect because Azure Automation requires external setup. Option C is incorrect because Data Factory is not for failover orchestration.
What should I do if I get this DP-300 question wrong?
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related DP-300 NAT questions on configuration and troubleshooting.
What is the key concept behind this question?
Static NAT maps one inside address to one outside address.
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 →
Last reviewed: Jun 21, 2026
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.