exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 424 discussion

A company CFO recently analyzed the company's AWS monthly bill and identified an opportunity to reduce the cost for AWS Elastic Beanstalk environments in use. The CFO has asked a Solutions Architect to design a highly available solution that will spin up an Elastic Beanstalk environment in the morning and terminate it at the end of the day.
The solution should be designed with minimal operational overhead and to minimize costs. It should also be able to handle the increased use of Elastic Beanstalk environments among different teams, and must provide a one-stop scheduler solution for all teams to keep the operational costs low.
What design will meet these requirements?

  • A. Set up a Linux EC2 Micro instance. Configure an IAM role to allow the start and stop of the Elastic Beanstalk environment and attach it to the instance. Create scripts on the instance to start and stop the Elastic Beanstalk environment. Configure cron jobs on the instance to execute the scripts.
  • B. Develop AWS Lambda functions to start and stop the Elastic Beanstalk environment. Configure a Lambda execution role granting Elastic Beanstalk environment start/stop permissions, and assign the role to the Lambda functions. Configure cron expression Amazon CloudWatch Events rules to trigger the Lambda functions.
  • C. Develop an AWS Step Functions state machine with ג€waitג€ as its type to control the start and stop time. Use the activity task to start and stop the Elastic Beanstalk environment. Create a role for Step Functions to allow it to start and stop the Elastic Beanstalk environment. Invoke Step Functions daily.
  • D. Configure a time-based Auto Scaling group. In the morning, have the Auto Scaling group scale up an Amazon EC2 instance and put the Elastic Beanstalk environment start command in the EC2 instance user data. At the end of the day, scale down the instance number to 0 to terminate the EC2 instance.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://aws.amazon.com/premiumsupport/knowledge-center/schedule-elastic-beanstalk-stop-restart/

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
awsec2
Highly Voted 3 years, 8 months ago
b. https://aws.amazon.com/premiumsupport/knowledge-center/schedule-elastic-beanstalk-stop-restart/
upvoted 32 times
dpvnme
3 years, 8 months ago
lambda cannot trigger itself. step function is the best choice here
upvoted 3 times
Smart
3 years, 7 months ago
lambda can run on schedule basis.
upvoted 3 times
Smart
3 years, 7 months ago
nvm. interface has changed. now happens through CW Events.
upvoted 1 times
...
...
pudak
3 years, 8 months ago
in B, 'Configure cron expression Amazon CloudWatch Events rules to trigger the Lambda functions.'
upvoted 8 times
...
...
...
donathon
Highly Voted 3 years, 8 months ago
B https://aws.amazon.com/premiumsupport/knowledge-center/schedule-elastic-beanstalk-stop-restart/
upvoted 15 times
text
3 years, 8 months ago
hi donathon, would you explain why you prefer B better than C
upvoted 1 times
student22
3 years, 6 months ago
As newme has mentioned below, "Invoke Step Functions daily" sounds like manually.
upvoted 2 times
...
...
tan9
3 years, 8 months ago
I will choose C as the solution should be "a one-stop scheduler solution for all teams". And Step Functions is eligible since it is: 1. it translates your workflow into a state machine diagram that is easy to understand, easy to explain to others, and easy to change. 2. With Step Functions, you can craft long-running workflows such as machine learning model training, report generation, and *IT automation*.
upvoted 1 times
...
...
TECHNOWARRIOR
Most Recent 1 year, 11 months ago
We have to keep the operational costs low. both options have their advantages and disadvantages. Option B requires more development effort but has minimal operational overhead and cost. Option D is easier to set up but may result in additional costs. Option B involves developing AWS Lambda functions that will start and stop the Elastic Beanstalk environment. The Lambda functions will be triggered by cron expression Amazon CloudWatch Events rules. This option has minimal operational overhead and cost. However, it requires the development of custom code, which may be time-consuming and may require additional resources. Option D involves configuring a time-based Auto Scaling group that will scale up an Amazon EC2 instance in the morning and terminate it at the end of the day. This option requires minimal custom code and is easy to set up. However, it may result in additional costs due to the use of EC2 instances and may not be as cost-effective as Option B.
upvoted 1 times
...
SkyZeroZx
1 year, 11 months ago
Selected Answer: B
It's B - cron expression Amazon CloudWatch Events rules
upvoted 1 times
...
lisiuyiu
3 years, 1 month ago
Selected Answer: B
Agree with B
upvoted 1 times
...
AzureDP900
3 years, 5 months ago
B is right
upvoted 1 times
...
AzureDP900
3 years, 5 months ago
B is right
upvoted 1 times
...
Kopa
3 years, 6 months ago
going for B
upvoted 1 times
...
andylogan
3 years, 6 months ago
It's B - cron expression Amazon CloudWatch Events rules
upvoted 1 times
...
DerekKey
3 years, 6 months ago
cron expression Amazon CloudWatch Events rules - you have to create 2 - one for increase the other for decrease e.g. "cron(0 6 * * MON-FRI *)" "cron(0 22 * * MON-FRI *)"
upvoted 1 times
...
WhyIronMan
3 years, 6 months ago
I'll go with B
upvoted 2 times
...
Waiweng
3 years, 6 months ago
it's B
upvoted 2 times
...
wind
3 years, 6 months ago
B is correct.
upvoted 1 times
...
Mansur
3 years, 6 months ago
Answer B Ref: https://aws.amazon.com/premiumsupport/knowledge-center/schedule-elastic-beanstalk-stop-restart/
upvoted 1 times
...
Kian1
3 years, 6 months ago
going with B
upvoted 2 times
...
Ebi
3 years, 6 months ago
Answer is B Re "It should also be able to handle the increased use of Elastic Beanstalk environments among different teams", Lambda can go through all EB environments and stop them all
upvoted 5 times
...
sanjaym
3 years, 6 months ago
I'll go with B
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 ...