Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Configure and manage automation of tasks practice sets

DP-300 Configure and manage automation of tasks • Complete Question Bank

DP-300 Configure and manage automation of tasks — All Questions With Answers

Complete DP-300 Configure and manage automation of tasks question bank — all 0 questions with answers and detailed explanations.

172
Questions
Free
No signup
Certifications/DP-300/Practice Test/Configure and manage automation of tasks/All Questions
Question 1mediummultiple choice
Read the full Configure and manage automation of tasks 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?

Question 2easymultiple choice
Read the full NAT/PAT explanation →

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?

Question 3hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are responsible for automating backups of on-premises SQL Server databases to Azure Blob Storage. The solution must use the least administrative effort and provide point-in-time restore capability. What should you implement?

Question 4mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 5easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of schema changes to multiple Azure SQL Databases in different regions. The solution must support rollback and version control. Which technology should you use?

Question 6mediummulti select
Read the full Configure and manage automation of tasks explanation →

You are configuring automated backups for an Azure SQL Database. Which TWO settings can you configure?

Question 7hardmulti select
Read the full Configure and manage automation of tasks explanation →

You need to automate monitoring and alerting for an Azure SQL Database. Which THREE actions can you achieve using Azure Monitor and SQL Insights?

Question 8mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

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"
}
```
Question 9hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

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 10hardmultiple 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?

Question 11mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

A company uses Azure SQL Database for a critical application. They need to automate the process of exporting a database to a storage account every night, ensuring the export is consistent. The solution must minimize administrative overhead. What should they use?

Question 12easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are tasked with automating index maintenance for an Azure SQL Database. Which Azure service should you use to run T-SQL scripts on a recurring schedule?

Question 13hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 14mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the creation of a new Azure SQL Database whenever a new customer signs up. The solution should use infrastructure as code and integrate with your CI/CD pipeline. What should you use?

Question 15mediummulti select
Read the full Configure and manage automation of tasks explanation →

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

Question 16hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE actions can be performed by using Elastic Database Jobs in Azure SQL Database? (Choose three.)

Question 17mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

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
  }
}
Question 18hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 19mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are configuring automated backup retention for Azure SQL Managed Instance. The compliance policy requires that you be able to restore a database to any point within the last 90 days, and that you keep backups for a minimum of 7 years for auditing purposes. Which backup retention policy should you configure?

Question 20hardmulti select
Read the full Configure and manage automation of tasks explanation →

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?

Question 21mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 22hardmulti select
Read the full Configure and manage automation of tasks explanation →

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

Question 23easymultiple choice
Read the full Configure and manage automation of tasks explanation →

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"
  }
}
```
Question 24mediumdrag order
Read the full Configure and manage automation of tasks explanation →

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 steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 25mediumdrag order
Read the full Configure and manage automation of tasks explanation →

Drag and drop the steps to configure an Azure SQL Database elastic pool in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 26mediummatching
Read the full Configure and manage automation of tasks explanation →

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

Question 27mediummatching
Read the full Configure and manage automation of tasks explanation →

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

Question 28easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are automating the creation of an Azure SQL database. You need to ensure that the deployment is idempotent using Azure Resource Manager (ARM) templates. Which deployment mode should you use?

Question 29mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that needs to be backed up daily using Azure Automation runbooks. The runbook must trigger an export of the database to a storage account. How should you configure the runbook to authenticate securely to Azure?

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

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?

Question 31mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the scaling of an Azure SQL Database in response to CPU usage using Azure Automation. Which Azure service should you use to monitor CPU metrics and trigger the runbook?

Question 32hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 33easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of Azure SQL Database logical servers and databases using Bicep. What is the best practice for storing the administrative password securely?

Question 34mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that must be automatically restarted every night to clear the procedure cache. You plan to use elastic jobs in Azure SQL Database. What should you create first?

Question 35hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

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?

Question 36mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the creation of an Azure SQL Database using Azure CLI in a CI/CD pipeline. The database name must be unique and include the build ID. How should you specify the database name in the Azure CLI command?

Question 37easymulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO actions should you perform to enable automatic tuning for an Azure SQL Database?

Question 38mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE components are required to set up elastic jobs in Azure SQL Database?

Question 39hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO methods can be used to automate index maintenance in Azure SQL Database?

Question 40hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You are deploying an Azure SQL Database using this ARM template. After deployment, you need to automate the scaling of the database to a higher service tier when DTU consumption exceeds 80% for 5 minutes. Which Azure service should you use to trigger the scaling?

Exhibit

Refer to the exhibit.

{
    "type": "Microsoft.Sql/servers/databases",
    "apiVersion": "2023-08-01-preview",
    "name": "[format('{0}/{1}', parameters('serverName'), parameters('databaseName'))]",
    "location": "[parameters('location')]",
    "properties": {
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": 1073741824,
        "readScale": "Disabled",
        "zoneRedundant": false,
        "autoPauseDelay": 60
    },
    "sku": {
        "name": "GP_Gen5_2",
        "tier": "GeneralPurpose",
        "family": "Gen5",
        "capacity": 2
    }
}
Question 41mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You execute this PowerShell script to automate database configuration. The script runs without errors, but the database remains in the 'Standard' edition with S2 performance level. What is the most likely reason?

