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 48 discussion

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

A company develops and maintains a web application using Amazon EC2 instances and an Amazon RDS for SQL Server DB instance in a single Availability
Zone. The resources need to run only when new deployments are being tested using AWS CodePipeline. Testing occurs one or more times a week and each test takes 2-3 hours to run. A DevOps engineer wants a solution that does not change the architecture components.
Which solution will meet these requirements in the MOST cost-effective manner?

  • A. Convert the RDS database to an Amazon Aurora Serverless database. Use an AWS Lambda function to start and stop the EC2 instances before and after tests.
  • B. Put the EC2 instances into an Auto Scaling group. Schedule scaling to run at the start of the deployment tests.
  • C. Replace the EC2 instances with EC2 Spot Instances and the RDS database with an RDS Reserved Instance.
  • D. Subscribe Amazon CloudWatch Events to CodePipeline to trigger AWS Systems Manager Automation documents that start and stop all EC2 and RDS instances before and after deployment tests.
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
1234567J
Highly Voted 3 years, 7 months ago
ans: D https://aws.amazon.com/blogs/mt/systems-manager-automation-documents-manage-instances-cut-costs-off-hours/
upvoted 26 times
syaldram
2 years, 8 months ago
This link perfectly describes the solution.
upvoted 3 times
...
...
devopp
Highly Voted 3 years, 7 months ago
D Revealed B is wrong since breaking requirement to not change architecture components.
upvoted 6 times
...
YR4591
Most Recent 1 year, 7 months ago
Selected Answer: D
Answer is D. Aurora server less is not cost effective. Revered RDS is not cost effective since you pay for it regardless the fact its stopeed or turned on.
upvoted 1 times
...
easytoo
2 years ago
d-d-d-d-dd-d-d-d-
upvoted 1 times
...
easytoo
2 years ago
d-d-d-d-dd-d-d-d-
upvoted 1 times
...
Bulti
2 years, 4 months ago
D is the correct answer. Its AWS best practice to use Cloudwatch event against CodePipeline Deployment actions to trigger AWS System Manager automation documents to start and stop resources such as EC2 and RDS.
upvoted 1 times
...
ddev3737
2 years, 5 months ago
Why not A? Uses an AWS Lambda function to start and stop the EC2 instances before and after tests. By converting the RDS database to an Amazon Aurora Serverless database, you can take advantage of the pay-per-use pricing model, which charges only for the database capacity that is actually used. This can help to reduce costs compared to using a standard RDS instance. D would require the use of AWS Systems Manager Automation, which incurs additional charges.
upvoted 1 times
...
neta1o
2 years, 5 months ago
Selected Answer: D
D is good, small caveat is that RDS can only be stopped for 7 days then it’ll automatically start.
upvoted 2 times
...
ohcn
2 years, 9 months ago
D - You can stop RDS instances for up to 7 days. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html
upvoted 2 times
...
blueorca
3 years, 3 months ago
Selected Answer: D
D looks better to me
upvoted 3 times
...
Jaxjd
3 years, 5 months ago
A Require a lot of code change B They have mentioned about EC2 but nothing about RDS C This could be an answer - task require for 2 or 3 hours and reserve the RDS instance to save the cost D won't- you cannot stop SQL RDS instance
upvoted 2 times
kyozanuro
2 years, 6 months ago
RDS can be stopped to save cost: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html
upvoted 2 times
...
sg0206
3 years, 5 months ago
What is the problem if we stop the server but do not terminate. D can be an anwer.
upvoted 2 times
...
...
devonqo
3 years, 5 months ago
It's D.
upvoted 2 times
...
okida
3 years, 7 months ago
It's D. Both EC2, RDS should be launched on-demand for the most cost saving.
upvoted 3 times
...
devopp
3 years, 7 months ago
note Revealed B is wrong for lowering costs since RDS is presumably then always running.
upvoted 3 times
...
WhyIronMan
3 years, 7 months ago
it does not sounds like the efficient way
upvoted 1 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 ...