Amazon

SAP-C02 practice question 15

AWS Certified Solutions Architect - Professional (SAP-C02) · free question 15 of 20

Question

A company is using multiple AWS accounts. The DNS records are stored in a private hosted zone for Amazon Route 53 in Account A. The company’s applications and databases are running in Account B. A solutions architect will deploy a two-tier application in a new VPC. To simplify the configuration, the db.example.com CNAME record set for the Amazon RDS endpoint was created in a private hosted zone for Amazon Route 53. During deployment, the application failed to start. Troubleshooting revealed that db.example.com is not resolvable on the Amazon EC2 instance. The solutions architect confirmed that the record set was created correctly in Route 53. Which combination of steps should the solutions architect take to resolve this issue? (Choose two.)
  • A. Deploy the database on a separate EC2 instance in the new VPC. Create a record set for the instance’s private IP in the private hosted zone.
  • B. Use SSH to connect to the application tier EC2 instance. Add an RDS endpoint IP address to the /etc/resolv.conf file.
  • C. Create an authorization to associate the private hosted zone in Account A with the new VPC in Account B. Correct
  • D. Create a private hosted zone for the example.com domain in Account B. Configure Route 53 replication between AWS accounts.
  • E. Associate a new VPC in Account B with a hosted zone in Account A. Delete the association authorization in Account A. Correct

Explanation

The correct answers are C and E because to resolve DNS records from a private hosted zone in one account (Account A) for resources in another account's VPC (Account B), you must create an authorization in Account A to allow the association of the VPC with the private hosted zone. Then, in Account B, associate the new VPC with the hosted zone in Account A and delete the association authorization in Account A as it is no longer needed.

Need the theory? Learn it free in the SAP-C02 course on Godlike Academy

Practice the whole free set

Answer all 20 free SAP-C02 questions with instant feedback, or unlock all 526 questions with Learn and Exam modes.