Exhibit

Refer to the exhibit.

$params = @{
    ResourceGroupName = 'rg-sql'
    ServerName = 'sqlserver123'
    DatabaseName = 'mydb'
    Edition = 'Standard'
    RequestedServiceObjectiveName = 'S2'
    ElasticPoolName = 'pool1'
}
Set-AzSqlDatabase @params
Question 42hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You are configuring an Azure Automation schedule for a runbook that backs up Azure SQL Databases. The runbook should run daily at midnight. However, the runbook runs twice a day. What is the most likely cause?

Exhibit

Refer to the exhibit.

{
    "properties": {
        "displayName": "DailyBackup",
        "description": "Backup all databases",
        "intervalType": "Recurring",
        "interval": 1440,
        "intervalUnit": "Minutes",
        "schedule": {
            "startTime": "2025-01-01T00:00:00Z",
            "interval": "P1D"
        }
    }
}
Question 43mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage an Azure SQL Database that must run a maintenance task every Sunday at 2:00 AM UTC. The task must be resilient to failures and automatically retry if it fails. You need to configure this using Azure automation. What is the most appropriate solution?

Question 44hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Your company uses Azure SQL Managed Instance for a critical OLTP workload. You need to automate index maintenance for all databases in the instance without downtime. The solution must minimize performance impact during business hours. Which approach should you use?

Question 45easymultiple choice
Read the full NAT/PAT explanation →

You have an Azure SQL Database that must be automatically stopped during weekends to save costs. Which combination of Azure services can achieve this automation?

Question 46mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Your team uses Azure DevOps to deploy database changes to Azure SQL Database. You need to automate the generation and deployment of database schema changes based on a Git branch merge. Which Azure service should you integrate?

Question 47hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are designing an automated backup strategy for Azure SQL Managed Instance. The solution must ensure point-in-time restore (PITR) within 2 hours for the last 7 days and long-term retention (LTR) for 5 years. Which configuration should you use?

Question 48easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the process of scaling an Azure SQL Database to a higher service tier when CPU usage exceeds 80% for 5 consecutive minutes. Which Azure service is best suited for this automation?

Question 49hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Your Azure SQL Database uses a failover group for disaster recovery. You need to automate a planned failover for disaster recovery testing without data loss. What should you use?

Question 50mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that stores sensitive customer data. You need to automate the masking of a specific column for non-admin users. Which feature should you use?

Question 51easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automatically send a weekly email report summarizing the performance metrics (DTU consumption, storage used) of all Azure SQL Databases in a subscription. Which Azure service should you use?

Question 52mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO actions can you perform using Elastic Database Jobs in Azure SQL Database?

Question 53hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE configurations are required to automate the deployment of database schema changes from a Git repository to Azure SQL Database using Azure Pipelines?

Question 54easymulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO Azure services can be used to automate the execution of T-SQL scripts on a schedule against Azure SQL Database?

Question 55hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. An Azure SQL Database has the above ARM template for long-term retention (LTR) backup policy. Which statement is true about the retention duration?

Exhibit

{
  "type": "Microsoft.Sql/servers/databases/backupLongTermRetentionPolicies",
  "apiVersion": "2021-02-01-preview",
  "properties": {
    "weeklyRetention": "P2W",
    "monthlyRetention": "P6M",
    "yearlyRetention": "P5Y",
    "weekOfYear": 1
  }
}
Question 56mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You run the above PowerShell command to set the Transparent Data Encryption (TDE) protector for an Azure SQL Database server. What is the result?

Exhibit

Invoke-AzSqlDatabaseTransparentDataEncryptionProtector -ServerName "myserver" -ResourceGroupName "myrg" -ProtectorType "AzureKeyVault" -KeyVaultKeyId "https://myvault.vault.azure.net/keys/mykey/abc123"
Question 57easymultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. The ARM template snippet configures auditing for an Azure SQL Database. Based on the configuration, which events are audited?

Exhibit

{
  "type": "Microsoft.Sql/servers/databases/auditingSettings",
  "apiVersion": "2020-11-01-preview",
  "properties": {
    "state": "Enabled",
    "auditActionsAndGroups": [
      "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP",
      "FAILED_DATABASE_AUTHENTICATION_GROUP"
    ],
    "storageAccountAccessKey": "...",
    "retentionDays": 90
  }
}
Question 58mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that runs a critical workload. You need to automate index maintenance to reduce fragmentation without impacting performance. What should you use?

Question 59hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage a fleet of 100 Azure SQL Databases used by different departments. You need to automate the deployment of schema changes across all databases with rollback capability. What is the best approach?

Question 60easymultiple choice
Read the full NAT/PAT explanation →

You need to automatically scale an Azure SQL Database based on workload patterns. Which Azure feature should you use?

Question 61mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Managed Instance. You need to automate the execution of a stored procedure every hour to clean up historical data. What is the most appropriate solution?

Question 62easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automatically send an email notification when an Azure SQL Database reaches 80% storage usage. What should you configure?

