AWS Certified Developer – Associate (DVA-C02) — Question 490
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 CL 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 bundles to be formatted as .zip files. Options A and D are correct because they package the code as a .zip file and use valid methods (either the AWS Management Console or the AWS CLI) to upload the version and update the environment. Options B and C are incorrect because they use .tar files, and Option E is incorrect because rebuilding the environment is a destructive process that recreates the infrastructure rather than performing a standard application version update.