exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 43 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 43
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

An n-tier application requires a table in an Amazon RDS MySQL DB instance to be dropped and repopulated at each deployment. This process can take several minutes and the web tier cannot come online until the process is complete. Currently, the web tier is configured in an Amazon EC2 Auto Scaling group, with instances being terminated and replaced at each deployment. The MySQL table is populated by running a SQL query through an AWS CodeBuild job.
What should be done to ensure that the web tier does not come online before the database is completely configured?

  • A. Use Amazon Aurora as a drop-in replacement for RDS MySQL. Use snapshots to populate the table with the correct data.
  • B. Modify the launch configuration of the Auto Scaling group to pause user data execution for 600 seconds, allowing the table to be populated.
  • C. Use AWS Step Functions to monitor and maintain the state of data population. Mark the database in service before continuing with the deployment.
  • D. Use an EC2 Auto Scaling lifecycle hook to pause the configuration of the web tier until the table is populated.
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
halfway
Highly Voted 3 years, 7 months ago
D. Lifecycle hook can trigger lambda to check DB status: https://docs.aws.amazon.com/autoscaling/ec2/userguide/configuring-lifecycle-hook-notifications.html
upvoted 13 times
...
Piccaso
Most Recent 2 years, 3 months ago
Selected Answer: D
A and B are just weird. C is eliminated, AWS Step Functions is for workflow of complex business logic.
upvoted 2 times
...
Bulti
2 years, 3 months ago
D is the correct answer.
upvoted 1 times
...
Jtic
2 years, 5 months ago
Selected Answer: D
https://docs.aws.amazon.com/autoscaling/ec2/userguide/configuring-lifecycle-hook-notifications.html
upvoted 2 times
...
certking
3 years, 6 months ago
repopulating table needs to happen at each deployment, not at each ASG scale-in/out event. with option D, when the ASG scales out, it pauses and triggers the DB table repopulating. is that what we want?
upvoted 1 times
...
gmandala
3 years, 7 months ago
Only D can be the answer
upvoted 1 times
...
jackdryan
3 years, 7 months ago
I'll go with D
upvoted 3 times
...
xlFireman
3 years, 7 months ago
D is the answer
upvoted 1 times
...
ChauPhan
3 years, 7 months ago
Go with D
upvoted 1 times
...
Smart
3 years, 7 months ago
Assuming we want to 'guarantee' that database is ready before web tier requires some verification likely through Lambda. A & B is out. D is applicable but it doesn't quite guarantee. Also, lifecycle hook is not triggering any Lambda for verification. C is correct. Assuming we are using CodePipeline, after CodeBuild, we invoke Stepfunctions that will periodically check table population through lambda.
upvoted 3 times
AKD
3 years, 7 months ago
C does not ensure the portal isn't coming online. ASG Life cycle hooks are the only way to make it pause, monitor the state of DB and allow it to proceed later. All of this is made through Lambda. So D is the right answer.
upvoted 3 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