Question 63hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Your company has a policy to automatically pause Azure SQL Databases during non-business hours to save costs. You need to implement this with minimal administrative overhead. What should you use?

Question 64mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that stores sensitive data. You need to automatically classify and apply sensitivity labels to new columns as they are added. What should you use?

Question 65easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the backup of an Azure SQL Database to a storage account in a different region for disaster recovery. What should you configure?

Question 66hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses a failover group for high availability. You need to automate the failover to the secondary region during a planned maintenance window. What is the best approach?

Question 67mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO Azure services can be used to automate the deployment of schema changes to Azure SQL Database?

Question 68hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE components are required to set up automated monitoring and alerting for an Azure SQL Database using Azure Monitor?

Question 69easymulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO methods can be used to automatically restart an Azure SQL Database after a maintenance operation?

Question 70mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You deploy this ARM template for an Azure SQL Database. The deployment succeeds. Which statement about the deployed database is true?

Exhibit

Refer to the exhibit.

{
  "type": "Microsoft.Sql/servers/databases",
  "apiVersion": "2023-05-01-preview",
  "properties": {
    "collation": "SQL_Latin1_General_CP1_CI_AS",
    "maxSizeBytes": 5368709120,
    "requestedServiceObjectiveName": "S2",
    "zoneRedundant": false,
    "autoPauseDelay": 60
  }
}
Question 71hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. A PowerShell script is used to move an Azure SQL Database into an elastic pool. The script runs without error. Which condition must be true before the script runs?

Exhibit

Refer to the exhibit.

$resourceGroup = "rg-sql"
$databaseName = "sqldb1"
$elasticPoolName = "ep1"

Set-AzSqlDatabase -ResourceGroupName $resourceGroup `
  -DatabaseName $databaseName `
  -ElasticPoolName $elasticPoolName
Question 72mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You run this KQL query in Azure Monitor Log Analytics for an Azure SQL Database. What type of events does the query return?

Exhibit

Refer to the exhibit.

-- Kusto Query Language (KQL) query
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.SQL"
| where Category == "SQLSecurityAuditEvents"
| where action_id_s == "AUSC"
| project TimeGenerated, session_server_principal_name_s, statement_s
Question 73mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are managing an Azure SQL Database that requires automated index maintenance. You want to use a solution that minimizes administrative overhead and leverages built-in Azure capabilities. Which approach should you recommend?

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

Your company uses Azure SQL Managed Instance. You need to automate the execution of a stored procedure that processes sales data every night at 2 AM. The solution must use native capabilities and minimize latency. What should you do?

Question 75easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of database schema changes across multiple Azure SQL Databases in a development environment. Which Azure service is designed for this purpose?

Question 76hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are designing an automated backup strategy for Azure SQL Database. The compliance policy requires point-in-time restore (PITR) for the last 35 days, and long-term retention (LTR) for 7 years. What is the minimal number of LTR policies needed?

Question 77mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Your team uses GitHub Actions for CI/CD. You need to automatically deploy schema changes to an Azure SQL Database after a pull request merge. The solution must use a service principal with minimal permissions. Which authentication method should the workflow use?

Question 78easymultiple choice
Read the full NAT/PAT explanation →

You need to run a complex T-SQL script on an Azure SQL Database every hour. The script performs data transformations that must be logged for auditing. Which native Azure service should you use?

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

You have an Azure SQL Database that needs to be automatically scaled up during peak hours and scaled down during off-peak. The solution must use native Azure capabilities without custom code. What should you use?

Question 80mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are responsible for automating database maintenance on multiple Azure SQL Databases in an elastic pool. You need to rebuild fragmented indexes weekly. The solution should minimize resource contention. What should you implement?

Question 81easymultiple choice
Read the full NAT/PAT explanation →

Your organization uses Azure SQL Database and needs to automate email notifications when a database reaches 80% storage usage. Which native Azure feature can you use?

Question 82mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO of the following are valid methods to automate backups for Azure SQL Managed Instance? (Select exactly two.)

Question 83hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE of the following are required to automate schema deployments to Azure SQL Database using Azure DevOps? (Select exactly three.)

Question 84easymulti select
Read the full NAT/PAT explanation →

Which TWO of the following are native options to automate index maintenance on Azure SQL Database? (Select exactly two.)

Question 85hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You are reviewing an Elastic Database Job definition for Azure SQL Database. The job is scheduled to run once on January 15, 2026. Which statement about the job's target is correct?

Exhibit

{
  "properties": {
    "targetGroup": {
      "type": "SqlDatabase",
      "membershipType": "Exclude",
      "members": [
        {
          "serverName": "prod-server",
          "databaseName": "db1"
        }
      ]
    },
    "schedule": {
      "type": "Once",
      "startTime": "2026-01-15T02:00:00Z"
    },
    "jobStep": {
      "type": "TSql",
      "commandText": "EXEC sp_cleanup @retention_days = 30"
    }
  }
}
Question 86mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You are reviewing an Azure Automation runbook configuration that performs backups. What is the most likely issue with this configuration?

Exhibit

