You are a database administrator for a Microsoft SQL Server database named AdventureWorks2012.
You create an Availability Group defined by the following schema. (Line numbers are included for reference only.)

You need to implement an AlwaysOnAvailablity Group that will meet the following conditions:
Production transactions should be minimally affected.

The secondary server should allow reporting queries to be performed.

If the primary server goes offline, the secondary server should not automatically take over.

Which Transact-SQL statement should you insert at line 06?
A:

B:

C:

D:

Correct Answer: C
Explanation/Reference:
Explanation:
How correctly configure AlwaysOn readable secondary replica:
1. Add Application Intent in the connection string by adding: ;ApplicationIntent=ReadOnly
2. ALLOW_CONNECTIONS property of the secondary replica is READ_ONLY.
3. The READ_ONLY_ROUTING_URL for each replica is set. The TCP port is a port number that is used by the Database Engine of the SQL Server instance alteravailabilitygroupmyGroupName modifyreplicaon'myMachine1instanceName1'with (secondary_role(read_only_routing_url='tcp://myMachine1:1433'))
References: https://msdn.microsoft.com/en-us/library/hh213002.aspx
https://blogs.technet.microsoft.com/mdegre/2013/03/20/how-configure-correctly-alwayson-readable- secondary-replica-for-applicationintent/