ExamGecko
Home Home / Microsoft / DP-300

Microsoft DP-300 Practice Test - Questions Answers, Page 2

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You are evaluating the role assignments.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Question 11
Correct answer: Question 11

Explanation:

Box 1: Yes

DBAGroup1 is member of the Contributor role.

The Contributor role grants full access to manage all resources, but does not allow you to assign roles in Azure RBAC, manage assignments in Azure Blueprints, or share image galleries.

Box 2: No

Box 3: Yes

DBAGroup2 is member of the SQL DB Contributor role.

The SQL DB Contributor role lets you manage SQL databases, but not access to them. Also, you can't manage their security-related policies or their parent SQL servers. As a member of this role you can create and manage SQL databases.

Reference:

https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles

You need to recommend a solution to ensure that the customers can create the database objects. The solution must meet the business goals. What should you include in the recommendation?

A.
For each customer, grant the customer ddl_admin to the existing schema.
A.
For each customer, grant the customer ddl_admin to the existing schema.
Answers
B.
For each customer, create an additional schema and grant the customer ddl_admin to the new schema.
B.
For each customer, create an additional schema and grant the customer ddl_admin to the new schema.
Answers
C.
For each customer, create an additional schema and grant the customer db_writer to the new schema.
C.
For each customer, create an additional schema and grant the customer db_writer to the new schema.
Answers
D.
For each customer, grant the customer db_writer to the existing schema.
D.
For each customer, grant the customer db_writer to the existing schema.
Answers
Suggested answer: B

You are evaluating the business goals.

Which feature should you use to provide customers with the required level of access based on their service agreement?

A.
dynamic data masking
A.
dynamic data masking
Answers
B.
Conditional Access in Azure
B.
Conditional Access in Azure
Answers
C.
service principals
C.
service principals
Answers
D.
row-level security (RLS)
D.
row-level security (RLS)
Answers
Suggested answer: D

Explanation:

Reference:

https://docs.microsoft.com/en-us/sql/relational-databases/security/row-level-security?view=sql-server-ver15

Based on the PaaS prototype, which Azure SQL Database compute tier should you use?

A.
Business Critical 4-vCore
A.
Business Critical 4-vCore
Answers
B.
Hyperscale
B.
Hyperscale
Answers
C.
General Purpose v-vCore
C.
General Purpose v-vCore
Answers
D.
Serverless
D.
Serverless
Answers
Suggested answer: A

Explanation:

There are CPU and Data I/O spikes for the PaaS prototype. Business Critical 4-vCore is needed.

Incorrect Answers:

B: Hyperscale is for large databases

Reference:

https://docs.microsoft.com/en-us/azure/azure-sql/database/reserved-capacity-overview

Which audit log destination should you use to meet the monitoring requirements?

A.
Azure Storage
A.
Azure Storage
Answers
B.
Azure Event Hubs
B.
Azure Event Hubs
Answers
C.
Azure Log Analytics
C.
Azure Log Analytics
Answers
Suggested answer: C

Explanation:

Scenario: Use a single dashboard to review security and audit data for all the PaaS databases.

With dashboards can bring together operational data that is most important to IT across all your Azure resources, including telemetry from Azure Log Analytics. Note: Auditing for Azure SQL Database and Azure Synapse Analytics tracks database events and writes them to an audit log in your Azure storage account, Log Analytics workspace, or Event Hubs.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/visualize/tutorial-logs-dashboards

A data engineer creates a table to store employee information for a new application. All employee names are in the US English alphabet. All addresses are locations in the United States. The data engineer uses the following statement to create the table.

You need to recommend changes to the data types to reduce storage and improve performance.

Which two actions should you recommend? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Change Salary to the money data type.
A.
Change Salary to the money data type.
Answers
B.
Change PhoneNumber to the float data type.
B.
Change PhoneNumber to the float data type.
Answers
C.
Change LastHireDate to the datetime2(7) data type.
C.
Change LastHireDate to the datetime2(7) data type.
Answers
D.
Change PhoneNumber to the bigint data type.
D.
Change PhoneNumber to the bigint data type.
Answers
E.
Change LastHireDate to the date data type.
E.
Change LastHireDate to the date data type.
Answers
Suggested answer: A, E

You have an Azure SQL database.

You identify a long running query.

You need to identify which operation in the query is causing the performance issue.

