exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 47 discussion

An application uses an Amazon EC2 Auto Scaling group. A developer notices that EC2 instances are taking a long time to become available during scale-out events. The UserData script is taking a long time to run.
The developer must implement a solution to decrease the time that elapses before an EC2 instance becomes available. The solution must make the most recent version of the application available at all times and must apply all available security updates. The solution also must minimize the number of images that are created. The images must be validated.
Which combination of steps should the developer take to meet these requirements? (Choose two.)

  • A. Use EC2 Image Builder to create an Amazon Machine Image (AMI). Install all the patches and agents that are needed to manage and run the application. Update the Auto Scaling group launch configuration to use the AMI.
  • B. Use EC2 Image Builder to create an Amazon Machine Image (AMI). Install the latest version of the application and all the patches and agents that are needed to manage and run the application. Update the Auto Scaling group launch configuration to use the AMI.
  • C. Set up AWS CodeDeploy to deploy the most recent version of the application at runtime.
  • D. Set up AWS CodePipeline to deploy the most recent version of the application at runtime.
  • E. Remove any commands that perform operating system patching from the UserData script.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
imvb88
Highly Voted 1 year, 11 months ago
Selected Answer: AE
Why choose A over B? Problem is that B will tie an AMI with a specific version, so if there is a new version, we need to create a new AMI, and that contradicts with "minimize the number of images that are created". Then E over C, D? E is obviously complementary to A, where removing commands from User Data will make the instance booting process much faster (and of course with A you don't need that anymore). C and D also works but 1/not complementary with any other options; 2/CodeDeploy takes time to execute. Hope this helps somebody struggling with this question.
upvoted 38 times
yashika2005
1 year, 11 months ago
thanksss a lott!
upvoted 1 times
...
minh12312312
1 year, 6 months ago
The solution must make the most recent version of the application available at all times
upvoted 4 times
[Removed]
1 year, 4 months ago
I agree I think between A and B.- answer is B
upvoted 5 times
...
...
r3mo
1 year, 9 months ago
And what about this requisit? "The solution must make the most recent version of the application available at all times". Only the Answer B fulfill this part.
upvoted 4 times
...
...
KillThemWithKindness
Highly Voted 1 year, 9 months ago
Selected Answer: AC
Option E, which suggests removing operating system patching from the UserData script, might reduce the startup time. But this could leave your instances unpatched and vulnerable, which doesn't meet the requirement to apply all available security updates.
upvoted 15 times
maurice2005
1 year, 1 month ago
well if u choose B and E then this will resolve as well
upvoted 2 times
...
...
Shamalka
Most Recent 1 month, 4 weeks ago
Selected Answer: AC
A and C is the answer
upvoted 1 times
...
Arad
4 months, 1 week ago
Selected Answer: AE
AE is correct answer.
upvoted 1 times
...
sumanshu
4 months, 1 week ago
Selected Answer: AC
B) Eliminated - Similar to option A, but also includes the latest version of the application in the AMI. While this reduces initialization time, it violates the requirement to "minimize the number of images" because it necessitates frequent AMI updates to keep the application version current. C) CodeDeploy ensures that the most recent version of the application is deployed during runtime. E) Eliminated - This violates the requirement to "apply all available security updates"
upvoted 2 times
...
Yuri_024
4 months, 2 weeks ago
Selected Answer: AE
* The problem at hand is scaling-out events taking a long time (Instances need to spawn up fast, userData scripts must not run for long periods). * CodePipeline or CodeDeploy does not play any role there. * It does not mention an issue regarding the latest version of the application not being available. * So I choose A & E
upvoted 1 times
...
youonebe
4 months, 3 weeks ago
Selected Answer: AC
Option B is incorrect because: Including the application in the AMI would require new image creation for every application update Results in more frequent image builds than necessary Increases maintenance overhead
upvoted 1 times
...
albert_kuo
7 months, 2 weeks ago
Selected Answer: AC
B. While similar to A, this option includes installing the latest version of the application in the AMI. This is not ideal because it would require creating a new AMI every time the application is updated, which doesn't align with the requirement to minimize the number of images created.
upvoted 1 times
...
wh1t4k3r
8 months, 3 weeks ago
Selected Answer: AC
B would require new images for each new app version. Idea is to minimize image creation, so A is a better fit. E does speed up the process, BUT does not cover the app version requirement, nor the necessity to validate images, which codedeploy covers.
upvoted 2 times
...
MrDurian
9 months, 2 weeks ago
IMO the correct answer is A and C. Having a well set up AMI will reduce the need to run a long userData script. Why not using B? Because that would couple the image with the app version. It is better to trigger a Code deploy that will deploy the latest version of the app on the 'optimized' AMI. Regarding answer E, it would also be correct IMO but A and C seems to be the perfect matching scenario
upvoted 1 times
...
IYNH
9 months, 3 weeks ago
Selected Answer: AC
The solution must make the most recent version of the application available at all times. B doesn't make sense because "latest version at the time AMI is created" becomes outdated when a newer one comes. C is obviously needed to make the actual "latest" version deploy.
upvoted 2 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: BE
BE is the correct answer.
upvoted 1 times
...
MarcosSantos
11 months, 3 weeks ago
I choose BE. Is better response
upvoted 1 times
...
ufuomaapoki
1 year ago
Selected Answer: AC
The requirements are: 1. Decreasing the time it takes for EC2 instances to become available during scale-out events. 2. Ensuring the most recent version of the application is available. 3. Applying all available security updates. 4. Minimising the number of images created. [A] will satisfy requirements 1, 3, 4 [B] is similar to A, but will involve more AMI images [C] Since the applications are on EC2 instances, CodeDeploy will do just fine to update the applications to the most recent version [E] Removing any command for updates will leave our instances susceptible to vulnerabilities. Some commands can be removed, leaving the essential ones
upvoted 2 times
...
maurice2005
1 year, 1 month ago
B is faster than A. E delegates all run time to AMI build time on B option.
upvoted 2 times
...
ibratoev
1 year, 1 month ago
A and E. A because number of images needs to be minimized. E to speed up the boot time.
upvoted 1 times
...
KarBiswa
1 year, 1 month ago
Selected Answer: BE
The most practical answers
upvoted 4 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