DEV Community


Posted on

AWS EC2 - top questions - Certified Developer exam

Hello Cloud Learners,
In the process of preparing for the exam, I find examples of questions on the Internet. I will post them here and on my site all topics at once, along with explanations.
I hope this will be helpful to those who want to quickly go over the questions on each topic, as I plan to do.

A company is migrating a legacy application to Amazon EC2. The application uses a username and password stored in the source code to connect to a MySQL database. The database will be migrated to an Amazon RDS for MySQL DB instance. As part of the migration, the company wants to implement a secure way to store and automatically rotate the database credentials.

Which approach meets these requirements?

  1. Store the database credentials in environment variables in an Amazon Machine Image (AMI). Rotate the credentials by replacing the AMI.
  2. Store the database credentials in AWS Systems Manager Parameter Store. Configure Parameter Store to automatically rotate the credentials.
  3. Store the database credentials in environment variables on the EC2 instances. Rotate the credentials by relaunching the EC2 instances.
  4. Store the database credentials in AWS Secrets Manager. Configure Secrets Manager to automatically rotate the credentials

An organization needs to provision a new Amazon EC2 instance with a persistent block storage volume to migrate data from its on-premises network to AWS. The required maximum performance for the storage volume is 64,000 IOPS.

In this scenario, which of the following can be used to fulfill this requirement?

  1. Directly attach multiple Instance Store volumes in an EC2 instance to deliver maximum IOPS performance.
  2. Launch a Nitro-based EC2 instance and attach a Provisioned IOPS SSD EBS volume (io1) with 64,000 IOPS.
  3. Launch an Amazon EFS file system and mount it to a Nitro-based Amazon EC2 instance and set the performance mode to Max I/O.
  4. Launch any type of Amazon EC2 instance and attach a Provisioned IOPS SSD EBS volume (io1) with 64,000 IOPS.

A Database Specialist manages an EBS-Optimized Amazon RDS for MySQL DB instance with Provisioned IOPS storage. The users recently raised a database IO latency issue during peak hours when it was always under a heavy workload. Upon review, the Specialist noticed that the RDS DB instance was barely using the maximum IOPS configured, but was fully utilizing the maximum bandwidth for the required throughput. CloudWatch metrics showed that CPU and Memory utilization were at optimum levels.

Which action should the Database Specialist take to fix the performance issue?

  1. Change the underlying EBS storage type of the instance to General Purpose (SSD).
  2. Modify the DB instance to an EBS-Optimized instance class with higher maximum bandwidth.
  3. Disable EBS optimization on the MySQL DB instance to allow higher maximum bandwidth.
  4. Modify the DB instance to increase the size and corresponding Provisioned IOPS allocated to the storage.

A developer deployed an application to an Amazon EC2 instance. The application needs to know the public IPv4 address of the instance.
How can the application find this information?

  1. Query the instance metadata from
  2. Query the instance user data from
  3. Query the Amazon Machine Image (AMI) information from http://169.254 169.254/latest/meta-data/ami/.
  4. Check the hosts file of the operating system.

You are configuring a Jenkins project that is installed on an Amazon EC2 instance running a Windows operating system. You want this Jenkins project to integrate with AWS CodePipeline.

Which actions should you take to make this function perform correctly? (2 answers)

  1. Restart all Amazon EC2 instances that are running a Windows operating system.
  2. Provide the IAM user credentials to integrate AWS CodePipeline.
  3. Fill out the required fields for your proxy host.
  4. Modify the PATH variable to include the directory where you installed Jenkins on all Amazon EC2 instance that are running a Windows operating system.
  • Notes about EC2 can be found here and here
  • Full set with questions on all topics and explanation can be found here

Top comments (0)