Quizzes · Service

EC2

Level 0 questions on EC2. Read about it first if it's new to you.

Works with: VPC (8), IAM (5), Lambda (4), DynamoDB (4), ECS + Fargate (2), RDS (2), CloudWatch Logs (2), API Gateway (1)

  • 15 questions, from a pool of 23
  • 1 correct answer of 4 each
  • Pass line 80%

Questions and answers come in a new order every time, and every choice is explained. Your answers feed your weak spots on the exam page; they don't change your exam score.

Question 1A brand-new AWS account wants to launch an EC2 instance right away, without designing a network. Where can it go?

Choose one answer

Learn it: VPC (Virtual Private Cloud)

Question 2What does a security group attach to?

Choose one answer

Learn it: ENI (Elastic Network Interface) · Security group

Question 3The Todo.io app runs on an EC2 instance and must write to a DynamoDB table. What is the most secure way to give it AWS credentials?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · Temporary credentials · IAM role · Design Todo.io on EC2

Question 4Todo.io runs its app on EC2. A security patch for the operating system is released. Whose job is it to install it?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 5Todo.io wants every new app server to start with the same operating system and the same software already installed. What should every launch use?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 6Todo.io's app server keeps running out of memory. What should Todo.io change?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 7A Linux test server runs for about 40 minutes a day and is stopped the rest of the time. How is it billed as an On-Demand instance?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 8Todo.io stopped and started its web server overnight. Now users can't reach it at the public IP address they had. What happened?

Choose one answer

Learn it: Public IP address

Question 9Todo.io's app on EC2 has a role attached through an instance profile. Where does the AWS SDK get the role's credentials from?

Choose one answer

Learn it: Temporary credentials · IAM role

Question 10An EC2 instance sits in a private subnet with no NAT gateway. It needs to download a software update from the internet. What happens?

Choose one answer

Learn it: NAT gateway · Subnet

Question 11Todo.io's web server is in a public subnet and has a public IP, but users get a timeout on HTTPS (port 443). What should be checked first?

Choose one answer

Learn it: Security group

Question 12Which of Todo.io's compute choices still leaves Todo.io patching an operating system?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · ECS and Fargate · Lambda

Question 13What does Amazon RDS do for Todo.io that running MySQL on its own EC2 instance would not?

Choose one answer

Learn it: RDS (Relational Database Service)

Question 14Todo.io's app on EC2, in a public subnet, calls DynamoDB. Which way does the request travel?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · DynamoDB · Internet gateway

Question 15Todo.io's app on EC2 writes log files, but nothing shows up in CloudWatch Logs. What is needed?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud) · CloudWatch Logs

Question 16An EC2 instance in a public subnet sends its log lines to CloudWatch Logs. Which way do they travel?

Choose one answer

Learn it: VPC (Virtual Private Cloud) · CloudWatch Logs

Question 17Todo.io moves its app from an EC2 instance to a Lambda function. On EC2, the app wrote to DynamoDB with a role attached through an instance profile. What gives the function the same access?

Choose one answer

Learn it: Lambda · EC2 (Elastic Compute Cloud) · IAM role

Question 18Todo.io's API gets a few hundred requests a day and sits idle most of the night, yet it runs on an EC2 instance around the clock. Which swap cuts the cost of the idle hours the most?

Choose one answer

Learn it: Lambda · EC2 (Elastic Compute Cloud) · ECS and Fargate

Question 19On EC2, browsers reached Todo.io's app through the internet gateway, at the server's public IP. Todo.io moves the app to a Lambda function. What is the front door now?

Choose one answer

Learn it: API Gateway · NAT gateway · VPC (Virtual Private Cloud) · Security group · Internet gateway

Question 20Todo.io's app on EC2 swaps its RDS MySQL database for a DynamoDB table. With RDS, access came down to the database's security group and a password. What decides whether the app may write to the table now?

Choose one answer

Learn it: DynamoDB · RDS (Relational Database Service) · EC2 (Elastic Compute Cloud) · IAM policy

Question 21What does "EC2 (Elastic Compute Cloud)" mean?

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 22Which term is this? "Rent a virtual server by the second."

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)

Question 23Which AWS term is described by this analogy? "Renting a computer you have to look after yourself."

Choose one answer

Learn it: EC2 (Elastic Compute Cloud)