exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 78 discussion

A company is hosting a static website from an Amazon S3 bucket. The website is available to customers at example.com. The company uses an Amazon Route 53 weighted routing policy with a TTL of 1 day. The company has decided to replace the existing static website with a dynamic web application. The dynamic web application uses an Application Load Balancer (ALB) in front of a fleet of Amazon EC2 instances.

On the day of production launch to customers, the company creates an additional Route 53 weighted DNS record entry that points to the ALB with a weight of 255 and a TTL of 1 hour. Two days later, a DevOps engineer notices that the previous static website is displayed sometimes when customers navigate to example.com.

How can the DevOps engineer ensure that the company serves only dynamic content for example.com?

  • A. Delete all objects, including previous versions, from the S3 bucket that contains the static website content.
  • B. Update the weighted DNS record entry that points to the S3 bucket. Apply a weight of 0. Specify the domain reset option to propagate changes immediately.
  • C. Configure webpage redirect requests on the S3 bucket with a hostname that redirects to the ALB.
  • D. Remove the weighted DNS record entry that points to the S3 bucket from the example.com hosted zone. Wait for DNS propagation to become complete.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
2pk
Highly Voted 1 year, 5 months ago
Selected Answer: D
D is the answer B wrong because Route 53 initially considers only the nonzero weighted records, if any. If all the records that have a weight greater than 0 are unhealthy, then Route 53 considers the zero-weighted records.
upvoted 9 times
...
Rs123x
Most Recent 3 days, 17 hours ago
Selected Answer: B
ChatGPT suggests B...
upvoted 1 times
...
steli0
5 months ago
Selected Answer: D
B would be correct if instead of domain reset option (which doesn't exist) there was a TTL decrease or nothing.
upvoted 1 times
...
jamesf
8 months, 4 weeks ago
Selected Answer: D
D is correct Not B as - Route 53 initially considers only the nonzero weighted records, if any. - If all the records that have a weight greater than 0 are unhealthy, then Route 53 considers the zero-weighted records. https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-weighted.html Besides, in B, <domain reset option to propagate changes immediately>, i don't think DNS record will update immediately
upvoted 2 times
...
jojom19980
1 year, 2 months ago
Selected Answer: B
D is correct but I will go with B because is more save to the customers, some clients have the old record (TTL 1 day) so after 1 day I can confirm that all the clients have the the new DNs record so I can delete the record
upvoted 2 times
...
thanhnv142
1 year, 2 months ago
D is correct: A: should not delete all objects from S3, they change nothing C: should not do this, we have a more efficient method B: < domain reset option to propagate changes immediately>: there is no such thing. DNS record will expire after TTL. Cannot force DNS resolvers to query for DNS record before TTL expire
upvoted 4 times
...
RVivek
1 year, 7 months ago
Selected Answer: D
B- is incorrect , as gigi_devops has metioned setting 0 weight is not enough. Also reset domain option is not available.
upvoted 3 times
...
ixdb
1 year, 8 months ago
D is right. Just setting the weight to 0 does not ensure that traffic will not go to example.com.
upvoted 2 times
...
gigi_devops
1 year, 8 months ago
Selected Answer: D
Setting the weight to 0 is not enough. So C is the best answer. https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-weighted.html#:~:text=Si%20tous%20les%20enregistrements%20dont%20le%20poids%20est%20sup%C3%A9rieur%20%C3%A0%200%20ne%20sont%20pas%20sains%2C%20Route%2053%20prend%20en%20compte%20les%20enregistrements%20pond%C3%A9r%C3%A9s%20%C3%A0%20z%C3%A9ro
upvoted 3 times
...
gigi_devops
1 year, 8 months ago
Setting the weight to 0 is not enough. So C is the best answer. https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-weighted.html#:~:text=Si%20tous%20les%20enregistrements%20dont%20le%20poids%20est%20sup%C3%A9rieur%20%C3%A0%200%20ne%20sont%20pas%20sains%2C%20Route%2053%20prend%20en%20compte%20les%20enregistrements%20pond%C3%A9r%C3%A9s%20%C3%A0%20z%C3%A9ro
upvoted 1 times
gigi_devops
1 year, 8 months ago
Sorry I wanted to say "D"
upvoted 4 times
...
...
Aja1
1 year, 9 months ago
option B is the most appropriate choice as it immediately redirects all traffic away from the S3 bucket and ensures that only the dynamic content from the ALB is served for example.com.
upvoted 1 times
Aja1
1 year, 8 months ago
D. We can remove the Weighted DNS as it is not necessary
upvoted 2 times
...
...
habros
1 year, 9 months ago
Selected Answer: D
D. Also, do check the weight of the CNAME record of the ALB. It might be conflicting.
upvoted 1 times
...
Blueee
1 year, 9 months ago
Selected Answer: D
agree with D
upvoted 1 times
...
MarDog
1 year, 10 months ago
In reference to B, I don't think the "domain reset option" exists. So, it's D.
upvoted 4 times
...
FunkyFresco
1 year, 10 months ago
Selected Answer: D
Option D.
upvoted 2 times
...
ducluanxutrieu
1 year, 10 months ago
Selected Answer: D
To ensure that the company only serves dynamic content for example.com, the DevOps engineer should remove the weighted DNS record entry that points to the S3 bucket from the example.com hosted zone. This will immediately remove the static website from the DNS resolution pool. Solution B would only update the weight of the record entry, but it would still take 24 hours for the changes to propagate.
upvoted 4 times
...
rhinozD
1 year, 10 months ago
Selected Answer: B
B To disable routing to a resource, set Weight to 0
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago