Search Header Logo

AWS and Terraform Quiz

Authored by Naveen Yadav

Other

12th Grade

Used 1+ times

AWS and Terraform Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Your team is using Terraform to manage AWS resources. You run terraform apply to create an EC2 instance, but you realize the instance wasn't created. What is the most likely cause?

The EC2 instance type was incorrect in the Terraform script.

The terraform apply command needs to be run with -force flag.

The AWS provider in the Terraform configuration is incorrectly set up.

The instance was already running and Terraform couldn't detect it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a CloudFormation template, you are creating an EC2 instance but the instance fails to launch. What is the first step in troubleshooting this issue?

Check the CloudFormation stack's error logs in the console.

Delete the stack and recreate it.

Ensure that the EC2 instance type is correct.

Restart the CloudFormation service.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are using Jenkins to automate deployment to AWS S3. The deployment fails because of access issues. What could be the issue?

The S3 bucket versioning is disabled.

Jenkins lacks the proper AWS credentials.

Jenkins is configured for the wrong AWS region.

The S3 bucket is configured to allow only public access.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are deploying a static website to AWS S3 using a CI/CD pipeline. After deployment, users report slow page loads. What should you do to improve this?

Switch to using EC2 instead of S3 for static website hosting.

Enable Amazon CloudFront to cache content closer to users.

Increase the number of EC2 instances.

Configure the S3 bucket for versioning.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are using Terraform to automate the provisioning of a VPC, but it fails. What would be the first thing to check?

The AWS CLI is not installed.

The IAM permissions associated with Terraform are not sufficient.

There is a network connectivity issue.

The terraform plan step was not executed before apply.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a CloudFormation template, you need to define a security group to allow HTTP access to an EC2 instance. Which configuration would you use?

Use a Type: SecurityGroup resource and configure Port: 443.

Use a Type: SecurityGroup resource and configure Port: 80.

Define an IAM role for the EC2 instance with HTTP access.

Define a Lambda function to handle incoming HTTP traffic.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You have a CI/CD pipeline configured in Jenkins to deploy code to an EC2 instance. The Jenkins job fails with an error related to security credentials. What is the likely cause?

Jenkins is missing a valid SSH key to access EC2.

EC2 has reached its maximum instance limit.

The Jenkins server is out of disk space.

The IAM role attached to the EC2 instance doesn't have the correct permissions.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?