Courseiva

DP-300 · topic practice

Configure and manage automation of tasks practice questions

This domain covers automating routine Azure SQL administration: scheduling T-SQL and PowerShell, refreshing dev databases from backups, alerting on metrics, and running recurring index maintenance. Questions present a scenario and ask which Azure service, feature, or component to use, or which elements are required to make an automation solution work.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Configure and manage automation of tasks

What the exam tests

What to know about Configure and manage automation of tasks

Be able to select and configure the right Azure automation service for a scenario: Azure Automation for runbooks, Elastic Jobs for T-SQL across databases, Logic Apps for orchestration, and alerts with action groups for notifications. The key is matching the service to the task and knowing required components.

Choosing Azure Automation runbooks, Logic Apps, or Elastic Jobs for scheduled T-SQL and orchestration.

Configuring Azure SQL Database alerts on metrics like storage percentage with action groups for email.

Setting up elastic jobs with a job agent, target group, and job credentials or database-scoped credentials.

Automating database copy or restore from production backups to refresh development environments.

Watch out for

Common Configure and manage automation of tasks exam traps

  • ▸Confusing Azure Automation with Elastic Jobs; Automation runs runbooks, while Elastic Jobs natively target Azure SQL databases with T-SQL.
  • ▸Forgetting that elastic jobs require a job agent, target group, and credentials, not just a schedule or job database.
  • ▸Assuming alerts send email by themselves; an action group must be attached to the alert rule for notifications.

Practice set

Configure and manage automation of tasks questions

20 questions · select your answer, then reveal the explanation

A company uses Azure SQL Managed Instance. They need to automate index maintenance for all databases in the instance. The solution must minimize administrative overhead and use built-in Azure features. What should you do?

You need to automatically scale an Azure SQL Database based on workload patterns. The solution must use built-in Azure features and minimize manual intervention. Which feature should you configure?

You manage an Azure SQL Database that supports a critical application. You need to automate the process of rebuilding indexes that have fragmentation above 30% on a weekly basis. The solution must use built-in database features and minimize performance impact. What should you do?

