AWS Certified Developer – Associate — Question 412
A developer is making changes to a custom application that uses AWS Elastic Beanstalk.
Which solutions will update the Elastic Beanstalk environment with the new application version after the developer completes the changes? (Choose two.)
Answer options
- A. Package the application code into a .zip file. Use the AWS Management Console to upload the zip file and deploy the packaged application.
- B. Package the application code into a .tar file. Use the AWS Management Console to create a new application version from the .tar file. Update the environment by using the AWS CLI.
- C. Package the application code into a .tar file. Use the AWS Management Console to upload the .tar file and deploy the packaged application.
- D. Package the application code into a .zip file. Use the AWS CLI to create a new application version from the .zip file and to update the environment.
- E. Package the application code into a .zip file. Use the AWS Management Console to create a new application version from the .zip file. Rebuild the environment by using the AWS CLI.
Correct answer: A, D
Explanation
AWS Elastic Beanstalk requires application source code to be packaged as a .zip file, which makes options B and C incorrect as they use .tar files. Option A is correct because uploading and deploying a .zip package through the AWS Management Console is a standard deployment method. Option D is also correct because the AWS CLI can be used to programmatically create a new application version from a .zip file and update the environment, whereas rebuilding the environment as suggested in Option E is a destructive action that replaces the infrastructure instead of performing a standard application deployment.