3 Months Free Update
3 Months Free Update
3 Months Free Update
From the answers below, select the advantages of using Infrastructure as Code. (select four)
When using parent/child modules to deploy infrastructure, how would you export value from one module to import into another module?
For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.
Select the most accurate statement to describe the Terraform language from the following list.
What is the result of the following terraform function call?
index(["a", "b", "c"], "c")
In the following code snippet, the block type is identified by which string?
1. resource "aws_instance" "db" {
2. ami = "ami-123456"
3. instance_type = "t2.micro"
4. }
Given the following screenshot, how many secrets engines have been enabled?
Which Terraform command will check and report errors within modules, attribute names, and value types to make sure they are syntactically valid and internally consistent?
Your organization has moved to AWS and has manually deployed infrastructure using the console. Recently, a decision has been made to standardize on Terraform for all deployments moving forward.
What can you do to ensure that all existing is managed by Terraform moving forward without interruption to existing services?
Given the Terraform configuration below, in which order will the resources be created?
1. resource "aws_instance" "web_server" {
2. ami = "i-abdce12345"
3. instance_type = "t2.micro"
4. }
5. resource "aws_eip" "web_server_ip" {
6. vpc = true
7. instance = aws_instance.web_server.id
8. }
From the options below, select the benefits of using the PKI (certificates) secrets engine: (select three)
Which type of Vault replication copies all data from Vault, including K/V data, policies, and client tokens?
You've set up multiple Vault clusters, one on-premises which is intended to be the primary cluster, and the second cluster in AWS, which was deployed to be used for performance replication. After enabling replication, developers complain that all the data they've stored in the AWS Vault cluster is missing. What happened?
Which statements best describes what the local variable assignment is doing in the following code snippet:
1. variable "subnet_details" {
2. type = list(object({
3. cidr = string
4. subnet_name = string
5. route_table_name = string
6. aznum = number
7. }))
8. }
9. locals {
10. route_tables_all = distinct([for s in var.subnet_details : s.route_table_name ])
11. }
Which of the following commands will launch the Interactive console for Terraform interpolations?
In order to reduce the time it takes to provision resources, Terraform uses parallelism. By default, how many resources will Terraform provision concurrently?
What feature of Vault would allow you to architect a "Vault within a Vault"?
Which Terraform command will force a marked resource to be destroyed and recreated on the next apply?
Why might a user opt to include the following snippet in their configuration file?
1. terraform {
2. required_version = ">= 0.12"
3. }
The Terraform language supports a number of different syntaxes for comments. Select all that are supported. (select three)
After enabling the vault to autocomplete feature, you type vault and press the tab button, but nothing happens. Why doesn't vault display the available completions?
1. $ vault -autocomplete-install
2. $ vault
Which of the following commands will remove all secrets at a specific path?
A user creates three workspaces from the command line - prod, dev, and test. Which of the following commands will the user run to switch to the dev workspace?
What is the proper command to enable the AWS secrets engine at the default path?
In order to extend a Consul storage backend, Consul nodes should be provisioned across multiple data centers or cloud regions.
Select all features which are exclusive to Terraform Enterprise. (select three)
You've decided to use AWS KMS to automatically unseal Vault on private EC2 instances. After deploying your Vault cluster, and running vault operator init, Vault responds with an error and cannot be unsealed.
You've determined that the subnet you've deployed Vault into doesn't have internet access. What can you do to enable Vault to communicate with AWS KMS in the most secure way?
While Terraform is generally written using the HashiCorp Configuration Language (HCL), what another syntax can Terraform be expressed in?
After logging into the Vault UI, a user complains that they cannot enable Replication. Why would the replication configuration be missing?
True or False:
Once you create a KV v1 secrets engine and place data in it, there is no way to modify the mount to include the features of a KV v2 secrets engine.
After decrypting data using the transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?
1. $ vault write transit/decrypt/creditcard\ ciphertext="vault:v1:cZNHVx+sxdMErXRSuDa1q/pz49fXTn1PScKfhf+PIZPvy8xKfkytpwKcbC0fF2U=" \
2.
3. Key Value
4. --- -----
5. plaintext Y3JlZGl0LWNhcmQtbnVtYmVyCg==
What are some of the problems of how infrastructure was traditionally managed before Infrastructure as Code? (select three)
How can Vault be used to programmatically obtain a generated code for MFA, somewhat similar to Google Authenticator?
In terraform, most resource dependencies are handled automatically. Which of the following statements describes best how terraform resource dependencies are handled?
Terraform Enterprise (also referred to as pTFE) requires what type of backend database for a clustered deployment?
Which of the following unseal options can automatically unseal Vault upon the start of the Vault service? (select four)
HashiCorp offers multiple versions of Terraform, including Terraform open-source, Terraform Cloud, and Terraform Enterprise. Which of the following Terraform features are only available in the Enterprise edition? (select four)
Which of the following variable declarations is going to result in an error?
When architecting a Vault replication configuration, why should you never terminate TLS on a front-end load balancer?
Which of the following actions are performed during a terraform init? (select three)
True or False:
The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. If the drift is detected between the real-world infrastructure and the last known-state, it will modify the infrastructure to correct the drift.
A user runs terraform init on their RHEL based server and per the output, two provider plugins are downloaded:
1. $ terraform init
2.
3. Initializing the backend...
4.
5. Initializing provider plugins...
6. - Checking for available provider plugins...
7. - Downloading plugin for provider "aws" (hashicorp/aws) 2.44.0...
8. - Downloading plugin for provider "random" (hashicorp/random) 2.2.1...
9.
10. Terraform has been successfully initialized!
Where are these plugins downloaded to?
From the options below, select the benefits of using a batch token over a service token. (select three)
Which of the following Vault features is available only in the Enterprise version? (select three)
When Vault is sealed, which are the only two options available to a Vault administrator? (select two)
As opposed to service tokens, batch tokens are ideal for what type of action?
You've hit the URL for the Vault UI, but you're presented with this screen. Why doesn't Vault present you with a way to log in?
What Terraform feature is shown in the example below?
1. resource "aws_security_group" "example" {
2. name = "sg-app-web-01"
3. dynamic "ingress" {
4. for_each = var.service_ports
5. content {
6. from_port = ingress.value
7. to_port = ingress.value
8. protocol = "tcp"
9. }
10. }
11. }