Terraform KPMG Day 5

Terraform KPMG Day 5

Professional Development

20 Qs

quiz-placeholder

Similar activities

Terraform CTJP Batch 4

Terraform CTJP Batch 4

Professional Development

25 Qs

Linux Quiz 4

Linux Quiz 4

Professional Development

21 Qs

Introduction to Linux

Introduction to Linux

Professional Development

15 Qs

S3 Summary

S3 Summary

Professional Development

15 Qs

batch1-nri-quiz-aws-efs

batch1-nri-quiz-aws-efs

Professional Development

15 Qs

Linux Quiz 5

Linux Quiz 5

Professional Development

20 Qs

Others

Others

Professional Development

15 Qs

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Terraform KPMG Day 5

Terraform KPMG Day 5

Assessment

Quiz

Computers

Professional Development

Medium

Created by

CloudThat Technologies

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In your Terraform configuration, you have two resources: an AWS S3 bucket and an AWS EC2 instance. You want to ensure that the EC2 instance is provisioned only after the S3 bucket is successfully created.

Which Terraform attribute should you use to establish this dependency?

requires

after

depends_on

connected_to

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Your team is collaborating on a Terraform project, and you're concerned about potential conflicts when multiple team members try to apply changes simultaneously. Which feature of Terraform helps prevent such conflicts?

State management

Locking

State commands

Terraform Cloud

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to inspect the details of resources managed by Terraform within your project. Which Terraform command should you use?

terraform plan

terraform apply

terraform show

terraform state list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want to list all resources tracked by Terraform within your project. Which Terraform command would provide you with this information?

terraform state list

terraform state show

terraform state pull

terraform state refresh

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In your Terraform project, you have accidentally deleted an EC2 resource outside of Terraform, and now you need to remove it from Terraform's state file to avoid conflicts. Which Terraform command should you use to remove the resource from the state file?

terraform state remove aws_instance.example

terraform state rm aws_instance.example

terraform state delete aws_instance.example

terraform state clean aws_instance.example

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where in your Terraform configuration do you specify a state backend?

The terraform block

The resource block

The provider block

The datasource block

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After making several changes to your infrastructure, you realize that the state file includes some outdated resources that no longer exist. Which command can remove these resources from the state file without affecting the actual infrastructure?

terraform destroy

terraform state rm

terraform state mv

terraform state pull

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?