{
  "properties": {
    "name": "WeeklyBackup",
    "description": "Weekly backup of all databases",
    "isEnabled": true,
    "storageAccountType": "Standard_LRS",
    "retentionDays": 7,
    "backupSchedule": {
      "frequencyInterval": 7,
      "frequencyUnit": "Day"
    },
    "databases": [
      {
        "databaseName": "SalesDB"
      }
    ]
  }
}
Question 87easymultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. An administrator runs this Azure CLI command. What is the immediate effect?

Network Topology
az sql db updateresource-group $RESOURCE_GROUPserver $SERVER_NAMEname $DATABASE_NAMEservice-objective S2RESOURCE_GROUP="rg-db-automation"SERVER_NAME="sql-prod-01"DATABASE_NAME="OrdersDB"
Question 88hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage a critical Azure SQL Database that requires automated index maintenance. You need to ensure that index rebuilds only occur during low-usage periods defined in a schedule, while index reorganizations run more frequently. What is the most efficient way to implement this using Azure Automation?

Question 89easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are designing an automated backup retention policy for an Azure SQL Database. The business requirement is to retain daily backups for 30 days, weekly backups for 12 weeks, monthly backups for 12 months, and yearly backups for 7 years. Which backup retention type should you configure?

Question 90mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Your company uses Azure SQL Managed Instance and wants to automate the creation of new databases for each development sprint. Each database must be a copy of a template database with specific schema and data. You need to recommend an automation solution that minimizes manual steps and integrates with your CI/CD pipeline. What should you use?

Question 91hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are troubleshooting a failed automated backup for an Azure SQL Database. The backup policy is configured for geo-redundant storage (RA-GRS). You notice that the last successful backup was 48 hours ago. The database is still online and accessible. What is the most likely cause of the backup failure?

Question 92easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of an Azure SQL Database along with its firewall rules and performance tier using infrastructure as code. Which technology should you use?

Question 93mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Your Azure SQL Database is configured with active geo-replication. You need to automate the failover process in case of a regional outage. The solution should ensure minimal data loss and support testing without affecting the production environment. What should you use?

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

You are automating the scaling of an Azure SQL Database based on workload patterns. The database uses the DTU purchasing model. You need to ensure that scaling actions do not cause connection drops. Which scaling method should you use?

Question 95easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the generation of a weekly report that shows the top 10 queries by CPU consumption in an Azure SQL Database. The report should be emailed to the DBA team. Which service should you use to gather the query performance data?

Question 96mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are implementing automated table partitioning maintenance for a large Azure SQL Database. The partitioning function uses a monthly range. You need to add a new partition for the next month and remove the oldest partition. What is the best way to automate this?

Question 97hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO actions are required to automate the export of an Azure SQL Database to a BACPAC file on a monthly basis? (Choose two.)

Question 98mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE components are part of an Azure SQL Managed Instance automated maintenance window configuration? (Choose three.)

Question 99easymulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO tools can be used to automate the deployment of database schema changes to Azure SQL Database as part of a CI/CD pipeline? (Choose two.)

Question 100hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. You are reviewing an ARM template for an Azure SQL Database backup retention policy. The database is in a business-critical environment that requires point-in-time restore (PITR) for the last 28 days. What is the issue with this configuration?

Exhibit

Refer to the exhibit.

{
  "type": "Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies",
  "apiVersion": "2023-05-01-preview",
  "properties": {
    "retentionDays": 28,
    "diffBackupIntervalInHours": 24,
    "weeklyRetention": "P4W",
    "monthlyRetention": "P12M",
    "yearlyRetention": "P7Y",
    "weekOfYear": 1
  }
}
Question 101mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. A Logic App is configured to pause an Azure SQL Database named AdventureWorks every Friday at 8 PM. However, the database is not pausing. What is the most likely reason?

Exhibit

Refer to the exhibit.

{
  "name": "start-stop-database",
  "type": "Microsoft.Logic/workflows",
  "location": "eastus",
  "properties": {
    "definition": {
      "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
      "actions": {
        "Pause_Database": {
          "type": "ApiConnection",
          "inputs": {
            "host": {
              "connection": {
                "name": "@parameters('$connections')['sql']['connectionId']"
              }
            },
            "method": "post",
            "path": "/databases/@{encodeURIComponent('AdventureWorks')}/pause",
            "queries": {
              "api-version": "2023-08-01-preview"
            }
          }
        }
      },
      "triggers": {
        "Recurrence": {
          "recurrence": {
            "frequency": "Week",
            "interval": 1,
            "schedule": {
              "hours": [20],
              "minutes": [0],
              "weekDays": ["Friday"]
            }
          },
          "type": "Recurrence"
        }
      }
    }
  }
}
Question 102mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Refer to the exhibit. A PowerShell script is used to update an Azure SQL Database. The script runs without errors, but the database is not moved to the specified elastic pool. What is the most likely cause?

Exhibit

Refer to the exhibit.

$params = @{
    ResourceGroupName = 'rg-sql-prod'
    ServerName = 'sql-prod-01'
    DatabaseName = 'SalesDB'
    Edition = 'Standard'
    RequestedServiceObjectiveName = 'S3'
    ElasticPoolName = 'pool-prod'
}

