Certopolis

AWS Certified Solutions Architect – Professional

Route 53 Resolver inbound vs outbound endpoints for SAP-C03

AWS documents two Route 53 VPC Resolver endpoint types. An inbound endpoint lets DNS resolvers on your network send queries into a VPC, where private hosted zones are answered. An outbound endpoint, with forwarding rules, sends queries from VPCs to your network's resolvers. A rule works only in VPCs it is associated with and can be shared with other accounts.

Inbound and outbound endpoints

Every VPC has a resolver at the VPC base address plus two. It answers queries for VPC domain names and for records in private hosted zones, and it resolves public names recursively. Route 53 VPC Resolver is the current name for what was called Route 53 Resolver.

Name the direction by where the query starts. If on-premises clients must resolve names in a private hosted zone, create an inbound endpoint and have the on-premises DNS servers forward that domain to the endpoint's IP addresses. The query arrives over Direct Connect or Site-to-Site VPN, and the resolver answers it.

If instances in VPCs must resolve names that on-premises DNS servers host, create an outbound endpoint and a forwarding rule. The rule names one domain and the target IP addresses of the on-premises resolvers. The outbound endpoint's addresses come from the VPC's range and are not public, so the VPC needs a private path to the network. A full hybrid setup uses one endpoint of each type.

Forwarding rules across accounts and Regions

A forwarding rule does nothing until it is associated with a VPC. After the association, queries from that VPC for the rule's domain go through the outbound endpoint named in the rule. One outbound endpoint can serve many VPCs in the same Region. Rules are created in a Region as well, so VPCs in a second Region need an endpoint and rules in that Region.

For many accounts, keep the endpoints and rules in one network account and share the rules through AWS Resource Access Manager (AWS RAM) with accounts, an OU or the organization. Each receiving account associates the shared rule with its own VPCs in the same way as a rule it created. It cannot change or delete the rule, so there is one copy to maintain.

The rule quota per Region counts against the account that created the rule. The quota on rule-to-VPC associations counts against the account that makes the association. If the owner deletes or unshares a rule, the associated VPCs fall back to their remaining rules. If an account moves to an OU that the rule is not shared with, its associations with the rule are deleted.

Private hosted zones across accounts

A VPC in one account can be associated with a private hosted zone in another account without any Resolver endpoint or rule. The account that owns the zone first authorizes the association, with one authorization per VPC. The account that owns the VPC then makes the association. Both steps need the AWS CLI, an SDK or the API. The Route 53 console cannot do either. AWS recommends deleting the authorization afterwards, which leaves the association in place.

When public and private zones overlap, the resolver uses the most specific private zone whose name equals the query name or is a parent of it. If no private zone matches, the query goes to public DNS. If a private zone matches and the name is not in it, the resolver returns NXDOMAIN and does not retry against public DNS, unless public DNS fallback is enabled for the zone. A private zone named for the apex therefore captures every name under it in that VPC.

If a forwarding rule and a private hosted zone cover the same domain in the same VPC, the rule takes precedence and the query is forwarded to your network.

Where the exam catches people

  • Believing an outbound endpoint lets on-premises servers query a private hosted zone: queries that start on premises need an inbound endpoint.
  • Believing a rule shared through AWS RAM takes effect when it is shared: each account must still associate it with its VPCs.
  • Believing an outbound endpoint in one Region can serve VPCs in another Region: an endpoint serves VPCs in the same Region.
  • Believing one authorization covers every VPC in the other account: the zone owner submits one authorization per VPC, and the console cannot do it.
  • Believing a private hosted zone wins over a forwarding rule for the same domain: the rule takes precedence.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company has 100 VPCs across 40 accounts in AWS Organizations, all in us-east-1 and attached to one transit gateway that reaches the data center over AWS Direct Connect. A central DNS VPC in a network account is attached to the same transit gateway. Data center clients must resolve names in the private hosted zone aws.example.com, which is associated with every VPC. Instances in every VPC must resolve corp.example.com, which the data center's DNS servers host. One central set of DNS endpoints must serve the whole organization. Which combination of steps should a solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Architecture Design and Implementation Built for the Cloud building.

    Not that one: B,D is right. In the game your Architecture Design and Implementation Built for the Cloud building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    For the VPCs' queries, an outbound endpoint plus a corp.example.com forwarding rule sends them to the data center, but a rule acts only in VPCs associated with it, so sharing it through AWS RAM lets all 40 accounts associate it with their 100 VPCs while the network account keeps one set of endpoints.

    Written from docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html

  2. A company uses AWS Organizations. A network account runs Route 53 VPC Resolver outbound endpoints in us-east-1 and a forwarding rule that sends corp.example.com queries to DNS servers in the data center, which stay authoritative and change records daily. The rule is shared through AWS RAM with an OU that holds 40 workload accounts, and those accounts associate it with their us-east-1 VPCs. The workload accounts are now adding VPCs in eu-west-1, which reach the data center through a transit gateway in that Region. Those VPCs must resolve corp.example.com through endpoints that only the network account runs. Which combination of steps should a solutions architect take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Architecture Design and Implementation Built for the Cloud building.

    Not that one: A,E is right. In the game your Architecture Design and Implementation Built for the Cloud building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Sharing alone does nothing until the rule is associated with a VPC, so each workload account then associates the shared rule with its new VPCs. The network account keeps sole ownership of the endpoints, and the accounts that receive a shared rule cannot change or delete it.

    Written from docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-forwarding-outbound-queries.html

  3. A company's shared-services account owns a Route 53 private hosted zone, internal.example.com, that holds records for central services. A newly acquired business has three VPCs in its own account in the same Region, and instances in all three must resolve names in the zone. Only the shared-services account may own and edit the zone. No Resolver endpoints or forwarding rules may be added, and the platform team will script the change with the AWS CLI. Which combination of steps should the platform team take to meet these requirements? (Select TWO.)

    Right. In the game that’s Renown for your Architecture Design and Implementation Built for the Cloud building.

    Not that one: C,E is right. In the game your Architecture Design and Implementation Built for the Cloud building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The account that owns the VPCs then makes each association. The zone and its records stay in the shared-services account, and no Resolver components are involved.

    Written from docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-associate-vpcs-different-accounts.html

Ask for something