Spring Boot with AWS - S3, EC2, RDS, CI/CD Pipelines

    Question 1SPRING BOOT AWS - Storing Files in S3

    Which AWS service is primarily used for storing and retrieving unstructured data like images, videos, and documents in Spring Boot apps?

    Question 2SPRING BOOT AWS - Code Snippet (Upload File to S3)

    What does this code snippet do?

    @Autowired private AmazonS3 amazonS3; public void uploadFile(String bucket, String key, File file) { amazonS3.putObject(bucket, key, file); }

    Question 3SPRING BOOT AWS - Connecting to EC2

    Which statement is true about AWS EC2 in Spring Boot apps?

    Question 4SPRING BOOT AWS - Code Snippet (Download from S3)

    What does this code snippet achieve?

    S3Object s3Object = amazonS3.getObject("my-bucket", "file.txt"); InputStream inputStream = s3Object.getObjectContent();

    Question 5SPRING BOOT AWS - AWS RDS Integration

    What is the role of AWS RDS in a Spring Boot application?

    Question 6SPRING BOOT AWS - Code Snippet (Spring Boot with RDS)

    Given this application.properties, what is configured?

    spring.datasource.url=jdbc:mysql://mydb.abcdef.us-east-1.rds.amazonaws.com:3306/mydb spring.datasource.username=admin spring.datasource.password=secret123

    Question 7SPRING BOOT AWS - CI/CD with CodePipeline

    Which AWS service automates CI/CD pipelines for Spring Boot applications?

    Question 8SPRING BOOT AWS - Code Snippet (Delete File in S3)

    What does this code do?

    amazonS3.deleteObject("my-bucket", "old-file.txt");

    Question 9SPRING BOOT AWS - Monitoring Applications

    Which AWS service can be used to monitor Spring Boot applications deployed on EC2 or ECS?

    Question 10SPRING BOOT AWS - CI/CD Deployment

    In a typical CI/CD pipeline for Spring Boot on AWS, which combination is correct?