Set-AzSqlDatabase @params
Question 103mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a database administrator for an Azure SQL Managed Instance. You need to automate the deployment of schema changes across multiple databases in an elastic pool. Which Azure service should you use to orchestrate these deployments?

Question 104hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage an Azure SQL Database that uses elastic jobs to automate index maintenance. The job fails intermittently with the error 'Cannot open server 'myserver' requested by the login.' The job agent uses a database-scoped credential. What is the most likely cause?

Question 105easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the backup of an Azure SQL Database to a storage account. Which built-in feature should you configure?

Question 106hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses automatic tuning. You notice that a forced plan regression is causing performance degradation. You need to revert to the previous plan and prevent the automatic tuning from forcing the same plan again. What should you do?

Question 107mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are automating the creation of Azure SQL Databases using ARM templates. You need to ensure that the databases are created with the 'Hyperscale' service tier and with 'ZoneRedundant' enabled. Which ARM template property should you set?

Question 108easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the execution of a T-SQL script against an Azure SQL Database every hour. Which Azure service should you use?

Question 109hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage an Azure SQL Database that is part of a failover group. You need to automate the failover to the secondary region in the event of a disaster. Which approach should you use?

Question 110mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses SQL Server Agent for automation tasks. You migrated the database to Azure SQL Managed Instance. After migration, some SQL Server Agent jobs fail because they reference a linked server that no longer exists. You need to automate the removal of all linked server references from the jobs. What should you do?

Question 111easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automatically notify the operations team when an Azure SQL Database reaches 80% storage usage. Which Azure service should you use to create the alert?

Question 112hardmulti select
Read the full Configure and manage automation of tasks explanation →

You are designing an automation strategy for an Azure SQL Database that requires the following: 1) Automatically scale up the service tier when CPU usage exceeds 90% for 5 minutes. 2) Automatically scale down when CPU usage drops below 10% for 15 minutes. 3) The solution must be cost-effective and use built-in Azure features. Which TWO options should you combine? (Choose two.)

Question 113mediummulti select
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of schema changes to an Azure SQL Database using Azure DevOps. Which THREE components are required? (Choose three.)

Question 114mediummulti select
Read the full Configure and manage automation of tasks explanation →

You are implementing automation for an Azure SQL Database. Which TWO scenarios are appropriate for using elastic database jobs? (Choose two.)

Question 115mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are reviewing an ARM template snippet for an Azure SQL Database. The database should be configured to automatically pause after 60 minutes of inactivity and resume with a minimum capacity of 0.5 vCores. However, the database is not pausing as expected. What is the most likely cause?

Exhibit

Refer to the exhibit.

{ "type": "Microsoft.Sql/servers/databases", "apiVersion": "2022-05-01-preview", "properties": { "autoPauseDelay": 60, "minCapacity": 0.5, "zoneRedundant": false } }
Question 116hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are reviewing a PowerShell script that is part of an Azure Automation runbook. The script is intended to monitor resource usage of an Azure SQL Database and trigger an alert if DTU usage exceeds 80%. The script runs successfully but does not trigger the alert. What is the most likely reason?

Exhibit

Refer to the exhibit.

```
Invoke-SqlCmd -ServerInstance 'myserver.database.windows.net' -Database 'mydb' -Query "SELECT * FROM sys.dm_db_resource_stats" -Credential $cred | Out-GridView
```
Question 117easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are reviewing an Azure CLI command that creates an elastic job step. The job step is intended to rebuild all indexes on the Sales.Orders table, but the job fails. What is the error in the JSON configuration?

Exhibit

Refer to the exhibit.

```
{
    "properties": {
        "targetGroups": [
            {
                "type": "SqlDatabase",
                "serverName": "myserver",
                "databaseName": "mydb"
            }
        ],
        "content": {
            "command": "ALTER INDEX ALL ON Sales.Orders REBUILD"
        }
    }
}
```
Question 118mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

A company has multiple Azure SQL Databases and wants to automate the deployment of schema changes using a CI/CD pipeline. They need to ensure that changes are automatically rolled back if any step fails. Which Azure service should they use?

Question 119easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the backup of an Azure SQL Managed Instance to a storage account every 4 hours. Which feature should you use?

Question 120hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

A company uses Azure SQL Database with elastic pools. They need to automatically scale up the pool DTU when CPU usage exceeds 80% for 5 minutes and scale down when below 20% for 10 minutes. Which solution should they implement?

Question 121easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are tasked with automating the creation of user databases in an Azure SQL Managed Instance after deployment. Which tool should you use?

Question 122mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

A company uses Azure SQL Database and wants to automate the process of refreshing a development database from production backups weekly. Which Azure service should be used to orchestrate this process including restore and post-restore scripts?

Question 123mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the execution of a T-SQL script against all user databases in an Azure SQL Database elastic pool. The script should run on a schedule and results should be logged to a table. Which feature should you use?

Question 124hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

A company uses Azure SQL Managed Instance and needs to automatically rebuild fragmented indexes weekly during low usage. They also need to update statistics. Which approach should they take?

Question 125easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of an Azure SQL Database using Infrastructure as Code. The deployment should include the database, firewall rules, and threat detection settings. Which tool should you use?

