70-465 · Question #104
You create an availability group that has replicas named HA/Server01 and HA/Server02. Currently, HA/Server01 is the primary replica. You have multiple queries that read data and produce reports from…
The correct answer is B. Set the Readable Secondary property of HA/Server02 to Read-intent only. To offload read/reporting workloads to an Always On Availability Groups secondary replica, you must configure the secondary's Readable Secondary property to allow read-intent connections. This directs ApplicationIntent=ReadOnly connection requests to the secondary replica.
Question
Options
- ASet the Availability Mode property of HA/Server02 to Asynchronous commit.
- BSet the Readable Secondary property of HA/Server02 to Read-intent only.
- CSet the Connections in Primary Role property of HA/Server01 to Allow read/write connections.
- DSet the Availability Mode property of HA/Server01 to Asynchronous commit.
How the community answered
(31 responses)- A10% (3)
- B81% (25)
- C6% (2)
- D3% (1)
Why each option
To offload read/reporting workloads to an Always On Availability Groups secondary replica, you must configure the secondary's Readable Secondary property to allow read-intent connections. This directs ApplicationIntent=ReadOnly connection requests to the secondary replica.
Setting the Availability Mode of HA/Server02 to Asynchronous commit only changes how transaction log records are synchronized between replicas, and does not by itself enable or configure read access on the secondary replica.
Setting the Readable Secondary property of HA/Server02 to 'Read-intent only' enables the secondary replica to accept read-only connections that specify ApplicationIntent=ReadOnly in their connection string. This allows reporting workloads to be redirected to HA/Server02 while HA/Server01 remains the primary, effectively offloading the read/reporting workload without impacting the primary replica's resources.
Setting the Connections in Primary Role property of HA/Server01 to 'Allow read/write connections' configures connection behavior on the primary replica itself, not the secondary, so it does nothing to offload reporting workloads to HA/Server02.
Setting the Availability Mode of HA/Server01 to Asynchronous commit affects data synchronization durability between replicas but does not enable read access on the secondary replica or redirect any reporting workload to HA/Server02.
Concept tested: Configuring readable secondary replicas in Always On Availability Groups
Source: https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-read-only-access-on-an-availability-replica-sql-server
Topics
Community Discussion
No community discussion yet for this question.