What should you use to display the query execution plan in Microsoft SQL Server Management Studio (SSMS)?

A.
Live Query Statistics
A.
Live Query Statistics
Answers
B.
an estimated execution plan
B.
an estimated execution plan
Answers
C.
an actual execution plan
C.
an actual execution plan
Answers
D.
Client Statistics
D.
Client Statistics
Answers
Suggested answer: A

Explanation:

https://www.mssqltips.com/sqlservertip/3685/live-query-statistics-in-sql-server-2016/

You have a version-8.0 Azure Database for MySQL database.

You need to identify which database queries consume the most resources.

Which tool should you use?

A.
Query Store
A.
Query Store
Answers
B.
Metrics
B.
Metrics
Answers
C.
Query Performance Insight
C.
Query Performance Insight
Answers
D.
Alerts
D.
Alerts
Answers
Suggested answer: A

Explanation:

The Query Store feature in Azure Database for MySQL provides a way to track query performance over time. Query Store simplifies performance troubleshooting by helping you quickly find the longest running and most resource-intensive queries. Query Store automatically captures a history of queries and runtime statistics, and it retains them for your review. It separates data by time windows so that you can see database usage patterns. Data for all users, databases, and queries is stored in the mysql schema database in the Azure Database for MySQL instance.

Reference: https://docs.microsoft.com/en-us/azure/mysql/concepts-query-store

You have SQL Server on an Azure virtual machine that contains a database named DB1.

You have an application that queries DB1 to generate a sales report.

You need to see the parameter values from the last time the query was executed.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Enable Last_Query_Plan_Stats in the master database
A.
Enable Last_Query_Plan_Stats in the master database
Answers
B.
Enable Lightweight_Query_Profiling in DB1
B.
Enable Lightweight_Query_Profiling in DB1
Answers
C.
Enable Last_Query_Plan_Stats in DB1
C.
Enable Last_Query_Plan_Stats in DB1
Answers
D.
Enable Lightweight_Query_Profiling in the master database
D.
Enable Lightweight_Query_Profiling in the master database
Answers
E.
Enable PARAMETER_SNIFFING in DB1
E.
Enable PARAMETER_SNIFFING in DB1
Answers
Suggested answer: B, E

Explanation:


You deploy a database to an Azure SQL Database managed instance.

You need to prevent read queries from blocking queries that are trying to write to the database.

Which database option should set?

A.
PARAMETERIZATION to FORCED
A.
PARAMETERIZATION to FORCED
Answers
B.
PARAMETERIZATION to SIMPLE
B.
PARAMETERIZATION to SIMPLE
Answers
C.
Delayed Durability to Forced
C.
Delayed Durability to Forced
Answers
D.
READ_COMMITTED_SNAPSHOT to ON
D.
READ_COMMITTED_SNAPSHOT to ON
Answers
Suggested answer: D

Explanation:

In SQL Server, you can also minimize locking contention while protecting transactions from dirty reads of uncommitted data modifications using either:

The READ COMMITTED isolation level with the READ_COMMITTED_SNAPSHOT database option set to ON.

The SNAPSHOT isolation level.

If READ_COMMITTED_SNAPSHOT is set to ON (the default on SQL Azure Database), the Database Engine uses row versioning to present each statement with a transactionally consistent snapshot of the data as it existed at the start of the statement. Locks are not used to protect the data from updates by other transactions.

Incorrect Answers:

A: When the PARAMETERIZATION database option is set to SIMPLE, the SQL Server query optimizer may choose to parameterize the queries. This means that any literal values that are contained in a query are substituted with parameters. This process is referred to as simple parameterization. When SIMPLE parameterization is in effect, you cannot control which queries are parameterized and which queries are not.

B: You can specify that all queries in a database be parameterized by setting the PARAMETERIZATION database option to FORCED. This process is referred to as forced parameterization.

C: Delayed transaction durability is accomplished using asynchronous log writes to disk. Transaction log records are kept in a buffer and written to disk when the buffer fills or a buffer flushing event takes place. Delayed transaction durability reduces both latency and contention within the system.

Some of the cases in which you could benefit from using delayed transaction durability are:

You can tolerate some data loss.

You are experiencing a bottleneck on transaction log writes.

Your workloads have a high contention rate.

Reference:

https://docs.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql

Total 338 questions
Go to page: of 34