Question 126mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

A company uses Azure SQL Database and wants to automatically send an email notification when an index fragmentation exceeds 30% for any database. Which solution should they implement?

Question 127mediummulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO services can be used to automate the backup of Azure SQL Database to a storage account? (Choose two.)

Question 128hardmulti select
Read the full Configure and manage automation of tasks explanation →

Which THREE components are required to run Elastic Database Jobs for Azure SQL Database? (Choose three.)

Question 129easymulti select
Read the full Configure and manage automation of tasks explanation →

Which TWO actions can be performed using Azure Automation runbooks for Azure SQL Database? (Choose two.)

Question 130mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are managing an Azure SQL Managed Instance that hosts a critical database. You need to automate the export of daily backups to a storage account for long-term retention. The solution must minimize administrative overhead and support point-in-time restore within the retention period. What should you use?

Question 131hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database configured with active geo-replication. You need to automate the failover process in the event of a regional outage, ensuring minimal data loss and automatic failback when the primary region recovers. What should you implement?

Question 132easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of a new Azure SQL Database with a specific performance tier, collation, and firewall rules using infrastructure as code. Which technology should you use?

Question 133hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses a SQL Agent job to run a critical ETL process every night. The job recently started failing intermittently. You need to automate the monitoring and alerting of job failures, and automatically retry the job twice with a 10-minute interval between retries. What should you configure?

Question 134mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage an Azure SQL Database that uses Azure SQL Database elastic jobs to execute maintenance scripts across multiple databases. You need to ensure that job execution is logged in a central database for auditing and troubleshooting. What should you configure?

Question 135easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the process of scaling an Azure SQL Database up during peak hours and down during off-peak hours to optimize cost. The solution must be serverless and not require any custom infrastructure. What should you use?

Question 136mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

Your company has a policy that all Azure SQL Databases must have their performance data (DTU/CPU, memory, IO) monitored and analyzed weekly. You need to automate the generation of a weekly report summarizing the top 10 queries by average CPU time. What should you use?

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

You manage an Azure SQL Managed Instance that hosts several databases. You need to automate the process of patching the operating system and SQL Server engine with minimal downtime. What should you use?

Question 138easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the creation of an Azure SQL Database and a corresponding server-level firewall rule to allow access from a specific IP address. The deployment must be repeatable and version-controlled. What should you use?

Question 139mediummulti select
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that runs a critical workload. You need to automate the monitoring of performance anomalies and receive notifications when certain thresholds are exceeded. Which TWO actions should you implement? (Choose two.)

Question 140mediummulti select
Read the full Configure and manage automation of tasks explanation →

You need to automate the backup strategy for an Azure SQL Database to meet a recovery point objective (RPO) of 5 minutes and a recovery time objective (RTO) of 1 hour. Which THREE features should you combine? (Choose three.)

Question 141hardmulti select
Read the full Configure and manage automation of tasks explanation →

You are responsible for automating the deployment of an Azure SQL Database with associated firewall rules, a Microsoft Entra ID admin, and a vulnerability assessment baseline. The deployment must be idempotent and repeatable. Which THREE tools or approaches should you use? (Choose three.)

Question 142hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are reviewing an ARM template snippet that configures a Security Alert Policy for an Azure SQL Database. The policy is enabled, and email notifications are sent to the account admin and admin@contoso.com. However, you notice that SQL Injection alerts are disabled. What is the most likely reason for disabling SQL Injection alerts?

Exhibit

Refer to the exhibit.
```json
{
  "type": "Microsoft.Sql/servers/databases/securityAlertPolicies",
  "apiVersion": "2021-11-01",
  "name": "[concat(parameters('serverName'), '/', parameters('databaseName'), '/Default')]",
  "properties": {
    "state": "Enabled",
    "emailAccountAdmins": true,
    "emailAddresses": ["admin@contoso.com"],
    "disabledAlerts": ["Sql_Injection", "Access_Anomaly"],
    "retentionDays": 30,
    "storageAccountAccessKey": "...",
    "storageEndpoint": "https://stgaccount.blob.core.windows.net/"
  }
}
```
Question 143hardmultiple choice
Read the full NAT/PAT explanation →

You are a database administrator for a large e-commerce company that uses Azure SQL Database for its transactional systems. The environment consists of 50 databases across 10 logical servers, each with a mix of General Purpose and Business Critical service tiers. The company has a strict requirement to automatically scale databases based on workload patterns to optimize cost without manual intervention. Specifically, during Black Friday sales, one of the Business Critical databases (DB-Sales) experiences a surge in transactions, and you need to temporarily upgrade it to a higher service objective (S9 instead of S6) for 48 hours. After the sale, it should automatically revert to S6. Additionally, you need to ensure that all databases have automated backups with a 35-day point-in-time restore retention and that backup storage costs are minimized by using geo-redundant storage only for critical databases. You have been asked to design an automation solution using Azure native services. Which approach should you recommend?

