You are deploying Consul servers in a new datacenter that will be a secondary in a federated environment. The primary datacenter is already configured with ACLs enabled and replication is working. You need to ensure the new secondary datacenter can replicate ACLs from the primary. Which configuration must be set on the new secondary's servers?
The secondary datacenter must know which datacenter is the primary by setting primary_datacenter. Additionally, it needs a token with acl:read privileges in the primary to read ACL data. This token is configured using acl_replication_token. Both settings are required for ACL replication to function in a secondary datacenter.
Why this answer
To enable ACL replication in a secondary datacenter, you must set primary_datacenter to the name of the primary datacenter and provide acl_replication_token with a token that has acl:read privileges in the primary. These two settings allow the secondary servers to authenticate to the primary and read ACL policies, roles, and tokens. Without primary_datacenter, the agent does not know where to replicate from.
Exam trap
The trap here is confusing the deprecated acl_datacenter parameter with the current primary_datacenter, and assuming the replication token needs write privileges instead of read.