Refer to the exhibit. You are reviewing the JSON configuration for an elastic job. The job is expected to run every week on Sunday at midnight UTC. However, the job is not executing as scheduled. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
{
    "properties": {
        "startTime": "2024-05-01T00:00:00Z",
        "interval": "PT1H",
        "frequency": "Week",
        "daysOfWeek": [ "Sunday" ],
        "timeZone": "UTC",
        "retentionPolicy": {
            "days": 30
        }
    },
    "type": "Microsoft.Sql/servers/elasticPools/elasticJobAgents/jobs/executions"
}
```

Refer to the exhibit. You are monitoring index fragmentation in an Azure SQL Database. You need to automate the rebuild of this index when fragmentation exceeds 50%. The rebuild must be online to minimize downtime. Which T-SQL statement should you include in your automated maintenance job?

Exhibit

Refer to the exhibit.

```
-- Output from sys.dm_db_index_physical_stats
OBJECT_NAME = 'Orders'
index_type_desc = 'CLUSTERED'
avg_fragmentation_in_percent = 65
page_count = 25000
```
Question 6hardmultiple choice
Read the full DNS explanation →

Your company has a critical Azure SQL Database named SalesDB in the West US region. To meet disaster recovery requirements, you configured active geo-replication with a readable secondary replica in East US. You need to automate failover in the event of a regional outage. The solution must ensure that the failover is initiated automatically based on health metrics and that the application connection string is updated to point to the new primary. Currently, the application uses a connection string with the primary server name. You have the following requirements: minimize manual intervention, use built-in Azure features, and ensure that failover is tested regularly. You consider the following options: A) Use Azure Traffic Manager with endpoint monitoring to route traffic to the primary and automatically failover. B) Configure auto-failover group with read-write failover policy and grace period. C) Create an Azure Logic App that queries the database health and runs a PowerShell script to perform failover and update DNS. D) Use Azure Automation with a runbook that checks the database status and initiates failover via REST API. Which option best meets the requirements?

A company uses Azure SQL Managed Instance. They want to automate backups to a storage account for long-term retention beyond the default 35 days. What should they use?

Which TWO options are valid services for scheduling automated tasks for Azure SQL Database? (Choose two.)

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?

Exhibit

{
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "apiVersion": "2021-02-01-preview",
  "properties": {
    "weeklyRetention": "P4W",
    "monthlyRetention": "P12M",
    "yearlyRetention": "P5Y",
    "weekOfYear": 1
  }
}

You are the database administrator for a large e-commerce company. The company uses Azure SQL Database for its product catalog, which is updated frequently during business hours. To maintain query performance, you have automated index maintenance using Elastic Database Jobs. The job runs every night at 2:00 AM and rebuilds indexes with a fill factor of 80. However, you notice that the job is taking longer than expected, often running until 6:00 AM, and sometimes it fails due to timeouts. You also observe that index fragmentation is still high after the job completes. The database is in the General Purpose service tier with 100 DTUs. Which action should you take to improve the situation?

You are designing an automated backup strategy for Azure SQL Database. Which TWO actions satisfy a requirement to maintain daily backups for 30 days and ensure recoverability if the Azure region becomes unavailable?

You are managing an Azure SQL Database that runs a critical business application. The database experiences a predictable surge in read-only queries every night at 2:00 AM. You need to configure automatic scaling to handle this surge without manual intervention. What should you do?

You are automating index maintenance for an Azure SQL Database. Which THREE of the following should you consider to minimize performance impact?

You are reviewing an Azure SQL Database automated backup retention policy. The exhibit shows the current configuration. You need to ensure that the database can be restored to a point in time within the last 7 days at a granularity of 1 minute. Which of the following is a limitation of the current configuration?

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "description": "Automated backup retention policy",
    "policyType": "Default",
    "retentionDays": 35,
    "backupIntervalInHours": 12,
    "geoRedundantBackup": "Enabled"
  }
}
```

Drag and drop the steps to migrate an on-premises SQL Server database to Azure SQL Database using the Data Migration Assistant (DMA) in the correct order.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Match each Azure SQL Database high availability feature to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Asynchronous replication to a secondary region

Group of databases that fail over together

Replicas across different availability zones

Data replicated within a single datacenter

Match each Azure SQL Database command to its function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Sets database-level configuration options

Clears the procedure cache

Changes the recovery model of the database

Creates a database as a copy of another database

Your company uses Azure SQL Managed Instance and needs to automate patching and maintenance. The compliance team requires that all maintenance windows be predefined and that no maintenance occurs outside these windows. What should you configure?

You are designing an automated data movement solution using Azure Data Factory. Data must be copied from an on-premises SQL Server to Azure SQL Database. The solution must support incremental loads and handle schema changes. Which approach should you use?

Your company uses GitHub Actions to deploy changes to Azure SQL Database. You need to ensure that rollbacks can be performed automatically if a deployment fails. Which strategy should you implement?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Configure and manage automation of tasks sessions

Start a Configure and manage automation of tasks only practice session

Every question in these sessions is drawn from the Configure and manage automation of tasks domain — nothing else.

Related practice questions

Related DP-300 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the DP-300 exam test about Configure and manage automation of tasks?
Be able to select and configure the right Azure automation service for a scenario: Azure Automation for runbooks, Elastic Jobs for T-SQL across databases, Logic Apps for orchestration, and alerts with action groups for notifications. The key is matching the service to the task and knowing required components.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Configure and manage automation of tasks questions in a focused session?
Yes — the session launcher on this page draws every question from the Configure and manage automation of tasks domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other DP-300 topics?
Use the topic links above to move to related areas, or go back to the DP-300 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the DP-300 exam covers. They are not copied from any real exam or dump site.