Question 144mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a senior database administrator for a financial services company that uses Azure SQL Managed Instance to host multiple customer databases. The company has a requirement to automatically execute a series of compliance scripts every Sunday at 2:00 AM against all databases in the instance. The scripts include checking for orphaned users, verifying data encryption, and auditing login attempts. The solution must log the execution results in a central table and send an email summary to the compliance team. You have been asked to implement this automation using built-in Azure features without relying on external tools like Power Automate or custom schedulers. What should you use?

Question 145mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are responsible for automating index maintenance in Azure SQL Database. You need to ensure that index rebuilds and reorganizations are performed only when fragmentation exceeds 30% and 10%, respectively, and that the job runs weekly. Which approach should you use?

Question 146hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

Your company uses Azure SQL Managed Instance with transactional replication. You need to automate the monitoring of replication latency and send an alert if latency exceeds 5 minutes. You want to use Azure Monitoring capabilities. What is the most efficient solution?

Question 147easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automatically scale up an Azure SQL Database to the next service tier when CPU usage exceeds 80% for 10 minutes, then scale back down when CPU drops below 30% for 30 minutes. Which Azure feature should you use?

Question 148mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses a serverless compute tier. You want to automate the process of pausing the database during non-business hours (8 PM to 6 AM) to save costs. The database should automatically resume when the first connection is attempted. What should you configure?

Question 149hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are designing an automation strategy for deploying schema changes to 50 Azure SQL Databases in a elastic pool. You need to ensure that changes are applied in a consistent order and rolled back if any database fails. Which approach should you use?

Question 150easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the backup of an on-premises SQL Server database to Azure Blob Storage using the latest Microsoft recommended method. Which approach should you use?

Question 151mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You have an Azure SQL Database that uses a managed identity to access Azure Key Vault for storing column master keys. You need to automate the rotation of the column master key using Azure Automation. Which steps should you include in the runbook?

Question 152hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are configuring automated performance tuning for an Azure SQL Database. You want to automatically create missing indexes and drop unused indexes, but you need to prevent automatic index creation during peak business hours (9 AM - 5 PM). What is the best approach?

Question 153easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You need to automate the process of refreshing a development copy of an Azure SQL Database from a production backup every night. The production database is in the West US region, and the dev database is in East US. What is the most cost-effective method?

Question 154mediummulti select
Read the full Configure and manage automation of tasks explanation →

You need to automate the monitoring of Azure SQL Database performance and receive alerts when certain conditions are met. Which TWO Azure services can be used together to achieve this?

Question 155hardmulti select
Read the full Configure and manage automation of tasks explanation →

You need to automate the deployment of Azure SQL Database with a specific configuration across multiple environments (dev, test, prod). The deployment must include firewall rules, auditing settings, and threat detection policies. Which THREE tools can be used to implement this automation?

Question 156easymulti select
Read the full Configure and manage automation of tasks explanation →

You are tasked with automating the backups of multiple Azure SQL Databases to ensure long-term retention. Which TWO Azure services can be used to achieve automated backups with retention beyond the default 7-35 days?

Question 157hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are the database administrator for a large e-commerce company that uses Azure SQL Database for its transactional systems. The environment consists of 100 databases spread across 10 elastic pools in different regions. You need to implement an automated solution to perform the following tasks every night: (1) Run integrity checks (DBCC CHECKDB) on all databases, (2) Rebuild indexes with fragmentation > 30%, (3) Update statistics with full scan for databases that have had significant data changes (>20% of rows). The solution must minimize manual intervention, provide centralized logging, and be resilient to failures (e.g., if one database fails, the others should continue). Which approach should you use?

Question 158mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You manage an Azure SQL Database that supports a critical financial application. The database is in the General Purpose tier and uses active geo-replication for disaster recovery. You need to automate the process of failing over to the secondary region in case of a regional outage, but only after confirming that the primary is unreachable for more than 5 minutes. Additionally, you need to send an alert to the operations team when the failover occurs. The solution should use Azure services and minimize manual steps. What should you implement?

Question 159easymultiple choice
Read the full Configure and manage automation of tasks explanation →

You are responsible for managing a fleet of 20 Azure SQL Databases used by different departments. Each database has its own schema and data. You need to automate the creation of weekly exports of each database to a BACPAC file stored in a specific Azure Storage container. The exports should be done outside business hours (Sundays at 2 AM). You also need to ensure that the export process does not impact production performance. What is the most straightforward and cost-effective solution?

Question 160mediummulti select
Read the full NAT/PAT explanation →

You are a database administrator for a company that uses Azure SQL Managed Instance. You need to automate the process of patching the operating system and SQL Server engine for all managed instances in a specific region. The automation must minimize downtime and ensure high availability. Which two actions should you include in your automation strategy?

Question 161hardmulti select
Read the full Configure and manage automation of tasks explanation →

You are responsible for automating index maintenance and statistics updates across multiple Azure SQL Databases in an elastic pool. Each database has varying workloads and sizes. The automation must run weekly during low-traffic periods and should not degrade performance for critical applications. Which three actions should you take to implement a reliable and efficient automation solution?

Question 162mediummulti select
Read the full Configure and manage automation of tasks explanation →

You are designing an automation solution to deploy Azure SQL Database schema changes using CI/CD pipelines. The solution must support rollback if a deployment fails and must integrate with Azure DevOps. Which two components should you include in your pipeline?

