Search Header Logo

Terraform KPMG Day 2

Authored by CloudThat Technologies

Computers

Professional Development

Used 2+ times

Terraform KPMG Day 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you specify a provider in a Terraform configuration file?

provider "name" { }

module "name" { }

resource "name" { }

data "name" { }

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the proper way to send the value of the variable num_servers to a module?

servers = num_servers

servers = variable{num_servers}

servers = var(num_servers)

servers = var.num_servers

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You are managing a Terraform project that provisions infrastructure resources on AWS. You need to deploy a new EC2 instance with specific configuration parameters, such as instance type, subnet ID, and security group. However, you want to provide these configuration values dynamically during the Terraform execution without modifying the Terraform configuration files. Which Terraform CLI feature would you use to achieve this task?

Terraform taint

Terraform apply

Terraform Apply with -var flag

Terraform Plan with -var flag

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the default file name where Terraform stores its state locally?

state.tf

terraform.state

terraform.tfstate

terraform.tf.state

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You are tasked with provisioning EC2 instances using Terraform for a new project. Your team has decided to use Terraform to manage infrastructure as code.

  • Which Terraform block is used to define an EC2 instance?

block

provider

terraform

resource

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What name will terraform use to reference this instance in the state file?

instance

aws_instance

my_instance

ec2_my_instance

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Is a provider block necessary in the terraform configuration?

Yes

No

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?