exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 501 discussion

A company runs a web application on a single Amazon EC2 instance. End users experience slow application performance during times of peak usage, when CPU utilization is consistently more than 95%.

A user data script installs required custom packages on the EC2 instance. The process of launching the instance takes several minutes.

The company is creating an Auto Scaling group that has mixed instance groups, varied CPUs, and a maximum capacity limit. The Auto Scaling group will use a launch template for various configuration options. The company needs to decrease application latency when new instances are launched during auto scaling.

Which solution will meet these requirements?

  • A. Use a predictive scaling policy. Use an instance maintenance policy to run the user data script. Set the default instance warmup time to 0 seconds.
  • B. Use a dynamic scaling policy. Use lifecycle hooks to run the user data script. Set the default instance warmup time to 0 seconds.
  • C. Use a predictive scaling policy. Enable warm pools for the Auto Scaling group. Use an instance maintenance policy to run the user data script.
  • D. Use a dynamic scaling policy. Enable warm pools for the Auto Scaling group. Use lifecycle hooks to run the user data script.
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
zhen234
1 week, 6 days ago
Selected Answer: C
An instance maintenance policy in the context of AWS Auto Scaling governs how instances are handled before they are fully launched and available for use. It defines the actions that need to occur (such as running a user data script, applying patches, or installing software) to ensure the instance is ready. When combined with features like warm pools, maintenance policies can ensure instances are prepared in advance and reduce delays during scaling events. These policies help ensure instances are fully initialized before serving traffic.
upvoted 1 times
...
henrikhmkhitaryan59
1 month, 3 weeks ago
Selected Answer: B
@songilly provided an exhaustive comment explaining why B is the only viable answer
upvoted 1 times
...
alexbraila
1 month, 4 weeks ago
Selected Answer: B
Due to the link in songilly's comment, which clearly states D is out. I am almost sure they were looking for knowledge of "warm pools", but here is another poorly written AWS question
upvoted 1 times
...
horiuchi
2 months ago
Selected Answer: D
No mention of any peak period so there’s no way to use predictive scaling The problem occurs cause the VMs take too long to boot up and be ready to accept requests, the only thing to do is to have them already “warm”. And I’ve never heard of a “maintenance mode” and I know that lifecycle hooks are a common practice with ASGs Warm pools Lifecycle hooks are how
upvoted 1 times
...
songilly
2 months, 3 weeks ago
You can't use a warm pool in an Auto Scaling group with mixed instances policy or has spot instances: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html So not sure how D can be write. Although B doesn't seem great it might be the only viable option.
upvoted 2 times
...
Daniel76
4 months, 3 weeks ago
Selected Answer: D
Agree with D There is no mention of predictable peak period. Since there's a known metric where user experience skpwness, dynamic scaling should be used. https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html#:~:text=A%20dynamic%20scaling%20policy%20instructs,CloudWatch%20alarm%20is%20in%20ALARM. Use warm pool to reduce latency and cost of unnecessary standby instance. https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html Use lifecycle hook due to the need to install custom packages https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html More reference: https://aws.amazon.com/blogs/compute/introducing-instance-maintenance-policy-for-amazon-ec2-auto-scaling/
upvoted 3 times
...
vip2
7 months ago
Selected Answer: D
D is correcyt
upvoted 1 times
...
Alagong
7 months ago
Selected Answer: D
Answer : D
upvoted 1 times
...
AhmedSalem
7 months, 1 week ago
Selected Answer: D
Answer D
upvoted 1 times
...
kupo777
7 months, 1 week ago
B AWS Database Migration Service can convert Oracle and SQL Server to Amazon RDS for MySQL and Amazon RDS for PostgreSQL stored procedures. D AWS Database Migration Service (AWS DMS) performs data migration. The answer is DB.
upvoted 1 times
wbedair
7 months, 1 week ago
looks like this is an answer for different question
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