Question 163hardmulti select
Read the full Configure and manage automation of tasks explanation →

Your company uses Azure SQL Managed Instance for a critical application. You need to automate the process of rebuilding all indexes that have fragmentation above 30% across all databases on the instance. The automation must run every Sunday at 2:00 AM and must log the results to a table. Which three steps should you take to implement this automation?

Question 164mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a database administrator for a large e-commerce company. The company uses Azure SQL Database in a Business Critical tier for its transactional systems. The database is part of an elastic pool with multiple databases. You need to automate the process of purging old data from a specific table (OrderHistory) that grows by 5 GB per day. The data must be retained for 90 days. After 90 days, the data should be moved to an Azure Blob Storage archive for long-term storage. The automation must run daily at midnight and must minimize impact on the transactional workload. Additionally, the solution should be cost-effective and require minimal manual intervention. What should you do?

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

You are a database administrator for a financial services company. The company has multiple Azure SQL Managed Instances in different regions for disaster recovery. Each Managed Instance hosts several databases. You need to automate the process of backing up all databases and copying the backup files to a central Azure Blob Storage account for long-term retention. The backup must be taken daily at 10 PM local time for each region. The solution must be resilient to regional outages and must not use native backup retention more than 7 days. Additionally, you must ensure that backup files are encrypted at rest and in transit. What should you do?

Question 166mediummultiple choice
Read the full NAT/PAT explanation →

You are a database administrator for a healthcare company that uses Azure SQL Database with Hyperscale tier. The database contains patient records and is critical for operations. You need to automate the process of refreshing the staging database from the production database every night. The refresh process must occur during a maintenance window from 2:00 AM to 4:00 AM. The solution must use point-in-time restore to ensure consistency and must minimize the storage costs. Additionally, the automation must notify the operations team if the refresh fails. What should you do?

Question 167hardmultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a database administrator for a SaaS company that uses Azure SQL Database with elastic pools. The company has hundreds of databases (one per tenant). You need to automate the deployment of schema changes (e.g., adding new columns, creating indexes) across all tenant databases. The changes must be deployed in a rolling fashion to avoid affecting all tenants at once. The automation must track which databases have been updated and allow for rollback of individual tenant databases if needed. Additionally, the solution must integrate with Azure DevOps CI/CD pipelines. What should you do?

Question 168mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a database administrator for a logistics company that uses Azure SQL Managed Instance. The instance hosts a database that tracks shipments. You need to automate the process of updating statistics for all tables in the database every night. The update should only include tables that have had more than 10% of rows modified since the last statistics update. The automation must be efficient and not rebuild statistics unnecessarily. Additionally, the solution should be self-contained within the Managed Instance and not rely on external services. What should you do?

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

You are a database administrator for a gaming company that uses Azure SQL Database with multiple databases in a single logical server. The databases experience varying load patterns. You need to automate the process of scaling up or down the DTU/ vCore purchasing model based on performance metrics. Specifically, if average DTU consumption exceeds 80% for 10 minutes, you want to scale up the database tier. If consumption drops below 20% for 30 minutes, you want to scale down. The automation must use Azure native services and should not require custom scripting. What should you do?

Question 170mediummultiple choice
Read the full Configure and manage automation of tasks explanation →

You are a database administrator for a retail company that uses Azure SQL Database with the Serverless compute tier. The database experiences unpredictable idle periods, and you want to minimize costs by automatically pausing the database when it is idle for more than 60 minutes and resuming it when a connection is attempted. However, you also need to ensure that a critical reporting job that runs every hour can connect even if the database is paused. What should you do?

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

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?

Question 172mediummultiple choice
Read the full NAT/PAT explanation →

You are a database administrator for an e-learning platform that uses Azure SQL Database with the General Purpose tier. The database stores course content and user progress. You need to automate the process of exporting the database schema (without data) to a BACPAC file every week for version control. The BACPAC file must be stored in an Azure Blob Storage container with a retention policy of 30 days. The automation must use Azure native services and should not require manual intervention. What should you do?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

DP-300 Practice Test 1 — 10 Questions→DP-300 Practice Test 2 — 10 Questions→DP-300 Practice Test 3 — 10 Questions→DP-300 Practice Test 4 — 10 Questions→DP-300 Practice Test 5 — 10 Questions→DP-300 Practice Exam 1 — 20 Questions→DP-300 Practice Exam 2 — 20 Questions→DP-300 Practice Exam 3 — 20 Questions→DP-300 Practice Exam 4 — 20 Questions→Free DP-300 Practice Test 1 — 30 Questions→Free DP-300 Practice Test 2 — 30 Questions→Free DP-300 Practice Test 3 — 30 Questions→DP-300 Practice Questions 1 — 50 Questions→DP-300 Practice Questions 2 — 50 Questions→DP-300 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Plan and configure a high availability and disaster recovery environmentPlan and implement data platform resourcesMonitor, configure, and optimize database resourcesConfigure and manage automation of tasksPlan and configure high availability and disaster recoveryImplement a secure environment

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Configure and manage automation of tasks setsAll Configure and manage automation of tasks questionsDP-300 Practice Hub