▶ MCQ Portal
Home
Medical
Neet-Ug
4
Ssc-Cgl
General_Awareness
5
Devops
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
terraform
Exam6
Exam6
devops / terraform
• 5 questions
Question 1 of 5
What are Terraform workspaces used for?
A.
Storing secrets separately
B.
Managing multiple distinct state files from the same config
C.
Splitting large configurations into smaller files
D.
Running parallel plan operations
Question 2 of 5
What is the name of the default Terraform workspace?
A.
main
B.
production
C.
default
D.
base
Question 3 of 5
Which command creates a new workspace named `staging`?
A.
terraform workspace add staging
B.
terraform workspace new staging
C.
terraform workspace create staging
D.
terraform new staging
Question 4 of 5
How do you reference the current workspace name inside HCL?
A.
var.workspace
B.
env.workspace
C.
terraform.workspace
D.
local.workspace
Question 5 of 5
Which command lists all available workspaces?
A.
terraform workspace show
B.
terraform workspace list
C.
terraform env list
D.
terraform workspaces
← Back
Submit Answers ✓