AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A company is migrating a legacy Java web application, currently running on-premises on Apache Tomcat servers, to AWS Elastic Beanstalk. The development team wants to minimize operational overhead and continue using their existing WAR file-based deployment process. The application requires specific third-party monitoring agents to be installed and several configuration files to be modified on the underlying EC2 instances during every application deployment. A solutions architect needs to design a solution that automates these instance customizations as part of the Elastic Beanstalk deployment process in the most efficient and repeatable way.

Which approach should the solutions architect recommend?

  • Create a custom launch template with a user data script that installs the agents and configures the files. Associate the launch template with the Elastic Beanstalk environment.

  • Include configuration files within a .ebextensions directory in the application source bundle to install the agents and apply the required configurations.

  • After each deployment, use AWS Systems Manager (SSM) Run Command to execute a script on the environment's instances to install the agents and apply configurations.

  • Create a custom Amazon Machine Image (AMI) with the monitoring agents and configurations pre-baked. Specify this custom AMI in the Elastic Beanstalk environment configuration.

AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot